LKML Archive on
help / color / mirror / Atom feed
From: Randy Dunlap <>
To: lkml <>
Date: Tue, 20 Mar 2007 20:05:38 -0700	[thread overview]
Message-ID: <> (raw)

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

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

Any suggested solutions?

Recorded for posterity here:

*** Remember to use Documentation/SubmitChecklist when testing your code ***

             reply	other threads:[~2007-03-21  3:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21  3:05 Randy Dunlap [this message]
2007-03-21  3:26 ` David Miller
2007-03-21 12:02   ` Sam Ravnborg
2007-03-21 22:30     ` Arnd Bergmann
2007-03-22 11:15       ` Adrian Bunk
2007-03-21 22:59     ` Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: BLK_DEV_MD with CONFIG_NET' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).