[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202411040919.Jqv24HmW-lkp@intel.com>
Date: Mon, 4 Nov 2024 09:22:04 +0800
From: kernel test robot <lkp@...el.com>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20241028-sa-with-flex 25/26]
include/linux/compiler.h:189:45: error: '__UNIQUE_ID_y_1140' undeclared; did
you mean '__UNIQUE_ID_x_1139'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20241028-sa-with-flex
head: 0e7c24c783de39e1f965e8c23e96a7de29dfbfca
commit: c8ed0e38de664a505d69f49e390abad734e8fd8a [25/26] Revert "net: dev: Convert sa_data to flexible array in struct sockaddr"
config: x86_64-rhel-8.3-func (https://download.01.org/0day-ci/archive/20241104/202411040919.Jqv24HmW-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241104/202411040919.Jqv24HmW-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411040919.Jqv24HmW-lkp@intel.com/
Note: the gustavoars/testing/wfamnae-next20241028-sa-with-flex HEAD 0e7c24c783de39e1f965e8c23e96a7de29dfbfca builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from include/linux/string.h:390,
from include/linux/bitmap.h:13,
from include/linux/cpumask.h:12,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/tsc.h:10,
from arch/x86/include/asm/timex.h:6,
from include/linux/timex.h:67,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from net/ipv4/arp.c:74:
net/ipv4/arp.c: In function 'arp_req_get':
net/ipv4/arp.c:1188:52: error: 'struct sockaddr' has no member named 'sa_data_min'; did you mean 'sa_data'?
1188 | min(dev->addr_len, sizeof(r->arp_ha.sa_data_min)));
| ^~~~~~~~~~~
include/linux/fortify-string.h:621:48: note: in definition of macro '__fortify_memcpy_chk'
621 | const size_t __fortify_size = (size_t)(size); \
| ^~~~
net/ipv4/arp.c:1187:9: note: in expansion of macro 'memcpy'
1187 | memcpy(r->arp_ha.sa_data, neigh->ha,
| ^~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
net/ipv4/arp.c:1188:16: note: in expansion of macro 'min'
1188 | min(dev->addr_len, sizeof(r->arp_ha.sa_data_min)));
| ^~~
>> include/linux/compiler.h:189:45: error: '__UNIQUE_ID_y_1140' undeclared (first use in this function); did you mean '__UNIQUE_ID_x_1139'?
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~~~~~~
include/linux/fortify-string.h:621:48: note: in definition of macro '__fortify_memcpy_chk'
621 | const size_t __fortify_size = (size_t)(size); \
| ^~~~
net/ipv4/arp.c:1187:9: note: in expansion of macro 'memcpy'
1187 | memcpy(r->arp_ha.sa_data, neigh->ha,
| ^~~~~~
include/linux/compiler_types.h:505:9: note: in expansion of macro '__compiletime_assert'
505 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:517:9: note: in expansion of macro '_compiletime_assert'
517 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:56:27: note: in expansion of macro 'is_signed_type'
56 | #define __sign_use(x,ux) (is_signed_type(typeof(ux))? \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:29: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:37: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/minmax.h:105:55: note: in expansion of macro '__UNIQUE_ID'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~
include/linux/minmax.h:129:25: note: in expansion of macro '__careful_cmp'
129 | #define min(x, y) __careful_cmp(min, x, y)
| ^~~~~~~~~~~~~
net/ipv4/arp.c:1188:16: note: in expansion of macro 'min'
1188 | min(dev->addr_len, sizeof(r->arp_ha.sa_data_min)));
| ^~~
include/linux/compiler.h:189:45: note: each undeclared identifier is reported only once for each function it appears in
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~~~~~~
include/linux/fortify-string.h:621:48: note: in definition of macro '__fortify_memcpy_chk'
621 | const size_t __fortify_size = (size_t)(size); \
| ^~~~
net/ipv4/arp.c:1187:9: note: in expansion of macro 'memcpy'
1187 | memcpy(r->arp_ha.sa_data, neigh->ha,
| ^~~~~~
include/linux/compiler_types.h:505:9: note: in expansion of macro '__compiletime_assert'
505 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:517:9: note: in expansion of macro '_compiletime_assert'
517 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/minmax.h:100:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~~~~~~~
include/linux/minmax.h:56:27: note: in expansion of macro 'is_signed_type'
56 | #define __sign_use(x,ux) (is_signed_type(typeof(ux))? \
| ^~~~~~~~~~~~~~
include/linux/minmax.h:82:29: note: in expansion of macro '__sign_use'
82 | (__sign_use(x,ux) & __sign_use(y,uy))
| ^~~~~~~~~~
include/linux/minmax.h:100:27: note: in expansion of macro '__types_ok'
100 | BUILD_BUG_ON_MSG(!__types_ok(x,y,ux,uy), \
| ^~~~~~~~~~
include/linux/minmax.h:105:9: note: in expansion of macro '__careful_cmp_once'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:29: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/compiler_types.h:84:22: note: in expansion of macro '___PASTE'
84 | #define __PASTE(a,b) ___PASTE(a,b)
| ^~~~~~~~
include/linux/compiler.h:189:37: note: in expansion of macro '__PASTE'
189 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
| ^~~~~~~
include/linux/minmax.h:105:55: note: in expansion of macro '__UNIQUE_ID'
105 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
vim +189 include/linux/compiler.h
fe8c8a126806fe Cesar Eduardo Barros 2013-11-25 188
a8306f2d4dcea0 Nick Desaulniers 2023-08-31 @189 #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
6f33d58794ef4c Rusty Russell 2012-11-22 190
:::::: The code at line 189 was first introduced by commit
:::::: a8306f2d4dcea03538c70c26d2948483f70254ff compiler.h: unify __UNIQUE_ID
:::::: TO: Nick Desaulniers <ndesaulniers@...gle.com>
:::::: CC: Andrew Morton <akpm@...ux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists