kbuild: disable clangs duplicate decl specifier warning
authorStefan Agner <stefan@agner.ch>
Sun, 6 Aug 2017 18:43:01 +0000 (11:43 -0700)
committerStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 06:21:11 +0000 (23:21 -0700)
commitb03f4c3cf4eddc9edde88c266aca4ae0136e0db0
tree34a4db5e9fdcc100189d9f4cda51155e3b2031c7
parenta24e4c8b5acca046e7bdf5e990c63c4b34565d7c
kbuild: disable clangs duplicate decl specifier warning

Disable the duplicate-decl-specifier warning. The warning is
triggered by every include of include/asm-generic/termios.h.

There is no easy way to get rid of this duplicate specifier:
One const specifier is generated by the typeof() call. The
type passed to the get_user macro is defined as const. But the
__get_user_check defines the type as const too. Since get_user
as well as the passed type is used in other contexts too, we
can not get rid of either const specifier easily...

Signed-off-by: Stefan Agner <stefan@agner.ch>
Makefile