public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: Dave Jones <davej@suse.de>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
	lkml <linux-kernel@vger.kernel.org>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: Linux 2.4.17-rc1
Date: Mon, 17 Dec 2001 18:46:37 -0700	[thread overview]
Message-ID: <20011217184637.A17505@codepoet.org> (raw)
In-Reply-To: <20011217182724.A17312@codepoet.org> <Pine.LNX.4.33.0112180237440.23388-100000@Appserv.suse.de>
In-Reply-To: <Pine.LNX.4.33.0112180237440.23388-100000@Appserv.suse.de>

On Tue Dec 18, 2001 at 02:38:48AM +0100, Dave Jones wrote:
> On Mon, 17 Dec 2001, Erik Andersen wrote:
> 
> 
> > This fix from -pre6 broke NCR5380 so that it does not compile
> > when linked into the kernel (i.e.  not as a module).  This patch
> > fixes it.  Please apply for 2.4.17-rc2,
> 
> This doesn't look right..

Sure it does, look closer.  :-)

> > -static int __init do_NCR53C400_setup(char *str)
> > -static int __init do_NCR53C400A_setup(char *str)
> > -static int __init do_DTC3181E_setup(char *str)
> 
> You nuked the functions..

Exactly.  Because there were two copies of that code, but one
copy was wrapped inside an '#ifndef MODULE' so when compiling as
a module, everything was cool.  But if you link the driver into
the kernel you would get two copies of those init funcs....

> >  __setup("ncr5380=", do_NCR5380_setup);
> >  __setup("ncr53c400=", do_NCR53C400_setup);
> >  __setup("ncr53c400a=", do_NCR53C400A_setup);
> >  __setup("dtc3181e=", do_DTC3181E_setup);
> 
> But not the references to them. What error are you seeing ?

make[3]: Entering directory `/usr/src/linux/drivers/scsi'
ld -m elf_i386 -r -o scsi_mod.o scsi.o hosts.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o scsi_error.o scsi_obsolete.o scsi_queue.o scsi_lib.o scsi_merge.o scsi_dma.o scsi_scan.o scsi_syms.o
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4     -c -o g_NCR5380.o g_NCR5380.c
g_NCR5380.c:917: redefinition of `do_NCR53C400_setup'
g_NCR5380.c:230: `do_NCR53C400_setup' previously defined here
g_NCR5380.c: In function `do_NCR53C400_setup':
g_NCR5380.c:921: warning: implicit declaration of function `generic_NCR53C400_setup'
g_NCR5380.c: At top level:
g_NCR5380.c:927: redefinition of `do_NCR53C400A_setup'
g_NCR5380.c:248: `do_NCR53C400A_setup' previously defined here
g_NCR5380.c: In function `do_NCR53C400A_setup':
g_NCR5380.c:931: warning: implicit declaration of function `generic_NCR53C400A_setup'
g_NCR5380.c: At top level:
g_NCR5380.c:937: redefinition of `do_DTC3181E_setup'
g_NCR5380.c:266: `do_DTC3181E_setup' previously defined here
g_NCR5380.c: In function `do_DTC3181E_setup':
g_NCR5380.c:941: warning: implicit declaration of function `generic_DTC3181E_setup'
g_NCR5380.c: At top level:
NCR5380.c:458: warning: `NCR5380_print_phase' defined but not used
NCR5380.c:402: warning: `NCR5380_print' defined but not used
{standard input}: Assembler messages:
{standard input}:4585: Error: symbol `do_NCR53C400_setup' is already defined
{standard input}:4608: Error: symbol `do_NCR53C400A_setup' is already defined
{standard input}:4631: Error: symbol `do_DTC3181E_setup' is already defined
make[3]: *** [g_NCR5380.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/scsi'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_dir_drivers] Error 2

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

  reply	other threads:[~2001-12-18  1:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-13 20:44 Linux 2.4.17-rc1 Marcelo Tosatti
2001-12-13 23:33 ` Ken Brownfield
2001-12-14  1:35 ` Roger Larsson
     [not found] ` <20011214061842.948118A6BA@cx518206-b.irvn1.occa.home.com>
2001-12-14 11:53   ` [BUG] 2.4.17-rc1 still has I/O freezing bug Ken Brownfield
2001-12-16  4:59 ` Linux 2.4.17-rc1 Daniel Phillips
2001-12-17 16:51   ` Marcelo Tosatti
2001-12-17 18:17     ` Richard Gooch
2001-12-17 21:00       ` Marcelo Tosatti
2001-12-16 14:13 ` David Relson
2001-12-16 14:19   ` Rik van Riel
2001-12-16 14:26   ` Dave Jones
2001-12-16 15:32     ` Ed Tomlinson
2001-12-16 15:37   ` David Relson
2001-12-16 16:10     ` John Alvord
2001-12-16 16:22     ` David Relson
2001-12-16 16:40       ` David Weinehall
2001-12-16 20:28   ` J Sloan
2001-12-18  1:27 ` Erik Andersen
2001-12-18  1:38   ` Dave Jones
2001-12-18  1:46     ` Erik Andersen [this message]
2001-12-18  1:53       ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2001-12-14  1:18 Dieter Nützel
2001-12-16 19:25 Mario Vanoni
2001-12-17 11:30 Martin Knoblauch

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=20011217184637.A17505@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davej@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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