linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Subject: linux-next: build failure after merge of the final tree (net-next tree related)
Date: Wed, 26 Jun 2013 17:56:10 +1000	[thread overview]
Message-ID: <20130626175610.8a8b6606fd9a5b6269398059@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 15670 bytes --]

Hi all,

After merging the final tree, today's linux-next build (powerpc
allyesconfig) failed like this:

In file included from arch/powerpc/include/asm/dma-mapping.h:123:0,
                 from include/linux/dma-mapping.h:76,
                 from include/linux/skbuff.h:33,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
drivers/net/ethernet/arc/emac_main.c: In function 'arc_emac_tx_clean':
include/linux/dma-mapping.h:227:56: error: request for member 'addr' in something not a structure or union
 #define dma_unmap_addr(PTR, ADDR_NAME)           ((PTR)->ADDR_NAME)
                                                        ^
include/asm-generic/dma-mapping-common.h:175:64: note: in definition of macro 'dma_unmap_single'
 #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, NULL)
                                                                ^
drivers/net/ethernet/arc/emac_main.c:174:32: note: in expansion of macro 'dma_unmap_addr'
   dma_unmap_single(&ndev->dev, dma_unmap_addr(&tx_buff, addr),
                                ^
include/linux/dma-mapping.h:229:56: error: request for member 'len' in something not a structure or union
 #define dma_unmap_len(PTR, LEN_NAME)             ((PTR)->LEN_NAME)
                                                        ^
include/asm-generic/dma-mapping-common.h:175:67: note: in definition of macro 'dma_unmap_single'
 #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, NULL)
                                                                   ^
drivers/net/ethernet/arc/emac_main.c:175:6: note: in expansion of macro 'dma_unmap_len'
      dma_unmap_len(&tx_buff, len), DMA_TO_DEVICE);
      ^
drivers/net/ethernet/arc/emac_main.c: In function 'arc_emac_rx':
include/linux/dma-mapping.h:227:56: error: request for member 'addr' in something not a structure or union
 #define dma_unmap_addr(PTR, ADDR_NAME)           ((PTR)->ADDR_NAME)
                                                        ^
include/asm-generic/dma-mapping-common.h:175:64: note: in definition of macro 'dma_unmap_single'
 #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, NULL)
                                                                ^
drivers/net/ethernet/arc/emac_main.c:243:32: note: in expansion of macro 'dma_unmap_addr'
   dma_unmap_single(&ndev->dev, dma_unmap_addr(&rx_buff, addr),
                                ^
include/linux/dma-mapping.h:229:56: error: request for member 'len' in something not a structure or union
 #define dma_unmap_len(PTR, LEN_NAME)             ((PTR)->LEN_NAME)
                                                        ^
include/asm-generic/dma-mapping-common.h:175:67: note: in definition of macro 'dma_unmap_single'
 #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, NULL)
                                                                   ^
drivers/net/ethernet/arc/emac_main.c:244:6: note: in expansion of macro 'dma_unmap_len'
      dma_unmap_len(&rx_buff, len), DMA_FROM_DEVICE);
      ^
In file included from include/linux/skbuff.h:33:0,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
include/linux/dma-mapping.h:228:57: error: request for member 'mapping' in something not a structure or union
 #define dma_unmap_addr_set(PTR, ADDR_NAME, VAL)  (((PTR)->ADDR_NAME) = (VAL))
                                                         ^
drivers/net/ethernet/arc/emac_main.c:267:3: note: in expansion of macro 'dma_unmap_addr_set'
   dma_unmap_addr_set(&rx_buff, mapping, addr);
   ^
include/linux/dma-mapping.h:230:57: error: request for member 'len' in something not a structure or union
 #define dma_unmap_len_set(PTR, LEN_NAME, VAL)    (((PTR)->LEN_NAME) = (VAL))
                                                         ^
drivers/net/ethernet/arc/emac_main.c:268:3: note: in expansion of macro 'dma_unmap_len_set'
   dma_unmap_len_set(&rx_buff, len, buflen);
   ^
In file included from include/linux/swab.h:4:0,
                 from include/uapi/linux/byteorder/big_endian.h:12,
                 from include/linux/byteorder/big_endian.h:4,
                 from arch/powerpc/include/uapi/asm/byteorder.h:10,
                 from include/asm-generic/bitops/le.h:5,
                 from arch/powerpc/include/asm/bitops.h:278,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:10,
                 from include/linux/skbuff.h:17,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
