usb/audio: guard kernel-only code with __KERNEL__
PATCH 1/1 usb/audio: guard kernel-only code with __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 <[email protected]>
--- include/linux/usb/audio.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/usb/audio.h +3 -0
@@ -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 */
Signature · 1 line
1.6.2.5