From: Krzysztof Halasa <khc@pm.waw.pl>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test5-mm4: wanxl doesn't compile with gcc 2.95
Date: 23 Sep 2003 00:42:03 +0200 [thread overview]
Message-ID: <m3fzioigxw.fsf@defiant.pm.waw.pl> (raw)
In-Reply-To: <20030922191049.GC6325@fs.tum.de>
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi,
Adrian Bunk <bunk@fs.tum.de> writes:
> make[3]: *** [drivers/net/wan/wanxl.o] Error 1
>
> <-- snip -->
>
> For gcc 2.95, all variable declarations must be at the beginning.
Sure, though it seems I keep overlooking things like this.
Does the following patch fix it?
Thanks.
--
Krzysztof Halasa, B*FH
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: wanxl-2.6-0.46-0.47.patch --]
[-- Type: text/x-patch, Size: 2033 bytes --]
--- linux-2.6.orig/drivers/net/wan/wanxl.c 2003-09-23 00:18:19.000000000 +0200
+++ linux-2.6/drivers/net/wan/wanxl.c 2003-09-23 00:33:34.000000000 +0200
@@ -31,7 +31,7 @@
#include "wanxl.h"
-static const char* version = "wanXL serial card driver version: 0.46";
+static const char* version = "wanXL serial card driver version: 0.47";
#define PLX_CTL_RESET 0x40000000 /* adapter reset */
@@ -125,7 +125,7 @@
dma_addr_t addr = pci_map_single(pdev, ptr, size, direction);
if (addr + size > 0x100000000LL)
printk(KERN_CRIT "wanXL %s: pci_map_single() returned memory"
- " at 0x%X!\n", card_name(pdev), addr);
+ " at 0x%LX!\n", card_name(pdev), (u64)addr);
return addr;
}
@@ -180,8 +180,7 @@
static inline void wanxl_tx_intr(port_t *port)
{
while (1) {
- desc_t *desc;
- desc = &get_status(port)->tx_descs[port->tx_in];
+ desc_t *desc = &get_status(port)->tx_descs[port->tx_in];
struct sk_buff *skb = port->tx_skbs[port->tx_in];
switch (desc->stat) {
@@ -292,10 +291,11 @@
{
hdlc_device *hdlc = dev_to_hdlc(dev);
port_t *port = hdlc_to_port(hdlc);
+ desc_t *desc;
spin_lock(&port->lock);
- desc_t *desc = &get_status(port)->tx_descs[port->tx_out];
+ desc = &get_status(port)->tx_descs[port->tx_out];
if (desc->stat != PACKET_EMPTY) {
/* should never happen - previous xmit should stop queue */
#ifdef DEBUG_PKT
@@ -578,6 +578,14 @@
u8 *mem; /* memory virtual base addr */
int i, ports, alloc_size;
+#ifndef MODULE
+ static int printed_version;
+ if (!printed_version) {
+ printed_version++;
+ printk(KERN_INFO "%s\n", version);
+ }
+#endif
+
i = pci_enable_device(pdev);
if (i)
return i;
@@ -628,7 +636,7 @@
#ifdef DEBUG_PCI
printk(KERN_DEBUG "wanXL %s: pci_alloc_consistent() returned memory"
- " at 0x%X\n", card_name(pdev), card->status_address);
+ " at 0x%LX\n", card_name(pdev), (u64)card->status_address);
#endif
/* FIXME when PCI/DMA subsystems are fixed.
next prev parent reply other threads:[~2003-09-22 22:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-22 8:35 2.6.0-test5-mm4 Andrew Morton
2003-09-22 11:49 ` 2.6.0-test5-mm4: BeFS compile error Adrian Bunk
2003-09-22 17:57 ` Will Dyson
2003-09-22 12:09 ` 2.6.0-test5-mm4 Florian Schanda
2003-09-22 12:17 ` 2.6.0-test5-mm4 Alistair J Strachan
2003-09-22 13:48 ` 2.6.0-test5-mm4 viro
2003-09-22 14:29 ` 2.6.0-test5-mm4 Alistair J Strachan
2003-09-22 14:30 ` 2.6.0-test5-mm4 Florian Schanda
2003-09-22 14:36 ` 2.6.0-test5-mm4 Zilvinas Valinskas
2003-09-22 13:49 ` 2.6.0-test5-mm4 Alistair J Strachan
2003-09-22 13:54 ` 2.6.0-test5-mm4 Alistair J Strachan
2003-09-22 18:55 ` 2.6.0-test5-mm4 Andrew Morton
2003-09-22 21:27 ` 2.6.0-test5-mm4 Peter Osterlund
2003-09-22 21:45 ` 2.6.0-test5-mm4 Vojtech Pavlik
2003-09-25 0:13 ` 2.6.0-test5-mm4 Peter Osterlund
2003-09-25 12:43 ` 2.6.0-test5-mm4 Vojtech Pavlik
2003-09-22 21:44 ` 2.6.0-test5-mm4 Vojtech Pavlik
2003-09-22 19:10 ` 2.6.0-test5-mm4: wanxl doesn't compile with gcc 2.95 Adrian Bunk
2003-09-22 19:22 ` Andrew Morton
2003-09-22 22:42 ` Krzysztof Halasa [this message]
2003-09-22 22:41 ` Andrew Morton
2003-09-23 13:24 ` Krzysztof Halasa
2003-09-24 9:18 ` 2.6.0-test5-mm4 boot crash Helge Hafting
2003-09-24 9:57 ` viro
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=m3fzioigxw.fsf@defiant.pm.waw.pl \
--to=khc@pm.waw.pl \
--cc=akpm@osdl.org \
--cc=bunk@fs.tum.de \
--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
all inboxes | Powered by JetHome®