linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2914/3213] lib/test_printf.c:595:17: error: 'sec' undeclared; did you mean
@ 2021-03-10 23:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-10 23:38 UTC (permalink / raw)
  To: Yafang Shao; +Cc: kbuild-all, Linux Memory Management List, Petr Mladek

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b01d57bfdc41c8f635b08b8a5af8a31217d46936
commit: 2ce0893b9b8168d4b0e2e00cf3208dae4b964aab [2914/3213] vsprintf: dump full information of page flags in pGp
config: i386-randconfig-r001-20210309 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2ce0893b9b8168d4b0e2e00cf3208dae4b964aab
        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 2ce0893b9b8168d4b0e2e00cf3208dae4b964aab
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   lib/test_printf.c: In function 'page_flags_test':
>> lib/test_printf.c:595:17: error: 'sec' undeclared (first use in this function); did you mean 'sem'?
     595 |  page_flags |= (sec & SECTIONS_MASK) << SECTIONS_PGSHIFT;
         |                 ^~~
         |                 sem
   lib/test_printf.c:595:17: note: each undeclared identifier is reported only once for each function it appears in


vim +595 lib/test_printf.c

   579	
   580	static void __init
   581	page_flags_test(int section, int node, int zone, int last_cpupid,
   582			int kasan_tag, int flags, const char *name, char *cmp_buf)
   583	{
   584		unsigned long page_flags = 0;
   585		unsigned long size = 0;
   586	
   587		flags &= BIT(NR_PAGEFLAGS) - 1;
   588		if (flags) {
   589			page_flags |= flags;
   590			snprintf(cmp_buf + size, BUF_SIZE - size, "%s|", name);
   591			size = strlen(cmp_buf);
   592		}
   593	
   594	#ifdef SECTION_IN_PAGE_FLAGS
 > 595		page_flags |= (sec & SECTIONS_MASK) << SECTIONS_PGSHIFT;
   596		snprintf(cmp_buf + size, BUF_SIZE - size, "section=%#x|", sec);
   597		size = strlen(cmp_buf);
   598	#endif
   599	
   600		page_flags |= ((node & NODES_MASK) << NODES_PGSHIFT) |
   601				((zone & ZONES_MASK) << ZONES_PGSHIFT);
   602		snprintf(cmp_buf + size, BUF_SIZE - size, "node=%d|zone=%d", node, zone);
   603		size = strlen(cmp_buf);
   604	

---
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: 36501 bytes --]

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

only message in thread, other threads:[~2021-03-10 23:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 23:38 [linux-next:master 2914/3213] lib/test_printf.c:595:17: error: 'sec' undeclared; did you mean 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