public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Yenya Kasprzak <kas@informatics.muni.cz>
To: Adrian Bunk <bunk@fs.tum.de>, torvalds@transmeta.com
Cc: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: 2.5.56: Two global symbols "io"
Date: Mon, 13 Jan 2003 08:55:18 +0100	[thread overview]
Message-ID: <20030113085518.D3702@fi.muni.cz> (raw)
In-Reply-To: <20030112131244.GW21826@fs.tum.de>; from bunk@fs.tum.de on Sun, Jan 12, 2003 at 02:12:44PM +0100

Adrian Bunk wrote:
: I got the following compile error in 2.5.56:
: 
[...]
: sound/built-in.o(.data+0x7b30): multiple definition of `io'
: drivers/built-in.o(.data+0x738a0):
: ...
: ld: Warning: size of symbol `io' changed from 68 to 4 in sound/built-in.o
: ...
: make: *** [.tmp_vmlinux1] Error 1
[...]
: The offending files are:
:   sound/oss/awe_wave.c
:   drivers/net/wan/cosa.c

	Just change it to "static". This has been reported before
by Arnd Bergmann from the Kernel Janitors Project. However: cosa.c
can be built as a module only. Linus, please apply this.

From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>
--- trivial-2.5-bk/drivers/net/wan/cosa.c.orig	2003-01-06 14:08:20.000000000 +1100
+++ trivial-2.5-bk/drivers/net/wan/cosa.c	2003-01-06 14:08:20.000000000 +1100
@@ -227,8 +227,8 @@
 /* NOTE: DMA is not autoprobed!!! */
 static int dma[MAX_CARDS+1] = { 1, 7, 1, 7, 1, 7, 1, 7, 0, };
 #else
-int io[MAX_CARDS+1]  = { 0, };
-int dma[MAX_CARDS+1] = { 0, };
+static int io[MAX_CARDS+1];
+static int dma[MAX_CARDS+1];
 #endif
 /* IRQ can be safely autoprobed */
 static int irq[MAX_CARDS+1] = { -1, -1, -1, -1, -1, -1, 0, };

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|-- If you start doing things because you hate others and want to screw  --|
|-- them over the end result is bad.   --Linus Torvalds to the BBC News  --|

  reply	other threads:[~2003-01-13  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-12 13:12 2.5.56: Two global symbols "io" Adrian Bunk
2003-01-13  7:55 ` Jan Yenya Kasprzak [this message]
2003-01-13 10:10   ` Adrian Bunk

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=20030113085518.D3702@fi.muni.cz \
    --to=kas@informatics.muni.cz \
    --cc=bunk@fs.tum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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