From: Michael S. Tsirkin Date: Wed, 29 Jul 2009 11:23:25 +0000 (+0300) Subject: USB: audio: guard kernel-only code with __KERNEL__ X-Git-Tag: v2.6.32-rc1~174^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c35013087aa9b10e4674b53b7c8f7966de83c194;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h index 7b33c49..eaf9dff 100644 --- a/include/linux/usb/audio.h +++ b/include/linux/usb/audio.h @@ -276,6 +276,8 @@ struct uac_iso_endpoint_descriptor { #define UAC_FU_BASS_BOOST (1 << (UAC_BASS_BOOST_CONTROL - 1)) #define UAC_FU_LOUDNESS (1 << (UAC_LOUDNESS_CONTROL - 1)) +#ifdef __KERNEL__ + struct usb_audio_control { struct list_head list; const char *name; @@ -294,4 +296,6 @@ struct usb_audio_control_selector { struct usb_descriptor_header *desc; }; +#endif /* __KERNEL__ */ + #endif /* __LINUX_USB_AUDIO_H */