linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip:irq/core 9/9] include/linux/compiler_attributes.h:76:41: error: expected expression before '__attribute__'
@ 2024-01-28  9:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-28  9:15 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: oe-kbuild-all, linux-kernel, x86, Thomas Gleixner

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@intel.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@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-28  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28  9:15 [tip:irq/core 9/9] include/linux/compiler_attributes.h:76:41: error: expected expression before '__attribute__' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).