lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090729112324.GA15759@redhat.com>
Date:	Wed, 29 Jul 2009 14:23:25 +0300
From:	"Michael S. Tsirkin" <mst@...hat.com>
To:	gregkh@...e.de, linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] 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 <mst@...hat.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