Article View: linux.kernel.netdev
Article #17454Re: [PATCH net-next v5 6/9] virtio-net: assert header sizes
From: kernel test robot
Date: Mon, 16 Nov 2026 20:50
Date: Mon, 16 Nov 2026 20:50
75 lines
14023 bytes
14023 bytes
Hi Steffen,
kernel test robot noticed the following build errors:
[auto build test ERROR on c88fd6989aea9237a60a4859139a265bfb7ddc0b]
url: https://github.com/intel-lab-lkp/linux/commits/Steffen-Trumtrar/net-ethtool-tsconfig-allow-hardware-timestamping-without-a-PHC/20261112-121933
base: c88fd6989aea9237a60a4859139a265bfb7ddc0b
patch link: https://lore.kernel.org/r/20261112-v6-7-topic-virtio-net-ptp-v5-6-7ab67b572f4f%40pengutronix.de
patch subject: [PATCH net-next v5 6/9] virtio-net: assert header sizes
config: arm-neponset_defconfig (https://download.01.org/0day-ci/archive/20261117/202611170421.klVDQaAD-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261117/202611170421.klVDQaAD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611170421.klVDQaAD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/bits.h:30,
from include/linux/bitops.h:6,
from include/linux/bitmap.h:8,
from include/linux/ethtool.h:16,
from net/packet/af_packet.c:51:
>> include/linux/build_bug.h:80:41: error: static assertion failed: "offsetof(struct virtio_net_common_hdr, tstamp) == 32"
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~~~~~~~~~~~
include/linux/build_bug.h:79:34: note: in expansion of macro '__static_assert'
79 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/virtio_net.h:36:1: note: in expansion of macro 'static_assert'
36 | static_assert(offsetof(struct virtio_net_common_hdr, tstamp) == 32);
| ^~~~~~~~~~~~~
>> include/linux/build_bug.h:80:41: error: static assertion failed: "__alignof__(struct virtio_net_common_hdr) == 2"
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~~~~~~~~~~~
include/linux/build_bug.h:79:34: note: in expansion of macro '__static_assert'
79 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/virtio_net.h:39:1: note: in expansion of macro 'static_assert'
39 | static_assert(__alignof__(struct virtio_net_common_hdr) == 2);
| ^~~~~~~~~~~~~
vim +80 include/linux/build_bug.h
bc6245e5efd70c4 Ian Abbott 2017-07-10 61
6bab69c65013bed Rasmus Villemoes 2019-03-07 62 /**
6bab69c65013bed Rasmus Villemoes 2019-03-07 63 * static_assert - check integer constant expression at build time
6ffd853b0b10e1e Randy Dunlap 2026-03-01 64 * @expr: expression to be checked
6bab69c65013bed Rasmus Villemoes 2019-03-07 65 *
6bab69c65013bed Rasmus Villemoes 2019-03-07 66 * static_assert() is a wrapper for the C11 _Static_assert, with a
6bab69c65013bed Rasmus Villemoes 2019-03-07 67 * little macro magic to make the message optional (defaulting to the
6bab69c65013bed Rasmus Villemoes 2019-03-07 68 * stringification of the tested expression).
6bab69c65013bed Rasmus Villemoes 2019-03-07 69 *
6bab69c65013bed Rasmus Villemoes 2019-03-07 70 * Contrary to BUILD_BUG_ON(), static_assert() can be used at global
6bab69c65013bed Rasmus Villemoes 2019-03-07 71 * scope, but requires the expression to be an integer constant
6bab69c65013bed Rasmus Villemoes 2019-03-07 72 * expression (i.e., it is not enough that __builtin_constant_p() is
6bab69c65013bed Rasmus Villemoes 2019-03-07 73 * true for expr).
6bab69c65013bed Rasmus Villemoes 2019-03-07 74 *
6bab69c65013bed Rasmus Villemoes 2019-03-07 75 * Also note that BUILD_BUG_ON() fails the build if the condition is
6bab69c65013bed Rasmus Villemoes 2019-03-07 76 * true, while static_assert() fails the build if the expression is
6bab69c65013bed Rasmus Villemoes 2019-03-07 77 * false.
6bab69c65013bed Rasmus Villemoes 2019-03-07 78 */
6bab69c65013bed Rasmus Villemoes 2019-03-07 79 #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
6bab69c65013bed Rasmus Villemoes 2019-03-07 @80 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
6bab69c65013bed Rasmus Villemoes 2019-03-07 81
07a368b3f55a79d Maxim Levitsky 2022-10-25 82
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Technical Details
Message-ID:
<202611170421.klVDQaAD-lkp@intel.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364712-linux-kernel-netdev=dewy.ruReferences:
<20261112-v6-7-topic-virtio-net-ptp-v5-6-7ab67b572f4f@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364712-linux-kernel-netdev=dewy.ru From: lkp@intel.com (kernel test robot) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 6/9] virtio-net: assert header sizes Date: Tue, 17 Nov 2026 04:50:35 +0800 Organization: Usenet Network Message-ID: <202611170421.klVDQaAD-lkp@intel.com> References: <20261112-v6-7-topic-virtio-net-ptp-v5-6-7ab67b572f4f@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2166075"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Er9J8rIVekh9R5/N/aDcHTGMnQM= sha256:n+5EU0xTtYkHTbAYOlfdl4Gw0UrlzzubxDQWd24K48s= sha1:X/pa+oLHW2oOrUkHGNGi/cjz3qE= sha256:vkZAvLsiP2MCFMO04xprEdmaZqQwlHOjrK7/TmTRT4g= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 519AA114D71; Mon, 16 Nov 2026 23:51:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Ti4o4TSqesu; Mon, 16 Nov 2026 23:51:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-364712-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id D545A114CF6; Mon, 16 Nov 2026 23:51:10 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 6CCBA601A93; Mon, 16 Nov 2026 20:51:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794862268; b=CH98EWrl8zVda3/tMGXo1x3zPnC/o1DEffxIjoDUcNjG6CZwcVPVmVm5Rxj98n9DC1Fd hdQzdfzHH+zjvDM5+Tp/Hzhgwef16P5fx4iLtqGv3fZ3Z1vjzXx1fUy4Ys3pSWfqmp644 UbQnjEGp8ckH8GD9vBiGtahYzjJP3Lf+ioc527Dtr7j7IlKUcvVMQy89Zo1cMixo42fRd XaLe+c6lPSI1ge8IBnP2bnNfHdT1mVCgaHluq/ez8MaZ3NsMbX0RpzNd9VXcZECuUkNhT CHiXsKHVO03XJhqzIJixjvP0AalfPcLd5dGhRgarGTZsUEukW4S5EGQcQSm1WLSO9JA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794862268; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV: Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV: Received:Received:Date:From:To:Cc:Subject:Message-ID:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=LbYY8S+YO6IOf9cej8HAyGPboaJz0Yq/WVfxOOkRios=; b=XENv4fy3wYGAqPz1+fqar9StYaED2NdGCzSnO/XbO/Zn8k0CDILBrutda8kuJVef78nq sHmzn8+4z6kdpLYCPJ0jlTU8SybXwSy5uWP1JeQmnDwntGn+46Ox38KDHqXNMIl3Er9lS hyqyW33JR900wq2nMePqCS7sWFFrBDxSs4e8q86LVOPzyEiUgrDWj5B96s2jS5IM9BBQu t8LKq7GlaB/GrLFYKI1a6Qi3uUibNiDbFTifFT2QF3QFkVv84174XcTs69gdMFX3P+7SJ GvaGHg+j3LhjsM+Zc6nEDziLuQ5GZyPzj/O65YILP5n6pTfNNi3SsFIDgK88FDkHZew== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Kc3N08k+; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40F04606A32A; Mon, 16 Nov 2026 20:51:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Kc3N08k+ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.17 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794862262; b=y/hZkMY2m0gnvD46U9dSM5Mol0/psUZe9yUbRSS/BiYFfRsuBdAkVEnGAq4Uao03H8zi r5ZfQd4u1lD2b9ElHBGya/oLu14M1YCTtVoMcXgJJd+ssRbjOqKgfx8Paosc7L8JFaSfF b02tHHnePdmdGz5HeaHqXtgYHLPWcgEsciL1wb5EL6oMqTInCAdEskfZJWXqbdYS6XQCm PXFrMo++ySJOufHlqO/1h7c2ksfCeRhhGYH6chOiUMSwSY4lnHF7+jYDEwKCNpExpMs+v mtF3YcLPy3Pef2AmqRnvwV9r4DvVKGbMlPajrFgDdLXo3sfxxak2TY/em7lzZkJMR3w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794862262; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=LbYY8S+YO6IOf9cej8HAyGPboaJz0Yq/WVfxOOkRios=; b=0xz4DM75bN/OBuDaHgrR1+9+u1y3HjEDhKut/zp9J2h7pnCcbKOsK8eLu1OQI2I3yB2m uJggMkXNuZh41e/e2i+qQHOwwPoeCZuqUIW/nAfIGZmuWYSoiJJfY1VvVSeYScvcjJ+uf 4piZaWilOiBNhkaJGhQ5QJRkKYpYIC4iWVqYhW0X+tJ9whaVgGCSepiD42M8ZtKcEWAd9 tVWs8FvONYt66ZYjWp2jwHI5325E5DTlF7Ix7bwSrSszHfpchC+NiUHK3GcWnRfBcFYSm fmb99Rq3Se71Asxxe2vJWVV2TV5+RnZae189KVRWlL6uhkpzHP02Eh2NibQOxyQmCMw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Kc3N08k+; arc=none smtp.remote-ip=198.175.65.17 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F05F8606A32C; Mon, 16 Nov 2026 20:51:01 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F05F8606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1794862262; x=1826398262; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=o+hAdGEu/G2i+6qXpIrE3hZjue1EEFXSISQEDRzQof4=; b=Kc3N08k+1Xc9Kzbt58HPLEFIBolee9HsoPL7rVf4ffHuv/xRCwb30pjF MF0XFgotEDFsSiq0S49rnT/WlewulcqmjJLYQALqIfMSVOOcWyzxQV+At e0Yp/ClUU6Z8S99YyJQTigteIlAKqW3hgYyKKl9n4QVnqYXM3XFqmxybV eR5/pSNCfLRSu8yvrYaaUx8Mn81Th0XtTkbwutLDp8BGAfeaUbSB0FjBV 93tPm+LBfA1oyMwdcWjUhqUah9qFfjgOPxdv1pFz86BFBTagnt6l4S3NF sU9O1iyg/hf7BPO8dBIoxZh/dWecVNsRsOAfen5gtBrtiWmICMZXC4L3J A==; X-CSE-ConnectionGUID: LhDtlwNkRf+3/VqQDC0GTA== X-CSE-MsgGUID: cc461PsgQ8qCY/hgoyoC9g== X-IronPort-AV: E=McAfee;i="6800,10657,11968"; a="3627643" X-IronPort-AV: E=Sophos;i="6.27,217,1787036400"; d="scan'208";a="3627643" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2026 12:51:02 -0800 X-CSE-ConnectionGUID: XQbmmi1NSs+nwwq2ukQKFg== X-CSE-MsgGUID: Z839PmLoT2aZ0zvCWNu+dQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,217,1787036400"; d="scan'208";a="9660347" X-Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 16 Nov 2026 12:50:56 -0800 X-Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from <lkp@intel.com>) id 1xT3fB-000000019PL-1eCy; Mon, 16 Nov 2026 20:50:53 +0000 X-Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kvm@vger.kernel.org, kernel@pengutronix.de, Steffen Trumtrar <s.trumtrar@pengutronix.de> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261112-v6-7-topic-virtio-net-ptp-v5-6-7ab67b572f4f@pengutronix.de>