mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does not
@ 2002-01-31 20:27 Petr Vandrovec
  2002-01-31 20:31 ` Jeff Garzik
  0 siblings, 1 reply; 67+ messages in thread
From: Petr Vandrovec @ 2002-01-31 20:27 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: torvalds, linux-kernel, pavel

On 31 Jan 02 at 13:47, Jeff Garzik wrote:
> On Thu, Jan 31, 2002 at 02:24:46PM +0100, Petr Vandrovec wrote:
> >     I've got strange idea and tried to build diskless machine around
> > 2.5.3... Besides problem with segfaulting crc32 (it is initialized after 
> > net/ipv4/ipconfig.c due to lib/lib.a being a library... I had to hardcode
> > lib/crc32.o before --start-group in main Makefile, but it is another
> > story)
> 
> Would you be willing to cook up a patch for this problem?
> 
> I ran into this too.  It was solved by setting CONFIG_CRC32=n and
> letting the Makefile rules pull it in...  but lib/lib.a needs to be
> lib/lib.o really.

Unfortunately during conversion I found that there is lib/bust_spinlocks.c,
which is always included in lib.a, is always compiled, even if architecture
provides its own bust_spinlocks function.

As no other module in lib/ uses module_init() initalization, it looks
to me like that we should move crc32.c from lib/ to kernel/, instead of
turning lib.a into lib.o.

But of course if there is consensus that I should convert lib/lib.a
into lib/lib.o, I can either create Config.in symbol 
CONFIG_NEED_GENERIC_BUST_SPINLOCK, or add HAVE_ARCH_BUST_SPINLOCK #define
into some of i386, ia64, mips64, s390 and s390x architecture dependent
headers.
                                        Thanks,
                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            

^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does
       [not found] ` <20020131.162549.74750188.davem@redhat.com>
@ 2002-02-01  0:42 Alan Cox
       [not found] ` <20020131.162549.74750188.davem@redhat.com>
  0 siblings, 1 reply; 67+ messages in thread
From: Alan Cox @ 2002-02-01  0:42 UTC (permalink / raw)
  To: David S. Miller
  Cc: alan, vandrove, torvalds, garzik, linux-kernel, paulus, davidm, ralf

> What I did propose was to eliminate the Config.in special casings all
> over the place to turn this stuff on.  It's just a wart when I look at
> it.  But you don't seem to like that idea so I'll drop it.

I'd like to eliminate lots of the magic weird cases in Config.in too - but
by making the language express it. Something like

tristate_orif "blah" CONFIG_FOO $CONFIG_SMALL


^ permalink raw reply	[flat|nested] 67+ messages in thread

end of thread, other threads:[~2002-02-07  1:19 UTC | newest]

Thread overview: 67+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-31 20:27 crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does not Petr Vandrovec
2002-01-31 20:31 ` Jeff Garzik
2002-01-31 22:53   ` [PATCH] " Petr Vandrovec
2002-01-31 22:59   ` David S. Miller
2002-01-31 23:08     ` Jeff Garzik
2002-01-31 23:43       ` David Lang
2002-01-31 23:24     ` [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does Alan Cox
2002-01-31 23:21       ` Arnaldo Carvalho de Melo
2002-02-02 16:32         ` Denis Vlasenko
2002-02-02 12:57           ` Jens Axboe
2002-02-02 13:16             ` arjan
2002-02-02 13:52               ` Jens Axboe
2002-02-03 11:37           ` David Woodhouse
2002-01-31 23:43       ` Jeff Garzik
2002-02-01  8:14       ` David Woodhouse
2002-02-02  2:12       ` Chris Wedgwood
2002-02-02  3:01         ` Andrew Morton
2002-02-02  7:30           ` Chris Wedgwood
2002-02-02  7:42             ` Daniel Jacobowitz
2002-02-02  8:08               ` Jeff Garzik
2002-02-02 19:20                 ` Daniel Jacobowitz
2002-02-02  8:06             ` Jeff Garzik
2002-02-02  8:08             ` Keith Owens
2002-02-02  8:40               ` David Woodhouse
2002-02-02  8:59                 ` Keith Owens
2002-02-02  9:14                   ` David Woodhouse
2002-02-03  4:14       ` Eric W. Biederman
2002-02-03  7:01         ` Ralf Baechle
2002-02-03  9:13           ` Chris Wedgwood
2002-02-03 12:16           ` David Woodhouse
2002-02-03 12:33             ` Chris Wedgwood
2002-02-03 12:47             ` David Woodhouse
2002-02-03 13:40           ` Alan Cox
2002-01-31 23:45     ` David S. Miller
2002-02-01  0:32       ` Alan Cox
2002-02-01 10:07       ` Horst von Brand
2002-02-01 10:28         ` Keith Owens
2002-02-01 11:03         ` David S. Miller
2002-02-01 11:25           ` Keith Owens
2002-02-01 14:56             ` Jeff Garzik
2002-02-01  0:42 Alan Cox
     [not found] ` <20020131.162549.74750188.davem@redhat.com>
2002-02-01  0:30   ` David S. Miller
2002-02-01  3:46     ` Jeff Garzik
2002-02-01  4:18     ` H. Peter Anvin
2002-02-01  4:35       ` Jeff Garzik
2002-02-01  4:25     ` David S. Miller
2002-02-01  4:48       ` Jeff Garzik
2002-02-01  5:10       ` Keith Owens
2002-02-01  5:12         ` Jeff Garzik
2002-02-01  5:18           ` Keith Owens
2002-02-01 13:42             ` Horst von Brand
2002-02-03 23:34               ` Keith Owens
2002-02-04 20:14                 ` Horst von Brand
2002-02-01  5:59       ` David S. Miller
2002-02-01  6:01       ` David S. Miller
2002-02-01  6:11         ` Keith Owens
2002-02-01  6:26         ` David S. Miller
2002-02-01  6:43           ` Keith Owens
2002-02-01 15:03           ` Alan Cox
2002-02-01 14:55             ` Jeff Garzik
2002-02-01 15:12               ` Petr Vandrovec
2002-02-01 16:08               ` David Woodhouse
2002-02-04 13:24               ` Horst von Brand
2002-02-05  7:51                 ` Jeff Garzik
2002-02-01 15:19     ` Alan Cox
2002-02-01 19:37     ` Rob Landley
2002-02-01 19:50       ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome