[PATCH] usb/audio: guard kernel-only code with __KERNEL__

From: Michael S. Tsirkin
Date: Wed Jul 29 2009 - 07:24:36 EST


include/linux/usb/audio.h is exported to userspace,
so part of this file that is for internal kernel
usage need to be guarded with ifdef __KERNEL__.
This way make headers_install will stript it out.

Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
---
include/linux/usb/audio.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h
index b5744bc..353a300 100644
--- a/include/linux/usb/audio.h
+++ b/include/linux/usb/audio.h
@@ -258,6 +258,8 @@ struct usb_as_iso_endpoint_descriptor {
};
#define USB_AS_ISO_ENDPOINT_DESC_SIZE 7

+#ifdef __KERNEL__
+
#define FU_CONTROL_UNDEFINED 0x00
#define MUTE_CONTROL 0x01
#define VOLUME_CONTROL 0x02
@@ -311,4 +313,5 @@ struct usb_audio_control_selector {
struct usb_descriptor_header *desc;
};

+#endif /* __KERNEL__ */
#endif /* __LINUX_USB_AUDIO_H */
--
1.6.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/