* [PATCH] usb/audio: guard kernel-only code with __KERNEL__
@ 2009-07-29 11:23 Michael S. Tsirkin
0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2009-07-29 11:23 UTC (permalink / raw)
To: gregkh, linux-usb, linux-kernel
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@redhat.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-29 11:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 11:23 [PATCH] usb/audio: guard kernel-only code with __KERNEL__ Michael S. Tsirkin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.