oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [jimc:maph 1/1] lib/test_map_h.c:37:14: warning: unused variable 'caten'
@ 2023-03-24 20:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-24 20:50 UTC (permalink / raw)
  To: Jim Cromie; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git maph
head:   a43c9ca75a0027cb9ece5c55b2287bb682e55416
commit: a43c9ca75a0027cb9ece5c55b2287bb682e55416 [1/1] include/linux/map.h: add new header, test it with test_map_h.c (RFC)
config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20230325/202303250408.OXzqRrBg-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/jimc/linux/commit/a43c9ca75a0027cb9ece5c55b2287bb682e55416
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc maph
        git checkout a43c9ca75a0027cb9ece5c55b2287bb682e55416
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash lib/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303250408.OXzqRrBg-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> lib/test_map_h.c:37:14: warning: unused variable 'caten' [-Wunused-variable]
   static char* caten = MAPfn(__stringify, YES, NO, MAYBE);
                ^
   1 warning generated.


vim +/caten +37 lib/test_map_h.c

    21	
    22	#if defined(__i386__)
    23	/* avoid a "__compiletime_assert_" error */
    24	#define BUILD_BUG_STREQ(_var, ref)	 BUILD_BUG_ON(0)
    25	#else
    26	/* test w 2 exprs, for now */
    27	#define BUILD_BUG_STREQ(_var, ref) do {					\
    28		BUILD_BUG_ON(__builtin_memcmp(_var, ref, sizeof(ref)));		\
    29		BUILD_BUG_ON(__builtin_memcmp(_var, ref, __builtin_strlen(ref))); \
    30	} while (0)
    31	#endif
    32	#define BUILD_BUG_STREQ_I(_var, idx, ref) \
    33		BUILD_BUG_STREQ(_var##_slist[idx], ref)
    34	
    35	/* test MAPfn */
    36	static int sum = MAPfn( +, 1, 2, 3);
  > 37	static char* caten = MAPfn(__stringify, YES, NO, MAYBE);
    38	

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

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

only message in thread, other threads:[~2023-03-24 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24 20:50 [jimc:maph 1/1] lib/test_map_h.c:37:14: warning: unused variable 'caten' 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).