include/uapi/linux/swab.h:115:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (__builtin_constant_p((__u32)(x)) ? \
                        ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:270:16: note: in expansion of macro 'cpu_to_le32'
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
                ^
include/uapi/linux/swab.h:17:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x000000ffUL) << 24) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:270:16: note: in expansion of macro 'cpu_to_le32'
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
                ^
include/uapi/linux/swab.h:18:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x0000ff00UL) <<  8) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:270:16: note: in expansion of macro 'cpu_to_le32'
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
                ^
include/uapi/linux/swab.h:19:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:270:16: note: in expansion of macro 'cpu_to_le32'
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
                ^
include/uapi/linux/swab.h:20:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0xff000000UL) >> 24)))
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:270:16: note: in expansion of macro 'cpu_to_le32'
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
                ^
drivers/net/ethernet/arc/emac_main.c:270:3: warning: passing argument 1 of '__fswab32' makes integer from pointer without a cast [enabled by default]
   rxbd->data = cpu_to_le32(rx_buff->skb->data);
   ^
In file included from include/linux/swab.h:4:0,
                 from include/uapi/linux/byteorder/big_endian.h:12,
                 from include/linux/byteorder/big_endian.h:4,
                 from arch/powerpc/include/uapi/asm/byteorder.h:10,
                 from include/asm-generic/bitops/le.h:5,
                 from arch/powerpc/include/asm/bitops.h:278,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:10,
                 from include/linux/skbuff.h:17,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
include/uapi/linux/swab.h:57:41: note: expected '__u32' but argument is of type 'unsigned char *'
 static inline __attribute_const__ __u32 __fswab32(__u32 val)
                                         ^
drivers/net/ethernet/arc/emac_main.c: In function 'arc_emac_open':
include/uapi/linux/swab.h:115:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (__builtin_constant_p((__u32)(x)) ? \
                        ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:406:14: note: in expansion of macro 'cpu_to_le32'
   bd->data = cpu_to_le32(skb->data);
              ^
include/uapi/linux/swab.h:17:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x000000ffUL) << 24) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:406:14: note: in expansion of macro 'cpu_to_le32'
   bd->data = cpu_to_le32(skb->data);
              ^
include/uapi/linux/swab.h:18:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x0000ff00UL) <<  8) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:406:14: note: in expansion of macro 'cpu_to_le32'
   bd->data = cpu_to_le32(skb->data);
              ^
include/uapi/linux/swab.h:19:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) |  \
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:406:14: note: in expansion of macro 'cpu_to_le32'
   bd->data = cpu_to_le32(skb->data);
              ^
include/uapi/linux/swab.h:20:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  (((__u32)(x) & (__u32)0xff000000UL) >> 24)))
    ^
include/uapi/linux/swab.h:116:2: note: in expansion of macro '___constant_swab32'
  ___constant_swab32(x) :   \
  ^
include/uapi/linux/byteorder/big_endian.h:32:43: note: in expansion of macro '__swab32'
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
                                           ^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
 #define cpu_to_le32 __cpu_to_le32
                     ^
drivers/net/ethernet/arc/emac_main.c:406:14: note: in expansion of macro 'cpu_to_le32'
   bd->data = cpu_to_le32(skb->data);
              ^
drivers/net/ethernet/arc/emac_main.c:406:3: warning: passing argument 1 of '__fswab32' makes integer from pointer without a cast [enabled by default]
   bd->data = cpu_to_le32(skb->data);
   ^
In file included from include/linux/swab.h:4:0,
                 from include/uapi/linux/byteorder/big_endian.h:12,
                 from include/linux/byteorder/big_endian.h:4,
                 from arch/powerpc/include/uapi/asm/byteorder.h:10,
                 from include/asm-generic/bitops/le.h:5,
                 from arch/powerpc/include/asm/bitops.h:278,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:10,
                 from include/linux/skbuff.h:17,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
include/uapi/linux/swab.h:57:41: note: expected '__u32' but argument is of type 'unsigned char *'
 static inline __attribute_const__ __u32 __fswab32(__u32 val)
                                         ^
