[PATCH 24/45] hdspm.h: include stdint.h in userspace

Subsystems: sound, the rest

STALE4166d

Revision v02 of 2 in this series.

4 messages, 2 authors, 2015-03-11 · open the first message on its own page

[PATCH 24/45] hdspm.h: include stdint.h in userspace

From: Mikko Rapeli <hidden>
Date: 2015-02-16 23:07:35

Fixes compilation error:

sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/sound/hdspm.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/include/uapi/sound/hdspm.h b/include/uapi/sound/hdspm.h
index d956c35..f799828 100644
--- a/include/uapi/sound/hdspm.h
+++ b/include/uapi/sound/hdspm.h
@@ -20,6 +20,12 @@
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef __KERNEL__
+#include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
+
 /* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */
 #define HDSPM_MAX_CHANNELS      64
 
-- 
2.1.4

Re: [PATCH 24/45] hdspm.h: include stdint.h in userspace

From: Takashi Iwai <hidden>
Date: 2015-02-17 06:46:07

At Tue, 17 Feb 2015 00:05:27 +0100,
Mikko Rapeli wrote:
Fixes compilation error:

sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
Applied for 3.21, thanks.


Takashi
quoted hunk
---
 include/uapi/sound/hdspm.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/include/uapi/sound/hdspm.h b/include/uapi/sound/hdspm.h
index d956c35..f799828 100644
--- a/include/uapi/sound/hdspm.h
+++ b/include/uapi/sound/hdspm.h
@@ -20,6 +20,12 @@
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef __KERNEL__
+#include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
+
 /* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */
 #define HDSPM_MAX_CHANNELS      64
 
-- 
2.1.4
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Re: [PATCH 24/45] hdspm.h: include stdint.h in userspace

From: Mikko Rapeli <hidden>
Date: 2015-03-11 00:28:21

On Tue, Feb 17, 2015 at 07:46:02AM +0100, Takashi Iwai wrote:
At Tue, 17 Feb 2015 00:05:27 +0100,
Mikko Rapeli wrote:
quoted
Fixes compilation error:

sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
Applied for 3.21, thanks.
Sorry, but this should maybe be dropped or reverted from the sound tree.

Arnd and others pointed out that kernel headers should be using __u32 etc
types from linux/types.h instead of including stdint.h from libc and using
uint32_t et al.

I'll post a new patch version for hdspm.h too in the next revision.

-Mikko
Takashi
quoted
---
 include/uapi/sound/hdspm.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/include/uapi/sound/hdspm.h b/include/uapi/sound/hdspm.h
index d956c35..f799828 100644
--- a/include/uapi/sound/hdspm.h
+++ b/include/uapi/sound/hdspm.h
@@ -20,6 +20,12 @@
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef __KERNEL__
+#include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
+
 /* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */
 #define HDSPM_MAX_CHANNELS      64
 
-- 
2.1.4

Re: [PATCH 24/45] hdspm.h: include stdint.h in userspace

From: Takashi Iwai <hidden>
Date: 2015-03-11 06:09:32

At Wed, 11 Mar 2015 02:28:12 +0200,
Mikko Rapeli wrote:
On Tue, Feb 17, 2015 at 07:46:02AM +0100, Takashi Iwai wrote:
quoted
At Tue, 17 Feb 2015 00:05:27 +0100,
Mikko Rapeli wrote:
quoted
Fixes compilation error:

sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
Applied for 3.21, thanks.
Sorry, but this should maybe be dropped or reverted from the sound tree.

Arnd and others pointed out that kernel headers should be using __u32 etc
types from linux/types.h instead of including stdint.h from libc and using
uint32_t et al.

I'll post a new patch version for hdspm.h too in the next revision.
Then please post an incremental patch to for-next branch of sound git
tree (or the current linux-next tree).


Takashi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help