lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202401281754.1789C9HU-lkp@intel.com>
Date: Sun, 28 Jan 2024 17:15:40 +0800
From: kernel test robot <lkp@...el.com>
To: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	x86@...nel.org, Thomas Gleixner <tglx@...utronix.de>
Subject: [tip:irq/core 9/9] include/linux/compiler_attributes.h:76:41: error:
 expected expression before '__attribute__'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
head:   590610d72a790458431cbbebc71ee24521533b5e
commit: 590610d72a790458431cbbebc71ee24521533b5e [9/9] genirq/irq_sim: Shrink code by using cleanup helpers
config: x86_64-rhel-8.3-bpf (https://download.01.org/0day-ci/archive/20240128/202401281754.1789C9HU-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/20240128/202401281754.1789C9HU-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/202401281754.1789C9HU-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/compiler_types.h:89,
                    from <command-line>:
   kernel/irq/irq_sim.c: In function 'irq_domain_create_sim':
>> include/linux/compiler_attributes.h:76:41: error: expected expression before '__attribute__'
      76 | #define __cleanup(func)                 __attribute__((__cleanup__(func)))
         |                                         ^~~~~~~~~~~~~
   include/linux/cleanup.h:64:25: note: in expansion of macro '__cleanup'
      64 | #define __free(_name)   __cleanup(__free_##_name)
         |                         ^~~~~~~~~
   kernel/irq/irq_sim.c:173:19: note: in expansion of macro '__free'
     173 |         pending = __free(bitmap) = bitmap_zalloc(num_irqs, GFP_KERNEL);
         |                   ^~~~~~


vim +/__attribute__ +76 include/linux/compiler_attributes.h

a3f8a30f3f0079 Miguel Ojeda   2018-08-30  71  
54da6a0924311c Peter Zijlstra 2023-05-26  72  /*
54da6a0924311c Peter Zijlstra 2023-05-26  73   *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-cleanup-variable-attribute
54da6a0924311c Peter Zijlstra 2023-05-26  74   * clang: https://clang.llvm.org/docs/AttributeReference.html#cleanup
54da6a0924311c Peter Zijlstra 2023-05-26  75   */
54da6a0924311c Peter Zijlstra 2023-05-26 @76  #define __cleanup(func)			__attribute__((__cleanup__(func)))
54da6a0924311c Peter Zijlstra 2023-05-26  77  

:::::: The code at line 76 was first introduced by commit
:::::: 54da6a0924311c7cf5015533991e44fb8eb12773 locking: Introduce __cleanup() based infrastructure

:::::: TO: Peter Zijlstra <peterz@...radead.org>
:::::: CC: Peter Zijlstra <peterz@...radead.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