In file included from include/linux/skbuff.h:33:0,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from drivers/net/ethernet/arc/emac_main.c:16:
drivers/net/ethernet/arc/emac_main.c: In function 'arc_emac_tx':
include/linux/dma-mapping.h:228:57: error: 'struct buffer_state' has no member named 'mapping'
 #define dma_unmap_addr_set(PTR, ADDR_NAME, VAL)  (((PTR)->ADDR_NAME) = (VAL))
                                                         ^
drivers/net/ethernet/arc/emac_main.c:546:2: note: in expansion of macro 'dma_unmap_addr_set'
  dma_unmap_addr_set(&priv->tx_buff[*txbd_curr], mapping, addr);
  ^

Caused by commit e4f2379db6c6 ("ethernet/arc/arc_emac - Add new driver")
from the net-next tree.

I have reverted that commit for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2013-06-26  7:56 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26  7:56 Stephen Rothwell [this message]
2013-06-26  8:07 ` linux-next: build failure after merge of the final tree (net-next tree related) Alexey Brodkin
2013-06-26  8:36   ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2014-03-18  7:27 Stephen Rothwell
2014-03-19  3:13 ` David Miller
2014-03-17 10:21 Stephen Rothwell
2014-03-19  3:11 ` David Miller
2014-03-17 10:13 Stephen Rothwell
2013-09-02  9:11 Stephen Rothwell
2013-09-02  9:18 ` Cong Wang
2013-07-03  7:48 Stephen Rothwell
2013-07-03  7:51 ` Sedat Dilek
2013-07-03  8:45 ` Eliezer Tamir
2013-07-03 19:17 ` David Miller
2013-04-23  7:46 Stephen Rothwell
2013-04-23 17:10 ` David Miller
2013-04-23 23:44 ` David Rientjes
2013-04-12  6:00 Stephen Rothwell
2013-04-12  7:08 ` David Miller
2013-03-28  5:04 Stephen Rothwell
2013-03-28  5:19 ` David Miller
2013-01-03  3:23 Stephen Rothwell
2013-01-03  3:28 ` David Miller
2013-01-03  9:51 ` David Miller
2012-09-20  7:36 Stephen Rothwell
2012-09-20  9:10 ` Mika Westerberg
2012-09-20 20:45   ` David Miller
2012-09-20 22:15     ` Stephen Rothwell
2012-09-20 22:22       ` Benjamin Herrenschmidt
2012-09-20 22:53         ` David Miller
2012-09-21 21:46           ` Benjamin Herrenschmidt
2012-09-22 20:00             ` David Miller
2012-09-22 21:20               ` Benjamin Herrenschmidt
2012-09-20 22:28     ` Stephen Rothwell
2012-09-21  1:37 ` Stephen Rothwell
2012-09-05  5:39 Stephen Rothwell
2012-09-05 21:46 ` David Miller
2012-09-04  6:58 Stephen Rothwell
2012-09-04 18:20 ` David Miller
2012-09-04 19:50   ` Jerry Chu
2012-07-22  6:34 Stephen Rothwell
2012-07-22  7:29 ` Jiri Pirko
2012-05-03  6:16 Stephen Rothwell
2012-05-03  6:26 ` David Miller
2012-04-30  5:58 Stephen Rothwell
2012-04-30 17:22 ` David Miller
2012-04-19  6:28 Stephen Rothwell
2012-04-19  6:40 ` David Miller
2012-04-10  5:29 Stephen Rothwell
2012-04-10 13:26 ` David Miller
2012-04-05  3:25 Stephen Rothwell
2012-04-05  3:59 ` David Miller
2012-04-06  7:09   ` Giuseppe CAVALLARO
2012-04-06  7:30     ` Giuseppe CAVALLARO
2012-02-20  5:15 Stephen Rothwell
2012-02-20  5:46 ` David Miller
2011-12-14  7:07 Stephen Rothwell
2011-12-14 18:35 ` David Miller
2011-11-23  4:00 Stephen Rothwell
2011-11-23 12:09 ` Neil Horman
2011-11-23 23:02   ` Andrew Morton
2011-11-23 23:44     ` David Miller

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=20130626175610.8a8b6606fd9a5b6269398059@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=Alexey.Brodkin@synopsys.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).