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.2 7/12] arch/arm64/include/asm/pgtable.h:25:33: warning: excess elements in scalar initializer
Date: Wed, 21 Jun 2023 20:29:05 +0800	[thread overview]
Message-ID: <202306212018.Qf3499bd-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git jitalloc/v2.2
head:   4d3b7e33eca22e1fe243f586c13c875d248d29f6
commit: f45f0df4710043b02303450a8a06282972bdc8b1 [7/12] arm64, execmem: extend execmem_params for generated code definitions
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230621/202306212018.Qf3499bd-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230621/202306212018.Qf3499bd-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/202306212018.Qf3499bd-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/kernel/module.c:34:18: error: 'struct execmem_range' has no member named 'text'
      34 |                 .text = {
         |                  ^~~~
   arch/arm64/kernel/module.c:34:17: warning: braces around scalar initializer
      34 |                 .text = {
         |                 ^
   arch/arm64/kernel/module.c:34:17: note: (near initialization for 'execmem_params.jit.start')
   arch/arm64/kernel/module.c:35:25: error: field name not in record or union initializer
      35 |                         .start = VMALLOC_START,
         |                         ^
   arch/arm64/kernel/module.c:35:25: note: (near initialization for 'execmem_params.jit.start')
   arch/arm64/kernel/module.c:36:25: error: field name not in record or union initializer
      36 |                         .end = VMALLOC_END,
         |                         ^
   arch/arm64/kernel/module.c:36:25: note: (near initialization for 'execmem_params.jit.start')
   In file included from include/linux/pgtable.h:6,
                    from arch/arm64/include/asm/io.h:12,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from arch/arm64/include/asm/hardirq.h:17,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from include/linux/trace_recursion.h:5,
                    from include/linux/ftrace.h:10,
                    from arch/arm64/kernel/module.c:12:
>> arch/arm64/include/asm/pgtable.h:25:33: warning: excess elements in scalar initializer
      25 | #define VMALLOC_END             (VMEMMAP_START - SZ_256M)
         |                                 ^
   arch/arm64/kernel/module.c:36:32: note: in expansion of macro 'VMALLOC_END'
      36 |                         .end = VMALLOC_END,
         |                                ^~~~~~~~~~~
   arch/arm64/include/asm/pgtable.h:25:33: note: (near initialization for 'execmem_params.jit.start')
      25 | #define VMALLOC_END             (VMEMMAP_START - SZ_256M)
         |                                 ^
   arch/arm64/kernel/module.c:36:32: note: in expansion of macro 'VMALLOC_END'
      36 |                         .end = VMALLOC_END,
         |                                ^~~~~~~~~~~
   arch/arm64/kernel/module.c:37:25: error: field name not in record or union initializer
      37 |                         .alignment = 1,
         |                         ^
   arch/arm64/kernel/module.c:37:25: note: (near initialization for 'execmem_params.jit.start')
   arch/arm64/kernel/module.c:37:38: warning: excess elements in scalar initializer
      37 |                         .alignment = 1,
         |                                      ^
   arch/arm64/kernel/module.c:37:38: note: (near initialization for 'execmem_params.jit.start')
   arch/arm64/kernel/module.c: In function 'execmem_arch_params':
   arch/arm64/kernel/module.c:54:27: error: 'struct execmem_range' has no member named 'text'
      54 |         execmem_params.jit.text.pgprot = PAGE_KERNEL_ROX;
         |                           ^


vim +25 arch/arm64/include/asm/pgtable.h

4f04d8f0054511 Catalin Marinas 2012-03-05  16  
4f04d8f0054511 Catalin Marinas 2012-03-05  17  /*
3e1907d5bf5a1e Ard Biesheuvel  2016-03-30  18   * VMALLOC range.
08375198b01001 Catalin Marinas 2014-07-16  19   *
f9040773b7bbbd Ard Biesheuvel  2016-02-16  20   * VMALLOC_START: beginning of the kernel vmalloc space
a5315819c5e7e5 Mark Brown      2019-10-24  21   * VMALLOC_END: extends to the available space below vmemmap, PCI I/O space
3e1907d5bf5a1e Ard Biesheuvel  2016-03-30  22   *	and fixed mappings
4f04d8f0054511 Catalin Marinas 2012-03-05  23   */
f9040773b7bbbd Ard Biesheuvel  2016-02-16  24  #define VMALLOC_START		(MODULES_END)
9ad7c6d5e75b16 Ard Biesheuvel  2020-10-08 @25  #define VMALLOC_END		(VMEMMAP_START - SZ_256M)
4f04d8f0054511 Catalin Marinas 2012-03-05  26  

:::::: The code at line 25 was first introduced by commit
:::::: 9ad7c6d5e75b160c9ce5775db610d964af45b83f arm64: mm: tidy up top of kernel VA space

:::::: TO: Ard Biesheuvel <ardb@kernel.org>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>

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

                 reply	other threads:[~2023-06-21 12:29 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=202306212018.Qf3499bd-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.