public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: lib.a causing modules not to load
Date: 07 Nov 2003 10:27:09 -0600	[thread overview]
Message-ID: <1068222431.1894.24.camel@mulgrave> (raw)
In-Reply-To: <1068222065.1894.21.camel@mulgrave>

On Fri, 2003-11-07 at 10:21, James Bottomley wrote:
[...]

And with the actual patch

James

===== fs/Makefile 1.59 vs edited =====
--- 1.59/fs/Makefile	Thu Aug 14 20:17:09 2003
+++ edited/fs/Makefile	Tue Nov  4 16:33:42 2003
@@ -46,8 +46,10 @@
  
 # Do not add any filesystems before this line
 obj-$(CONFIG_EXT3_FS)		+= ext3/ # Before ext2 so root fs can be ext3
+libobj-$(CONFIG_EXT3_FS)	+= ext3/
 obj-$(CONFIG_JBD)		+= jbd/
 obj-$(CONFIG_EXT2_FS)		+= ext2/
+libobj-$(CONFIG_EXT2_FS)	+= ext2/
 obj-$(CONFIG_CRAMFS)		+= cramfs/
 obj-$(CONFIG_RAMFS)		+= ramfs/
 obj-$(CONFIG_HUGETLBFS)		+= hugetlbfs/
@@ -91,3 +93,6 @@
 obj-$(CONFIG_XFS_FS)		+= xfs/
 obj-$(CONFIG_AFS_FS)		+= afs/
 obj-$(CONFIG_BEFS_FS)		+= befs/
+
+# now pick up the lib resolving refs
+obj-y				+= $(libobj-m)
\ No newline at end of file
===== fs/ext2/Makefile 1.10 vs edited =====
--- 1.10/fs/ext2/Makefile	Sat Jul 19 16:53:59 2003
+++ edited/fs/ext2/Makefile	Tue Nov  4 16:32:35 2003
@@ -3,6 +3,10 @@
 #
 
 obj-$(CONFIG_EXT2_FS) += ext2.o
+libobj-$(CONFIG_EXT2_FS) := librefs.o
+
+# if we're a module, add our lib requirements to the kernel
+obj-y	+= $(libobj-m)
 
 ext2-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
 	  ioctl.o namei.o super.o symlink.o
--- /dev/null	2003-11-02 22:37:48.000000000 -0600
+++ edited/fs/ext2/librefs.c	2003-11-05 11:42:37.000000000 -0600
@@ -0,0 +1,7 @@
+#include <linux/init.h>
+#include <linux/percpu_counter.h>
+
+__init __attribute__((unused)) static void dummy(void)
+{
+	percpu_counter_mod(NULL, 0);
+}


  reply	other threads:[~2003-11-07 22:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07 16:21 lib.a causing modules not to load James Bottomley
2003-11-07 16:27 ` James Bottomley [this message]
2003-11-08  4:34 ` Andrew Morton
2003-11-08  8:51   ` Christoph Hellwig
2003-11-08 15:16     ` James Bottomley
2003-11-17  2:47       ` Rusty Russell
2003-11-18 16:25         ` James Bottomley
2003-11-19  0:06           ` Rusty Russell

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=1068222431.1894.24.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox