PROBLEM: error due to conflicting types during build of kselftests

From: Jeffrin Thalakkottoor
Date: Fri Apr 20 2018 - 14:04:01 EST


hello,

the following is the error found...
-----------------------------------------------------------------------------------
protection_keys.c:421:5: error: conflicting types for âpkey_setâ
int pkey_set(int pkey, unsigned long rights, unsigned long flags)
^~~~~~~~
------------------------------------------------------------------------------------

to reproduce this error...
make -C tools/testing/selftests

Details about software:

Linux debian 4.17.0-rc1+ #1 SMP Thu Apr 19 18:59:45 IST 2018 x86_64 GNU/Linux

GNU Make 4.2.1
Binutils 2.30
Util-linux 2.31.1
Mount 2.31.1
Linux C Library 2.27
Dynamic linker (ldd) 2.27
readlink: missing operand
Try 'readlink --help' for more information.
Procps 3.3.14
Kbd 2.0.4
Console-tools 2.0.4
Sh-utils 8.28
Udev 238

--
software engineer
rajagiri school of engineering and technology