Skip to contentSkip to conversation

ASoC: topology: Disable use from userspace

PATCH In review Mark Brown 1 participant 2 messages Aug 18, 2015

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: topology: Disable use from userspace

Since the topology API is still in sufficient flux for changes to be identified disable the use of the userspace ABI by adding #error statements to the code, ensuring that nobody relies on the headers as currently defined. It is expected that this change will be reverted for v4.3.

---
 include/uapi/sound/asoc.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/uapi/sound/asoc.h +6 -0
index 51b8066..247c50b 100644
@@ -18,6 +18,12 @@
 #include <linux/types.h>
 #include <sound/asound.h>
 
+#ifndef __KERNEL__
+#error This API is an early revision and not enabled in the current
+#error kernel release, it will be enabled in a future kernel version
+#error with incompatible changes to what is here.
+#endif
+
 /*
  * Maximum number of channels topology kcontrol can represent.
  */
Signature · 1 line
2.5.0
author maintainer
#1 lore raw

Applied "ASoC: topology: Disable use from userspace" to the asoc tree

The patch

ASoC: topology: Disable use from userspace

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 8c90503bf246bebb48caa5590d41df755ba08550 Mon Sep 17 00:00:00 2001

From: Mark Brown <[email protected]>
Date: Mon, 17 Aug 2015 22:59:25 -0700
Subject: [PATCH] ASoC: topology: Disable use from userspace

Since the topology API is still in sufficient flux for changes to be identified disable the use of the userspace ABI by adding #error statements to the code, ensuring that nobody relies on the headers as currently defined. It is expected that this change will be reverted for v4.3.

---
 include/uapi/sound/asoc.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/uapi/sound/asoc.h +6 -0
index 1221520..677c3c9 100644
@@ -18,6 +18,12 @@
 #include <linux/types.h>
 #include <sound/asound.h>
 
+#ifndef __KERNEL__
+#error This API is an early revision and not enabled in the current
+#error kernel release, it will be enabled in a future kernel version
+#error with incompatible changes to what is here.
+#endif
+
 /*
  * Maximum number of channels topology kcontrol can represent.
  */
Signature · 1 line
2.5.0