oe-kbuild.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
@ 2022-11-24 14:00 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-11-24 14:00 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
CC: Ard Biesheuvel <ardb@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c3eb11fbb826879be773c137f281569efce67aa8
commit: c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 ARM: unwind: set frame.pc correctly for current-thread unwinding
date:   9 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 9 months ago
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34
        cppcheck --quiet --enable=style,performance,portability --template=gcc FILE

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
   here:
   ^

vim +/here +44 arch/arm/kernel/return_address.c

4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  32  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  33  void *return_address(unsigned int level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  34  {
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  35  	struct return_address_data data;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  36  	struct stackframe frame;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  37  
01223f365074d6 Keun-O Park           2013-03-18  38  	data.level = level + 2;
01223f365074d6 Keun-O Park           2013-03-18  39  	data.addr = NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  40  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  41  	frame.fp = (unsigned long)__builtin_frame_address(0);
a556ee1247b997 Behan Webster         2014-09-27  42  	frame.sp = current_stack_pointer;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  43  	frame.lr = (unsigned long)__builtin_return_address(0);
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09 @44) here:
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09  45) 	frame.pc = (unsigned long)&&here;
fed240d9c97438 Masami Hiramatsu      2021-10-21  46  #ifdef CONFIG_KRETPROBES
fed240d9c97438 Masami Hiramatsu      2021-10-21  47  	frame.kr_cur = NULL;
fed240d9c97438 Masami Hiramatsu      2021-10-21  48  	frame.tsk = current;
fed240d9c97438 Masami Hiramatsu      2021-10-21  49  #endif
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  50  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  51  	walk_stackframe(&frame, save_return_addr, &data);
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  52  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  53  	if (!data.level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  54  		return data.addr;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  55  	else
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  56  		return NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  57  }
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  58  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
@ 2022-12-25  5:44 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-12-25  5:44 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
CC: Ard Biesheuvel <ardb@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   72a85e2b0a1e1e6fb4ee51ae902730212b2de25c
commit: c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 ARM: unwind: set frame.pc correctly for current-thread unwinding
date:   10 months ago
:::::: branch date: 31 hours ago
:::::: commit date: 10 months ago
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34
        cppcheck --quiet --enable=style,performance,portability --template=gcc FILE

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
   here:
   ^

vim +/here +44 arch/arm/kernel/return_address.c

4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  32  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  33  void *return_address(unsigned int level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  34  {
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  35  	struct return_address_data data;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  36  	struct stackframe frame;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  37  
01223f365074d6 Keun-O Park           2013-03-18  38  	data.level = level + 2;
01223f365074d6 Keun-O Park           2013-03-18  39  	data.addr = NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  40  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  41  	frame.fp = (unsigned long)__builtin_frame_address(0);
a556ee1247b997 Behan Webster         2014-09-27  42  	frame.sp = current_stack_pointer;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  43  	frame.lr = (unsigned long)__builtin_return_address(0);
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09 @44) here:
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09  45) 	frame.pc = (unsigned long)&&here;
fed240d9c97438 Masami Hiramatsu      2021-10-21  46  #ifdef CONFIG_KRETPROBES
fed240d9c97438 Masami Hiramatsu      2021-10-21  47  	frame.kr_cur = NULL;
fed240d9c97438 Masami Hiramatsu      2021-10-21  48  	frame.tsk = current;
fed240d9c97438 Masami Hiramatsu      2021-10-21  49  #endif
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  50  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  51  	walk_stackframe(&frame, save_return_addr, &data);
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  52  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  53  	if (!data.level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  54  		return data.addr;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  55  	else
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  56  		return NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  57  }
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  58  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
@ 2022-04-02  6:40 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-04-02  6:40 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 4938 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
CC: Ard Biesheuvel <ardb@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   88e6c0207623874922712e162e25d9dafd39661e
commit: c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 ARM: unwind: set frame.pc correctly for current-thread unwinding
date:   3 weeks ago
:::::: branch date: 4 hours ago
:::::: commit date: 3 weeks ago
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0

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


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
   here:
   ^
--
>> arch/arm/mm/ioremap.c:72:46: warning: Parameter 'vaddr' can be declared with const [constParameter]
   struct static_vm *find_static_vm_vaddr(void *vaddr)
                                                ^
>> arch/arm/mm/ioremap.c:85:11: warning: Uninitialized variables: svm.vm, svm.list [uninitvar]
      return svm;
             ^
   arch/arm/mm/ioremap.c:81:16: note: Assuming condition is false
     if (vm->addr > vaddr)
                  ^
   arch/arm/mm/ioremap.c:81:16: note: Assuming condition is false
     if (vm->addr > vaddr)
                  ^
   arch/arm/mm/ioremap.c:85:11: note: Uninitialized variables: svm.vm, svm.list
      return svm;
             ^
--
>> arch/arm/kernel/stacktrace.c:163:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration]
   here:
   ^
>> arch/arm/kernel/stacktrace.c:133:61: warning: Parameter 'tsk' can be declared with const [constParameter]
   static noinline void __save_stack_trace(struct task_struct *tsk,
                                                               ^
--
>> arch/arm/kernel/setup.c:744:2: warning: There is an unknown macro here somewhere. Configuration is required. If for_each_machine_desc is a macro then please configure it. [unknownMacro]
    for_each_machine_desc(p)
    ^
>> arch/arm/kernel/traps.c:497:1: warning: There is an unknown macro here somewhere. Configuration is required. If NOKPROBE_SYMBOL is a macro then please configure it. [unknownMacro]
   NOKPROBE_SYMBOL(do_undefinstr)
   ^
>> arch/arm/mm/dma-mapping.c:999:2: warning: There is an unknown macro here somewhere. Configuration is required. If for_each_sg is a macro then please configure it. [unknownMacro]
    for_each_sg(sg, s, i, j)
    ^

vim +/here +44 arch/arm/kernel/return_address.c

4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  32  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  33  void *return_address(unsigned int level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  34  {
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  35  	struct return_address_data data;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  36  	struct stackframe frame;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  37  
01223f365074d6 Keun-O Park           2013-03-18  38  	data.level = level + 2;
01223f365074d6 Keun-O Park           2013-03-18  39  	data.addr = NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  40  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  41  	frame.fp = (unsigned long)__builtin_frame_address(0);
a556ee1247b997 Behan Webster         2014-09-27  42  	frame.sp = current_stack_pointer;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  43  	frame.lr = (unsigned long)__builtin_return_address(0);
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09 @44) here:
c46c2c9b43f4f0 Russell King (Oracle  2022-03-09  45) 	frame.pc = (unsigned long)&&here;
fed240d9c97438 Masami Hiramatsu      2021-10-21  46  #ifdef CONFIG_KRETPROBES
fed240d9c97438 Masami Hiramatsu      2021-10-21  47  	frame.kr_cur = NULL;
fed240d9c97438 Masami Hiramatsu      2021-10-21  48  	frame.tsk = current;
fed240d9c97438 Masami Hiramatsu      2021-10-21  49  #endif
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  50  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  51  	walk_stackframe(&frame, save_return_addr, &data);
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  52  
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  53  	if (!data.level)
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  54  		return data.addr;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  55  	else
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  56  		return NULL;
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  57  }
4bf1fa5a34aa2d Uwe Kleine-König      2009-07-21  58  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-25  5:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24 14:00 arch/arm/kernel/return_address.c:44:1: warning: Label 'here' is not used. There is #if in function body so the label might be used in code that is removed by the preprocessor. [unusedLabelConfiguration] kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-12-25  5:44 kernel test robot
2022-04-02  6:40 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).