uapi/linux/target_core_user.h: fix headers_install.sh badness
PATCH 1/1 uapi/linux/target_core_user.h: fix headers_install.sh badness
scripts/headers_install.sh will transform __packed to __attribute__((packed)), so the #ifndef is not necessary. (and, in fact, it's problematic, because we'll end up with the header
containing:
#ifndef __attribute__((packed))
#define __attribu...
and so forth.)
---
cc-ing stable@ so this headers fix gets picked up by distros.
include/uapi/linux/target_core_user.h +0 -4
@@ -6,10 +6,6 @@#include <linux/types.h> #include <linux/uio.h> -#ifndef __packed -#define __packed __attribute__((packed)) -#endif -#define TCMU_VERSION "1.0"/*
Quoted 8 lines · Kyle McMartin
scripts/headers_install.shwill transform__packedto __attribute__((packed)), so the #ifndef is not necessary. (and, in fact, it's problematic, because we'll end up with the header
containing:
#ifndef __attribute__((packed))
#define__attribu...
and so forth.)
Quoted 5 lines
Cc [email protected] # 3.18Signed-off-by Kyle McMartin <[email protected]>---
cc-ing stable@ so this headers fix gets picked up by distros.
Nicholas A. Bellinger
AppliedHi Kyle,
Quoted 17 lines · Kyle McMartin
scripts/headers_install.shwill transform__packedto __attribute__((packed)), so the #ifndef is not necessary. (and, in fact, it's problematic, because we'll end up with the header
containing:
#ifndef __attribute__((packed))
#define__attribu...
and so forth.)Cc [email protected] # 3.18Signed-off-by Kyle McMartin <[email protected]>---
cc-ing stable@ so this headers fix gets picked up by distros.
include/uapi/linux/target_core_user.h line 11
Quoted 10 lines
include/uapi/linux/target_core_user.h +0
-4@@ -6,10 +6,6 @@#include <linux/types.h> #include <linux/uio.h> -#ifndef __packed -#define __packed __attribute__((packed)) -#endif -#define TCMU_VERSION "1.0"/*
Applied to target-pending/for-next.
Thanks!
--nab