public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Andres Salomon" <dilinger@voxel.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] register_ioctl32_conversion symbol exports fix
Date: Wed, 28 May 2003 01:45:33 -0400	[thread overview]
Message-ID: <bb1i9v$t9b$1@main.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.44.0305261903330.2164-100000@home.transmeta.com

I get the following error when compiling 2.5.70 for sparc64, using
gcc-3.3:


 CC      init/version.o
scripts/fixdep init/.version.o.d init/version.o 'gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare -Wa,--undeclared-regs -finline-limit=100000 -fomit-frame-pointer -nostdinc -iwithprefix include    -DKBUILD_BASENAME=version -DKBUILD_MODNAME=version -c -o init/.tmp_version.o init/version.c' > init/.version.o.tmp; rm -f init/.version.o.d; mv -f init/.version.o.tmp init/.version.o.cmd
  LD      init/built-in.o
  LD      vmlinux
fs/built-in.o(*ABS*+0xb766971): In function `__crc_register_ioctl32_conversion':util.c: multiple definition of `__crc_register_ioctl32_conversion'
make: *** [vmlinux] Error 1


The problem is apparently register_ioctl32_conversion() is exported twice
for a few architectures:

./fs/compat.c:int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *))
./fs/compat.c:EXPORT_SYMBOL(register_ioctl32_conversion);
./arch/ppc64/kernel/ppc_ksyms.c:EXPORT_SYMBOL(register_ioctl32_conversion);
./arch/sparc64/kernel/sparc64_ksyms.c:EXPORT_SYMBOL(register_ioctl32_conversion);

Since compat.c is only built if CONFIG_COMPAT is defined, the entries in
${arch}_ksyms.c are incorrect (at the very least, they need to test for
this sort of thing).  I don't see the harm in removing the exports
altogether from the arch-specific stuff; so, that's what this patch does
(to both {,un}register_ioctl32_conversion).  Please apply (or correct me
;)




On Mon, 26 May 2003 19:08:45 -0700, Linus Torvalds wrote:
> 
> Ok, 
>  there's been too much delay between 69 and 70, but I was hoping to make 
> 70 the last "Linus only" release before getting together with Andrew and 
> figuring out how to start the "pre-2.6" series and more of a code slush. 
> 
[...]
>   o I2C: And another it87 patch
>   o I2C: And yet another it87 patch



  parent reply	other threads:[~2003-05-28  5:32 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-27  2:08 Linux 2.5.70 Linus Torvalds
2003-05-27  2:45 ` Linux 2.5.70 (Compiler warnings) Udo A. Steinberg
2003-05-27  3:09   ` YOSHIFUJI Hideaki / 吉藤英明
2003-05-27  7:10     ` David S. Miller
2003-05-27  8:48 ` Linux 2.5.70 compile error DevilKin
2003-05-27 13:05   ` William Lee Irwin III
2003-05-27 15:29     ` DevilKin-LKML
2003-05-27 15:36       ` William Lee Irwin III
2003-05-27 15:48         ` John Stoffel
2003-05-27 15:52           ` William Lee Irwin III
2003-05-27 16:35             ` John Stoffel
2003-05-27 16:43               ` William Lee Irwin III
2003-05-27 17:50                 ` John Stoffel
2003-05-27 17:56                   ` William Lee Irwin III
2003-05-27 21:56                   ` Martin J. Bligh
2003-05-27 18:19           ` Roman Zippel
2003-05-27 18:40             ` Dave Jones
2003-05-27 18:50               ` William Lee Irwin III
2003-05-27 21:59               ` Martin J. Bligh
2003-05-27 23:40                 ` Dave Jones
2003-05-28  3:20                   ` Martin J. Bligh
2003-05-28  3:34                 ` William Lee Irwin III
2003-05-28  6:11                   ` Martin J. Bligh
2003-05-28  7:43                     ` William Lee Irwin III
2003-05-28 15:28                       ` Martin J. Bligh
2003-05-29  1:14                         ` William Lee Irwin III
2003-05-28  6:52                   ` Dave Jones
2003-05-28 22:08                 ` Bill Davidsen
2003-05-29  0:36                   ` Martin J. Bligh
2003-05-27 19:46             ` John Stoffel
2003-05-27 15:38       ` Sean Neakums
2003-05-27 15:52         ` Martin J. Bligh
2003-05-27 16:58 ` Linux 2.5.70 Ricky Beam
2003-05-27 17:26   ` Linus Torvalds
2003-05-27 16:48     ` Alan Cox
2003-05-27 17:53       ` Linus Torvalds
2003-05-27 21:15         ` Hans Reiser
2003-05-27 18:09     ` Ricky Beam
2003-05-27 18:22       ` Jeff Garzik
2003-05-27 18:31       ` Robert Love
2003-05-27 19:18       ` Adrian Bunk
2003-05-28 16:08       ` Bill Davidsen
2003-05-28 15:58     ` Bill Davidsen
2003-05-28 16:14       ` Linus Torvalds
2003-05-28 19:22         ` ismail (cartman) donmez
2003-05-29 11:14           ` Dave Jones
2003-05-29 11:14             ` ismail (cartman) donmez
2003-05-28 22:40         ` Bill Davidsen
2003-05-27 21:06   ` Andreas Boman
2003-05-28  2:30   ` Daniel Phillips
2003-05-27 21:42 ` John Cherry
2003-05-28 17:55   ` John Cherry
2003-05-28  5:45 ` Andres Salomon [this message]
     [not found]   ` <20030528074701.GA17449@fs.tum.de>
2003-05-28  8:05     ` [PATCH] register_ioctl32_conversion symbol exports fix Andres Salomon
2003-05-28 14:59 ` Linux 2.5.70 Paweł Gołaszewski

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='bb1i9v$t9b$1@main.gmane.org' \
    --to=dilinger@voxel.net \
    --cc=linux-kernel@vger.kernel.org \
    /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