Skip to content

Commit

Permalink
USB: audio: guard kernel-only code with __KERNEL__
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Michael S. Tsirkin authored and Greg Kroah-Hartman committed Sep 23, 2009
1 parent 2f2cac3 commit c350130
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/usb/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -294,4 +296,6 @@ struct usb_audio_control_selector {
struct usb_descriptor_header *desc;
};

#endif /* __KERNEL__ */

#endif /* __LINUX_USB_AUDIO_H */

0 comments on commit c350130

Please sign in to comment.