summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2014-08-29 15:18:51 -0700
committerJiri Slaby <jslaby@suse.cz>2014-10-13 14:25:34 +0200
commitaf16efcfa36e628be58efd7e0f81e6bf327355fa (patch)
tree75f6b5cc21983d8f30f3f87312efbfba34a40a22 /drivers/gpu
parent225bdf83cf1b47cc2d574cd8b7b7ce03a3b34641 (diff)
downloadlwn-af16efcfa36e628be58efd7e0f81e6bf327355fa.tar.gz
lwn-af16efcfa36e628be58efd7e0f81e6bf327355fa.zip
xattr: fix check for simultaneous glibc header inclusion
commit bfcfd44cce2774f19daeb59fb4e43fc9aa80e7b8 upstream. The guard was introduced in commit ea1a8217b06b ("xattr: guard against simultaneous glibc header inclusion") but it is using #ifdef to check for a define that is either set to 1 or 0. Fix it to use #if instead. * Without this patch: $ { echo "#include <sys/xattr.h>"; echo "#include <linux/xattr.h>"; } | gcc -E -Iinclude/uapi - >/dev/null include/uapi/linux/xattr.h:19:0: warning: "XATTR_CREATE" redefined [enabled by default] #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */ ^ /usr/include/x86_64-linux-gnu/sys/xattr.h:32:0: note: this is the location of the previous definition #define XATTR_CREATE XATTR_CREATE ^ * With this patch: $ { echo "#include <sys/xattr.h>"; echo "#include <linux/xattr.h>"; } | gcc -E -Iinclude/uapi - >/dev/null (no warnings) Signed-off-by: Filipe Brandenburger <filbranden@google.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Cc: Allan McRae <allan@archlinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions