Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [rppt:gfp-to-kmalloc/scsi 5/5] drivers/scsi/sym53c8xx_2/sym_malloc.c:182:12: error: use of undeclared identifier 'M_MEM_PAGE_ORDER'
Date: Wed, 17 Jun 2026 09:32:26 +0800	[thread overview]
Message-ID: <202606170940.e6qkOkKv-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-to-kmalloc/scsi
head:   8434cdcf311874c86620e4dbacbe17f63b33eca4
commit: 8434cdcf311874c86620e4dbacbe17f63b33eca4 [5/5] scsi: sym53c8xx_2: replace __get_free_pages() with kmalloc()
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260617/202606170940.e6qkOkKv-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/202606170940.e6qkOkKv-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606170940.e6qkOkKv-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/scsi/sym53c8xx_2/sym_malloc.c:182:12: error: use of undeclared identifier 'M_MEM_PAGE_ORDER'
     182 |         void *m = sym_get_mem_cluster();
         |                   ^
   drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:23: note: expanded from macro 'sym_get_mem_cluster'
    1114 |         kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
         |                              ^
>> drivers/scsi/sym53c8xx_2/sym_malloc.c:182:12: error: use of undeclared identifier 'M_MEM_PAGE_ORDER'
   drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:23: note: expanded from macro 'sym_get_mem_cluster'
    1114 |         kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
         |                              ^
>> drivers/scsi/sym53c8xx_2/sym_malloc.c:182:12: error: use of undeclared identifier 'M_MEM_PAGE_ORDER'
   drivers/scsi/sym53c8xx_2/sym_hipd.h:1114:23: note: expanded from macro 'sym_get_mem_cluster'
    1114 |         kmalloc(PAGE_SIZE << M_MEM_PAGE_ORDER, GFP_ATOMIC)
         |                              ^
   3 errors generated.


vim +/M_MEM_PAGE_ORDER +182 drivers/scsi/sym53c8xx_2/sym_malloc.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  173  
^1da177e4c3f41 Linus Torvalds 2005-04-16  174  /*
^1da177e4c3f41 Linus Torvalds 2005-04-16  175   *  Default memory pool we donnot need to involve in DMA.
^1da177e4c3f41 Linus Torvalds 2005-04-16  176   *
^1da177e4c3f41 Linus Torvalds 2005-04-16  177   *  With DMA abstraction, we use functions (methods), to 
^1da177e4c3f41 Linus Torvalds 2005-04-16  178   *  distinguish between non DMAable memory and DMAable memory.
^1da177e4c3f41 Linus Torvalds 2005-04-16  179   */
^1da177e4c3f41 Linus Torvalds 2005-04-16  180  static void *___mp0_get_mem_cluster(m_pool_p mp)
^1da177e4c3f41 Linus Torvalds 2005-04-16  181  {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @182  	void *m = sym_get_mem_cluster();
^1da177e4c3f41 Linus Torvalds 2005-04-16  183  	if (m)
^1da177e4c3f41 Linus Torvalds 2005-04-16  184  		++mp->nump;
^1da177e4c3f41 Linus Torvalds 2005-04-16  185  	return m;
^1da177e4c3f41 Linus Torvalds 2005-04-16  186  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  187  

:::::: The code at line 182 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

                 reply	other threads:[~2026-06-17  1:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202606170940.e6qkOkKv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rppt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox