From: Miguel Ojeda Date: Tue, 18 Sep 2018 23:41:21 +0000 (+0200) Subject: Compiler Attributes: ext4: remove local __nonstring definition X-Git-Tag: v4.20-rc1~28^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0604f63033d4020f019d2aaee805c1075b1077b;p=thirdparty%2Fkernel%2Flinux.git 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 # on top of v4.19-rc5, clang 7 Reviewed-by: Nick Desaulniers Reviewed-by: Luc Van Oostenryck Signed-off-by: Miguel Ojeda --- diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index caff935fbeb8f..2acdfdad3d3f6 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -45,15 +45,6 @@ #include -/* 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 */