selftests: mm: mremap_dontunmap.c:53:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



selftests:mm: mremap_dontunmap build failed with clang-16 due to below
warnings / errors on Linux next-20230725 ( or older kernels ).

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

clang --target=aarch64-linux-gnu -fintegrated-as
-Werror=unknown-warning-option -Werror=ignored-optimization-argument
-Werror=option-ignored -Werror=unused-command-line-argument
--target=aarch64-linux-gnu -fintegrated-as -Wall -I
tools/testing/selftests/../../..  -isystem
/home/tuxbuild/.cache/tuxmake/builds/1/build/usr/include
mremap_dontunmap.c vm_util.c -lrt -lpthread -o
/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/mm/mremap_dontunmap
mremap_dontunmap.c:53:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
                   MREMAP_DONTUNMAP | MREMAP_MAYMOVE, 0);
                   ^
mremap_dontunmap.c:108:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
                   MREMAP_DONTUNMAP | MREMAP_MAYMOVE, NULL);
                   ^
mremap_dontunmap.c:149:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
                   MREMAP_DONTUNMAP | MREMAP_MAYMOVE, NULL);
                   ^
mremap_dontunmap.c:200:21: error: use of undeclared identifier
'MREMAP_DONTUNMAP'
                   MREMAP_FIXED | MREMAP_DONTUNMAP | MREMAP_MAYMOVE,
                                  ^
mremap_dontunmap.c:252:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
                   MREMAP_DONTUNMAP | MREMAP_MAYMOVE, NULL);
                   ^
mremap_dontunmap.c:310:6: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
                   MREMAP_DONTUNMAP | MREMAP_MAYMOVE | MREMAP_FIXED,
dest_mapping);
                   ^
6 errors generated.
make[4]: Leaving directory 'tools/testing/selftests/mm'


Links:
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2T3676HpK243gMBLYJCp4OXDmWl/

steps to reproduce:
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2T3676HpK243gMBLYJCp4OXDmWl/tuxmake_reproducer.sh

--
Linaro LKFT
https://lkft.linaro.org



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux