From: Andrew Morton <akpm@linux-foundation.org>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: Daniel Santos <daniel.santos@pobox.com>,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
Jesse Brandeburg <jesse.brandeburg@intel.com>,
Bruce Allan <bruce.w.allan@intel.com>,
netdev@vger.kernel.org
Subject: Re: [next:akpm 16/587] drivers/net/ethernet/intel/igb/igb_main.c:6231:2: error: call to '__compiletime_assert_6235' declared with attribute error: BUILD_BUG_ON failed: SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD + NET_IP_ALIGN + IGB_TS_HDR_LEN + ETH_FRAME_LEN + ETH_FCS_LEN)
Date: Tue, 19 Feb 2013 14:27:08 -0800 [thread overview]
Message-ID: <20130219142708.b454d98a.akpm@linux-foundation.org> (raw)
In-Reply-To: <5122101a.nBjTqFyZXZ+WuzPr%fengguang.wu@intel.com>
On Mon, 18 Feb 2013 19:27:22 +0800
kbuild test robot <fengguang.wu@intel.com> wrote:
> tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm
> head: ae9da2a24a80423b8dbda9c5a72674ce6e7861be
> commit: f7d7e38e6df399b2af7f04c177054abdd744a077 [16/587] bug.h, compiler.h: Introduce compiletime_assert & BUILD_BUG_ON_MSG
> config: make ARCH=s390 allmodconfig
>
> All error/warnings:
>
> In function 'igb_build_rx_buffer',
> inlined from 'igb_clean_rx_irq' at drivers/net/ethernet/intel/igb/igb_main.c:6705:8:
> >> drivers/net/ethernet/intel/igb/igb_main.c:6231:2: error: call to '__compiletime_assert_6235' declared with attribute error: BUILD_BUG_ON failed: SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD + NET_IP_ALIGN + IGB_TS_HDR_LEN + ETH_FRAME_LEN + ETH_FCS_LEN)
>
> vim +/__compiletime_assert_6235 +6231 drivers/net/ethernet/intel/igb/igb_main.c
>
> 6225 #endif
> 6226
> 6227 /* If we spanned a buffer we have a huge mess so test for it */
> 6228 BUG_ON(unlikely(!igb_test_staterr(rx_desc, E1000_RXD_STAT_EOP)));
> 6229
> 6230 /* Guarantee this function can be used by verifying buffer sizes */
> > 6231 BUILD_BUG_ON(SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD +
> 6232 NET_IP_ALIGN +
> 6233 IGB_TS_HDR_LEN +
> 6234 ETH_FRAME_LEN +
>
That BUILD_BUG_ON() triggers without Daniel's patches applied as well:
CC [M] drivers/net/ethernet/intel/igb/igb_main.o
drivers/net/ethernet/intel/igb/igb_main.c: In function 'igb_build_rx_buffer':
drivers/net/ethernet/intel/igb/igb_main.c:6231: error: size of array 'type name' is negative
I suspect that driver is busted on s390. Dunno why. Here's what cpp emits:
s390 allmodconfig:
bool __cond = !(!(((2048) - (((sizeof(struct skb_shared_info)) + (256 - 1)) & ~(256 - 1))) < (32 + 2 + 16 + 1514 + 4)));
x86_64 allmodconfig:
bool __cond = !(!(((2048) - (((sizeof(struct skb_shared_info)) + ((1 <<
(6)) - 1)) & ~((1 << (6)) - 1))) < (({ typeof(32) _max1 = (32); typeof((1
<< (6))) _max2 = ((1 << (6))); (void) (&_max1 == &_max2); _max1 > _max2 ? _max1 : _max2; }) + 0 + 16 + 1514 + 4)));
I doubt if anyone will be running this driver on s390, but I guess we
should work out why it broke.
next parent reply other threads:[~2013-02-19 22:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5122101a.nBjTqFyZXZ+WuzPr%fengguang.wu@intel.com>
2013-02-19 22:27 ` Andrew Morton [this message]
2013-02-19 22:30 ` [next:akpm 16/587] drivers/net/ethernet/intel/igb/igb_main.c:6231:2: error: call to '__compiletime_assert_6235' declared with attribute error: BUILD_BUG_ON failed: SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD + NET_IP_ALIGN + IGB_TS_HDR_LEN + ETH Allan, Bruce W
2013-02-20 1:09 ` Eric Dumazet
2013-02-20 18:16 ` [E1000-devel] " Alexander Duyck
2013-02-20 19:22 ` Eric Dumazet
2013-02-20 21:23 ` Alexander Duyck
2013-02-20 21:42 ` Eric Dumazet
2013-02-20 22:47 ` Alexander Duyck
2013-02-20 23:02 ` Eric Dumazet
2013-02-21 9:42 ` [E1000-devel] [next:akpm 16/587] drivers/net/ethernet/intel/igb/igb_main.c:6231:2: error: call to '__compiletime_assert_6235' declared with attribute error: BUILD_BUG_ON failed: SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD + NET_IP_ALIGN + IGB_TS_HD David Laight
2013-02-19 23:02 ` [next:akpm 16/587] drivers/net/ethernet/intel/igb/igb_main.c:6231:2: error: call to '__compiletime_assert_6235' declared with attribute error: BUILD_BUG_ON failed: SKB_WITH_OVERHEAD(IGB_RX_BUFSZ) < (NET_SKB_PAD + NET_IP_ALIGN + IGB_TS_HDR_LEN + ETH Wyborny, Carolyn
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=20130219142708.b454d98a.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bruce.w.allan@intel.com \
--cc=daniel.santos@pobox.com \
--cc=fengguang.wu@intel.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesse.brandeburg@intel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.