lkml.org 
[lkml]   [2003]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.6.0-test5-mm4: wanxl doesn't compile with gcc 2.95
    Adrian Bunk <bunk@fs.tum.de> wrote:
    >
    > I'm getting the following compile error with gcc 2.95:
    >
    > <-- snip -->
    >
    > ...
    > CC drivers/net/wan/wanxl.o
    > drivers/net/wan/wanxl.c: In function `pci_map_single_debug':
    > drivers/net/wan/wanxl.c:128: warning: unsigned int format, different type arg (arg 3)
    > drivers/net/wan/wanxl.c: In function `wanxl_tx_intr':
    > drivers/net/wan/wanxl.c:185: parse error before `struct'


    25-akpm/drivers/net/wan/wanxl.c | 9 +++++----
    1 files changed, 5 insertions(+), 4 deletions(-)
    diff -puN drivers/net/wan/wanxl.c~wanxl-build-fix drivers/net/wan/wanxl.c
    --- 25/drivers/net/wan/wanxl.c~wanxl-build-fix Mon Sep 22 12:18:36 2003
    +++ 25-akpm/drivers/net/wan/wanxl.c Mon Sep 22 12:21:30 2003
    @@ -125,7 +125,8 @@ static inline dma_addr_t pci_map_single_
    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), (unsigned long long)addr);
    return addr;
    }

    @@ -180,8 +181,7 @@ static inline void wanxl_cable_intr(port
    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) {
    @@ -290,12 +290,13 @@ static irqreturn_t wanxl_intr(int irq, v

    static int wanxl_xmit(struct sk_buff *skb, struct net_device *dev)
    {
    + desc_t *desc;
    hdlc_device *hdlc = dev_to_hdlc(dev);
    port_t *port = hdlc_to_port(hdlc);

    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
    _

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:0.720 / U:0.796 seconds]
    ©2003-2014 Jasper Spaans. hosted at Digital Ocean