From mboxrd@z Thu Jan 1 00:00:00 1970 From: rdunlap at infradead.org (Randy Dunlap) Date: Sat, 28 Apr 2018 14:54:19 -0700 Subject: PROBLEM: error due to conflicting types during build of kselftests In-Reply-To: References: Message-ID: <49022295-d118-4aa7-c750-36f36b6b6821@infradead.org> On 04/28/2018 02:42 PM, Jeffrin Thalakkottoor wrote: > anyway my current is gcc (Debian 7.3.0-16) 7.3.0 > > may be you can try ... make -C tools/testing/selftests 2> error.txt I have a much older gcc, so newer must be better. :) > On Sat, Apr 28, 2018 at 5:08 AM, Randy Dunlap wrote: >> On 04/20/2018 11:03 AM, Jeffrin Thalakkottoor wrote: >>> 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 >> >> Hi, >> >> I can't reproduce this problem. What is your gcc --version? >> >> Thanks. >> >>> 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 -- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: rdunlap@infradead.org (Randy Dunlap) Date: Sat, 28 Apr 2018 14:54:19 -0700 Subject: PROBLEM: error due to conflicting types during build of kselftests In-Reply-To: References: Message-ID: <49022295-d118-4aa7-c750-36f36b6b6821@infradead.org> Content-Type: text/plain; charset="UTF-8" Message-ID: <20180428215419.zozyWNZ4QBDZM38hGZYPWvoRnop735ds4oFpsOlrtEc@z> On 04/28/2018 02:42 PM, Jeffrin Thalakkottoor wrote: > anyway my current is gcc (Debian 7.3.0-16) 7.3.0 > > may be you can try ... make -C tools/testing/selftests 2> error.txt I have a much older gcc, so newer must be better. :) > On Sat, Apr 28, 2018@5:08 AM, Randy Dunlap wrote: >> On 04/20/2018 11:03 AM, Jeffrin Thalakkottoor wrote: >>> 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 >> >> Hi, >> >> I can't reproduce this problem. What is your gcc --version? >> >> Thanks. >> >>> 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 -- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html