All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikita Danilov <Nikita@Namesys.COM>
To: Todd Lyons <todd@mrball.net>
Cc: ReiserFS-List <reiserfs-list@Namesys.COM>
Subject: Re: [reiserfs-dev] Re: [ANNOUNCE] reiser4 snaphots
Date: Fri, 8 Nov 2002 20:25:48 +0300	[thread overview]
Message-ID: <15819.62364.997716.421729@laputa.namesys.com> (raw)
In-Reply-To: <20021108162743.GA21976@mrball.net>

Todd Lyons writes:
 > Nikita Danilov wanted us to know:
 > 
 > > > Still compiling.  In the reiser4 code right now....well, it built and
 > > > linked.  That's a good sign.
 > 
 > It compiled and installed, but it doesn't load:
 > 
 > [root@trip ~]# modprobe reiser4
 > /lib/modules/2.5.45-3/kernel/fs/reiser4/reiser4.o: unresolved symbol
 > page_states__per_cpu
 > modprobe: insmod /lib/modules/2.5.45-3/kernel/fs/reiser4/reiser4.o failed
 > modprobe: insmod reiser4 failed
 > 
 > > > Curious if anybody feels that I should have chosen different values for
 > > > any of the options.
 > >Reasonable options for debugging. Will result in dead-slow reiser4 though.
 > 
 > Ok, will remove the debugging options.  In the meantime, gotta figure
 > out why it's got that unresolved symbol.

This is bug in the handling of per-cpu variables. Andrew Morton and
Rusty Russell posted patches to fix it. Here is one:
----------------------------------------------------------------------
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff \
--minimal linux-2.5.45/include/asm-generic/percpu.h \
                working-2.5.45-tmp/include/asm-generic/percpu.h
--- linux-2.5.45/include/asm-generic/percpu.h	2002-10-31 12:36:56.000000000 +1100
+++ working-2.5.45-tmp/include/asm-generic/percpu.h	2002-11-02 09:20:06.000000000 \
+1100 @@ -35,4 +35,10 @@ extern unsigned long __per_cpu_offset[NR
 #define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(var##__per_cpu)
 #define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(var##__per_cpu)
 
+/* Genksyms can't follow the percpu declaration.  Give it a fake one. */
+#ifdef __GENKSYMS__
+#undef DEFINE_PER_CPU
+#define DEFINE_PER_CPU(type, name) type name##__per_cpu
+#endif /*__GENKSYMS__*/
+
 #endif /* _ASM_GENERIC_PERCPU_H_ */
----------------------------------------------------------------------

Please let me know whether this helps.

Alternatively, you can compile reiser4 as built-in (not module), or
disable module versioning.

Nikita.

  reply	other threads:[~2002-11-08 17:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 11:20 Re[2]: [reiserfs-dev] Re: [ANNOUNCE] reiser4 snaphots Oleg O. Ossovitskii
2002-11-07  9:02 ` Todd Lyons
2002-11-07 10:47   ` Nikita Danilov
2002-11-08 16:27     ` Todd Lyons
2002-11-08 17:25       ` Nikita Danilov [this message]
2002-11-08 19:49         ` Todd Lyons
2002-11-08 20:04           ` Valdis.Kletnieks
2002-11-08 20:39             ` Todd Lyons
2002-11-08 20:48               ` Dieter Nützel
     [not found] <3DC7D812.6070401@attbi.com>
     [not found] ` <15815.55860.150531.25135@laputa.namesys.com>
2002-11-05 16:51   ` Nikita Danilov
     [not found]     ` <20021106110314.P2099@humilis>
2002-11-06 10:17       ` [reiserfs-dev] " Nikita Danilov

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=15819.62364.997716.421729@laputa.namesys.com \
    --to=nikita@namesys.com \
    --cc=reiserfs-list@Namesys.COM \
    --cc=todd@mrball.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.