Hi Song,

kernel test robot noticed the following build errors:

[auto build test ERROR on fe6ff8d5d675c01793b9f051d16055dd4aa75244]

url:    
https://github.com/intel-lab-lkp/linux/commits/Song-Liu/x86-paravirt-Mark-native-pv_ops-helpers-notrace/20261130-202140
base:   fe6ff8d5d675c01793b9f051d16055dd4aa75244
patch link:    
https://lore.kernel.org/r/20261201042201.3199928-23-song%40kernel.org
patch subject: [PATCH v3 22/22] compiler_types: Move notrace from inline to 
__always_inline
config: powerpc-randconfig-1000-20261201 
(https://download.01.org/0day-ci/archive/20261202/[email protected]/config)
compiler: powerpc-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20261202/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

   In file included from arch/powerpc/boot/../../../lib/decompress_unxz.c:242,
                    from arch/powerpc/boot/decompress.c:37:
>> arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:511:24: error: expected ';' 
>> before 'void'
     511 | static __always_inline void rc_normalize(struct rc_dec *rc)
         |                        ^~~~
>> arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:530:24: error: expected ';' 
>> before 'int'
     530 | static __always_inline int rc_bit(struct rc_dec *rc, uint16_t *prob)
         |                        ^~~
   In file included from <command-line>:
>> include/linux/compiler_attributes.h:59:83: error: unknown type name 'notrace'
      59 | #define __always_inline                 inline 
__attribute__((__always_inline__)) notrace
         |                                                                      
             ^~~~~~~
   arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:552:8: note: in expansion 
of macro '__always_inline'
     552 | static __always_inline uint32_t rc_bittree(struct rc_dec *rc,
         |        ^~~~~~~~~~~~~~~
>> arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:552:33: error: expected 
>> '=', ',', ';', 'asm' or '__attribute__' before 'rc_bittree'
     552 | static __always_inline uint32_t rc_bittree(struct rc_dec *rc,
         |                                 ^~~~~~~~~~
   arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:568:24: error: expected ';' 
before 'void'
     568 | static __always_inline void rc_bittree_reverse(struct rc_dec *rc,
         |                        ^~~~
   arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c: In function 'lzma_literal':
>> arch/powerpc/boot/../../../lib/xz/xz_dec_lzma2.c:626:26: warning: implicit 
>> declaration of function 'rc_bittree'; did you mean 'rc_bit'? 
>> [-Wimplicit-function-declaration]
     626 |                 symbol = rc_bittree(&s->rc, probs, 0x100);
         |                          ^~~~~~~~~~
         |                          rc_bit


vim +/notrace +59 include/linux/compiler_attributes.h

    45  
    46  /*
    47   * Note: users of __always_inline currently do not write "inline" 
themselves,
    48   * which seems to be required by gcc to apply the attribute according
    49   * to its docs (and also "warning: always_inline function might not be
    50   * inlinable [-Wattributes]" is emitted).
    51   *
    52   * The compiler still emits an out-of-line copy of an __always_inline 
function
    53   * when its address is taken or when it has external linkage. These 
functions
    54   * are often used by code that must not be traced, so mark them notrace.
    55   *
    56   *   gcc: 
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-always_005finline-function-attribute
    57   * clang: mentioned
    58   */
  > 59  #define __always_inline                 inline 
__attribute__((__always_inline__)) notrace
    60  

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

Reply via email to