public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: gregkh@suse.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] usb/audio: guard kernel-only code with __KERNEL__
Date: Wed, 29 Jul 2009 14:23:25 +0300	[thread overview]
Message-ID: <20090729112324.GA15759@redhat.com> (raw)

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

                 reply	other threads:[~2009-07-29 11:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090729112324.GA15759@redhat.com \
    --to=mst@redhat.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox