Compiler Attributes: ext4: remove local __nonstring definition
Commit 072ebb3bffe6 ("ext4: add nonstring annotations to ext4.h") introduced a local definition of __nonstring to suppress some false positives in gcc 8's -Wstringop-truncation. Since now we support __nonstring for everyone, remove it. Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # on top of v4.19-rc5, clang 7 Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
This commit is contained in:
parent
98cade0a08
commit
f0604f6303
@ -45,15 +45,6 @@
|
|||||||
|
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
/* Until this gets included into linux/compiler-gcc.h */
|
|
||||||
#ifndef __nonstring
|
|
||||||
#if defined(GCC_VERSION) && (GCC_VERSION >= 80000)
|
|
||||||
#define __nonstring __attribute__((nonstring))
|
|
||||||
#else
|
|
||||||
#define __nonstring
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The fourth extended filesystem constants/structures
|
* The fourth extended filesystem constants/structures
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user