linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [jirislaby:devel 6680/7219] lib/stackdepot.c:154:2: warning: ignoring return value of 'kstrtobool', declared with attribute warn_unused_result
@ 2021-01-29 14:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-29 14:41 UTC (permalink / raw)
  To: Vijayanand Jitta
  Cc: kbuild-all, Vinayak Menon, Andrew Morton, Linux Memory Management List

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   13ed719c8f2410b973d1579af04a9469c52cc193
commit: b9779abb09a8fea27845516ac093cabd012a697c [6680/7219] lib: stackdepot: add support to disable stack depot
config: arc-randconfig-r026-20210129 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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/jirislaby/linux.git/commit/?id=b9779abb09a8fea27845516ac093cabd012a697c
        git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
        git fetch --no-tags jirislaby devel
        git checkout b9779abb09a8fea27845516ac093cabd012a697c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

   lib/stackdepot.c: In function 'is_stack_depot_disabled':
>> lib/stackdepot.c:154:2: warning: ignoring return value of 'kstrtobool', declared with attribute warn_unused_result [-Wunused-result]
     154 |  kstrtobool(str, &stack_depot_disable);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/kstrtobool +154 lib/stackdepot.c

   151	
   152	static int __init is_stack_depot_disabled(char *str)
   153	{
 > 154		kstrtobool(str, &stack_depot_disable);
   155		if (stack_depot_disable) {
   156			pr_info("Stack Depot is disabled\n");
   157			stack_table = NULL;
   158		}
   159		return 0;
   160	}
   161	early_param("stack_depot_disable", is_stack_depot_disabled);
   162	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27821 bytes --]

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

only message in thread, other threads:[~2021-01-29 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 14:41 [jirislaby:devel 6680/7219] lib/stackdepot.c:154:2: warning: ignoring return value of 'kstrtobool', declared with attribute warn_unused_result 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).