Re: [PATCH] mm: use enum for vm_flags

From: kernel test robot
Date: Fri Oct 10 2025 - 20:40:03 EST


Hi Jakub,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]

url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Acs/mm-use-enum-for-vm_flags/20251010-124738
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20251008125427.68735-1-acsjakub%40amazon.de
patch subject: [PATCH] mm: use enum for vm_flags
config: parisc-randconfig-r072-20251011 (https://download.01.org/0day-ci/archive/20251011/202510110802.EXLvwqhL-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251011/202510110802.EXLvwqhL-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510110802.EXLvwqhL-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/linux/elf.h:6,
from include/linux/module.h:20,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/static_call.h:135,
from include/linux/tracepoint.h:22,
from include/linux/mm.h:39,
from include/linux/pid_namespace.h:7,
from include/linux/nsfs.h:9,
from include/linux/proc_ns.h:8,
from init/version.c:18:
>> arch/parisc/include/asm/elf.h:320: warning: "ELF_OSABI" redefined
#define ELF_OSABI ELFOSABI_LINUX

In file included from include/linux/elfnote.h:62,
from include/linux/build-salt.h:4,
from init/version.c:11:
include/uapi/linux/elf.h:386: note: this is the location of the previous definition
#define ELF_OSABI ELFOSABI_NONE



vim +/ELF_OSABI +320 arch/parisc/include/asm/elf.h

^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 308
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 309
71d577db01a517 arch/parisc/include/asm/elf.h Helge Deller 2018-04-11 310 #define elf_check_arch(x) \
71d577db01a517 arch/parisc/include/asm/elf.h Helge Deller 2018-04-11 311 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELF_CLASS)
71d577db01a517 arch/parisc/include/asm/elf.h Helge Deller 2018-04-11 312 #define compat_elf_check_arch(x) \
71d577db01a517 arch/parisc/include/asm/elf.h Helge Deller 2018-04-11 313 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELFCLASS32)
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 314
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 315 /*
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 316 * These are used to set parameters in the core dumps.
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 317 */
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 318 #define ELF_DATA ELFDATA2MSB
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 319 #define ELF_ARCH EM_PARISC
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 @320 #define ELF_OSABI ELFOSABI_LINUX
^1da177e4c3f41 include/asm-parisc/elf.h Linus Torvalds 2005-04-16 321

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