[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202308112122.OuF0YZqL-lkp@intel.com>
Date: Fri, 11 Aug 2023 22:10:04 +0800
From: kernel test robot <lkp@...el.com>
To: Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Kees Cook <keescook@...omium.org>, netdev@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, Jacob Keller <jacob.e.keller@...el.com>,
intel-wired-lan@...ts.osuosl.org,
Alexander Lobakin <aleksander.lobakin@...el.com>,
linux-hardening@...r.kernel.org, Steven Zou <steven.zou@...el.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>
Subject: Re: [PATCH net-next v2 1/7] overflow: add DEFINE_FLEX() for on-stack
allocs
Hi Przemek,
kernel test robot noticed the following build errors:
[auto build test ERROR on 6a1ed1430daa2ccf8ac457e0db93fb0925b801ca]
url: https://github.com/intel-lab-lkp/linux/commits/Przemek-Kitszel/overflow-add-DEFINE_FLEX-for-on-stack-allocs/20230811-201509
base: 6a1ed1430daa2ccf8ac457e0db93fb0925b801ca
patch link: https://lore.kernel.org/r/20230811120814.169952-2-przemyslaw.kitszel%40intel.com
patch subject: [PATCH net-next v2 1/7] overflow: add DEFINE_FLEX() for on-stack allocs
config: m68k-randconfig-r024-20230811 (https://download.01.org/0day-ci/archive/20230811/202308112122.OuF0YZqL-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230811/202308112122.OuF0YZqL-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/202308112122.OuF0YZqL-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/compiler.h:5,
from include/linux/export.h:5,
from include/asm-generic/export.h:9,
from ./arch/m68k/include/generated/asm/export.h:1,
from arch/m68k/lib/mulsi3.S:35:
>> include/linux/compiler_types.h:331:5: warning: "__has_builtin" is not defined, evaluates to 0 [-Wundef]
331 | #if __has_builtin(__builtin_dynamic_object_size)
| ^~~~~~~~~~~~~
>> include/linux/compiler_types.h:331:18: error: missing binary operator before token "("
331 | #if __has_builtin(__builtin_dynamic_object_size)
| ^
vim +331 include/linux/compiler_types.h
326
327 /*
328 * When the size of an allocated object is needed, use the best available
329 * mechanism to find it. (For cases where sizeof() cannot be used.)
330 */
> 331 #if __has_builtin(__builtin_dynamic_object_size)
332 #define __struct_size(p) __builtin_dynamic_object_size(p, 0)
333 #define __member_size(p) __builtin_dynamic_object_size(p, 1)
334 #else
335 #define __struct_size(p) __builtin_object_size(p, 0)
336 #define __member_size(p) __builtin_object_size(p, 1)
337 #endif
338
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists