[linux-next:master 2758/7405] arch/parisc/include/asm/jump_label.h:23:1: error: label 'l_yes' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d3134eb5de8546a214c028fb7195e764b89da7d4
commit: adad556efcdd42a1d9e060cbe5f6161cccf1fa28 [2758/7405] crypto: api - Fix built-in testing dependency failures
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=adad556efcdd42a1d9e060cbe5f6161cccf1fa28
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout adad556efcdd42a1d9e060cbe5f6161cccf1fa28
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
   arch/parisc/include/asm/jump_label.h: In function 'arch_static_branch':
   arch/parisc/include/asm/jump_label.h:18:18: error: expected ':' before '__stringify'
      18 |                  __stringify(ASM_ULONG_INSN) " %c0 - .\n\t"
         |                  ^~~~~~~~~~~
   include/linux/compiler-gcc.h:88:47: note: in definition of macro 'asm_volatile_goto'
      88 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
         |                                               ^
   In file included from include/linux/jump_label.h:117,
                    from crypto/api.c:15:
>> arch/parisc/include/asm/jump_label.h:23:1: error: label 'l_yes' defined but not used [-Werror=unused-label]
      23 | l_yes:
         | ^~~~~
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
   arch/parisc/include/asm/jump_label.h: In function 'arch_static_branch_jump':
   arch/parisc/include/asm/jump_label.h:33:18: error: expected ':' before '__stringify'
      33 |                  __stringify(ASM_ULONG_INSN) " %c0 - .\n\t"
         |                  ^~~~~~~~~~~
   include/linux/compiler-gcc.h:88:47: note: in definition of macro 'asm_volatile_goto'
      88 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
         |                                               ^
   In file included from include/linux/jump_label.h:117,
                    from crypto/api.c:15:
   arch/parisc/include/asm/jump_label.h:38:1: error: label 'l_yes' defined but not used [-Werror=unused-label]
      38 | l_yes:
         | ^~~~~
   cc1: all warnings being treated as errors


vim +/l_yes +23 arch/parisc/include/asm/jump_label.h

62217beb394e65 Helge Deller 2019-05-03  11  
62217beb394e65 Helge Deller 2019-05-03  12  static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
62217beb394e65 Helge Deller 2019-05-03  13  {
62217beb394e65 Helge Deller 2019-05-03  14  	asm_volatile_goto("1:\n\t"
62217beb394e65 Helge Deller 2019-05-03  15  		 "nop\n\t"
62217beb394e65 Helge Deller 2019-05-03  16  		 ".pushsection __jump_table,  \"aw\"\n\t"
62217beb394e65 Helge Deller 2019-05-03  17  		 ".word 1b - ., %l[l_yes] - .\n\t"
62217beb394e65 Helge Deller 2019-05-03  18  		 __stringify(ASM_ULONG_INSN) " %c0 - .\n\t"
62217beb394e65 Helge Deller 2019-05-03  19  		 ".popsection\n\t"
62217beb394e65 Helge Deller 2019-05-03  20  		 : :  "i" (&((char *)key)[branch]) :  : l_yes);
62217beb394e65 Helge Deller 2019-05-03  21  
62217beb394e65 Helge Deller 2019-05-03  22  	return false;
62217beb394e65 Helge Deller 2019-05-03 @23  l_yes:
62217beb394e65 Helge Deller 2019-05-03  24  	return true;
62217beb394e65 Helge Deller 2019-05-03  25  }
62217beb394e65 Helge Deller 2019-05-03  26  

:::::: The code at line 23 was first introduced by commit
:::::: 62217beb394e654bbd2bb87c533dadd2d8bf62c6 parisc: Add static branch and JUMP_LABEL feature

:::::: TO: Helge Deller <deller@xxxxxx>
:::::: CC: Helge Deller <deller@xxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux