All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (IBM)" <rppt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Mike Rapoport <rppt@kernel.org>
Subject: [rppt:jitalloc/v2.4 10/13] arch/mips/mm/init.c:578:32: error: 'MODULES_END' undeclared here (not in a function); did you mean 'MODULE_END'?
Date: Sun, 10 Sep 2023 04:40:19 +0800	[thread overview]
Message-ID: <202309100402.7cTZX41o-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git jitalloc/v2.4
head:   508766bb924d535d2b80ffe50eb60eae25c0c02e
commit: 5aa685724b6621283dedc62ec2e5d1a1b985f567 [10/13] arch: make execmem setup available regardless of CONFIG_MODULES
config: mips-bigsur_defconfig (https://download.01.org/0day-ci/archive/20230910/202309100402.7cTZX41o-lkp@intel.com/config)
compiler: mips64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230910/202309100402.7cTZX41o-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/202309100402.7cTZX41o-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/mips/mm/init.c:61:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes]
      61 | void setup_zero_pages(void)
         |      ^~~~~~~~~~~~~~~~
>> arch/mips/mm/init.c:578:32: error: 'MODULES_END' undeclared here (not in a function); did you mean 'MODULE_END'?
     578 |                         .end = MODULES_END,
         |                                ^~~~~~~~~~~
         |                                MODULE_END
   In file included from arch/mips/include/asm/io.h:29,
                    from include/linux/io.h:13,
                    from arch/mips/include/asm/mips-cps.h:11,
                    from arch/mips/include/asm/smp-ops.h:16,
                    from arch/mips/include/asm/smp.h:21,
                    from include/linux/smp.h:113,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/mips/mm/init.c:15:
   arch/mips/include/asm/page.h:156:39: error: initializer element is not constant
     156 | #define __pgprot(x)     ((pgprot_t) { (x) } )
         |                                       ^
   arch/mips/include/asm/pgtable.h:30:25: note: in expansion of macro '__pgprot'
      30 | #define PAGE_KERNEL     __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
         |                         ^~~~~~~~
   arch/mips/mm/init.c:579:35: note: in expansion of macro 'PAGE_KERNEL'
     579 |                         .pgprot = PAGE_KERNEL,
         |                                   ^~~~~~~~~~~
   arch/mips/include/asm/page.h:156:39: note: (near initialization for '(anonymous).pgprot')
     156 | #define __pgprot(x)     ((pgprot_t) { (x) } )
         |                                       ^
   arch/mips/include/asm/pgtable.h:30:25: note: in expansion of macro '__pgprot'
      30 | #define PAGE_KERNEL     __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
         |                         ^~~~~~~~
   arch/mips/mm/init.c:579:35: note: in expansion of macro 'PAGE_KERNEL'
     579 |                         .pgprot = PAGE_KERNEL,
         |                                   ^~~~~~~~~~~


vim +578 arch/mips/mm/init.c

   572	
   573	#if defined(CONFIG_EXECMEM) && defined(MODULE_START)
   574	static struct execmem_params execmem_params __ro_after_init = {
   575		.ranges = {
   576			[EXECMEM_DEFAULT] = {
   577				.start = MODULE_START,
 > 578				.end = MODULES_END,
   579				.pgprot = PAGE_KERNEL,
   580				.alignment = 1,
   581			},
   582		},
   583	};
   584	

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

                 reply	other threads:[~2023-09-09 20:40 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=202309100402.7cTZX41o-lkp@intel.com \
    --to=lkp@intel.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.