Bug 8242 - BLK_DEV_MD=m without CONFIG_NET misses csum_partial
Summary: BLK_DEV_MD=m without CONFIG_NET misses csum_partial
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: MD (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: io_md
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 20:04 UTC by Randy Dunlap
Modified: 2008-04-28 02:27 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.21-rc4-git4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Randy Dunlap 2007-03-20 20:04:12 UTC
Most recent kernel where this bug did *NOT* occur:  none
Distribution:  SLES 10 (not applicable)
Hardware Environment:  x86_64
Software Environment:
Problem Description:

drivers/md/md.c calls csum_partial().

IF CONFIG_NET=n and BLK_DEV_MD=y, if arch/*/lib/Makefile
puts csum-partial.o or checksum.o into lib-y, the function
is present.  (Of course, if the function is placed in
obj-y, there is no problem.)

If CONFIG_NET=n and BLK_DEV_MD=n, if arch/*/lib/Makefile
puts csum-partial.o or checksum.o into lib-y, the function
is removed from the kernel image due to having no built-in
callers.

Steps to reproduce:

Build a kernel with CONFIG_NET-n and CONFIG_BLK_DEV_MD=m.
Unless csum_partial() is built and kept by some arch Makefile,
the result is:
ERROR: "csum_partial" [drivers/md/md-mod.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Comment 1 Adrian Bunk 2008-04-28 02:27:28 UTC
md no longer uses csum_partial

Note You need to log in before you can comment on or make changes to this bug.