ASoC: SOF: uapi headers - add missing include for stdint.h
Jaroslav Kysela
maintainerPATCH 1/1 ASoC: SOF: uapi headers - add missing include for stdint.h
The modified header files depend on types defined in <stdint.h>.
--- include/uapi/sound/sof/eq.h | 4 ++++ include/uapi/sound/sof/fw.h | 4 ++++ include/uapi/sound/sof/header.h | 4 ++++ include/uapi/sound/sof/manifest.h | 4 ++++ include/uapi/sound/sof/trace.h | 4 ++++ 5 files changed, 20 insertions(+)
include/uapi/sound/sof/eq.h +4 -0
@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* FIR EQ type */ #define SOF_EQ_FIR_IDX_SWITCH 0
include/uapi/sound/sof/fw.h +4 -0
@@ -13,6 +13,10 @@#ifndef __INCLUDE_UAPI_SOF_FW_H__#define __INCLUDE_UAPI_SOF_FW_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +#define SND_SOF_FW_SIG_SIZE 4#define SND_SOF_FW_ABI 1#define SND_SOF_FW_SIG "Reef"
include/uapi/sound/sof/header.h +4 -0
@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Header for all non IPC ABI data. *
include/uapi/sound/sof/manifest.h +4 -0
@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* start offset for base FW module */ #define SOF_MAN_ELF_TEXT_OFFSET 0x2000
include/uapi/sound/sof/trace.h +4 -0
@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Host system time. *
Signature · 1 line
2.20.1
Hi Jaroslav,
Quoted 1 line · Jaroslav Kysela
The modified header files depend on types defined in <
stdint.h>.
Humm, not an objection but more a question: may I ask in which cases the compilation would fail or what types were problematic? I see stdint.h being used by only 3 files in include/uapi so not sure if we missed something? Also we removed some of those files recently since they were not used by the kernel, we only have abi.h, fw.h, header.h and tokens.h in this directory, so that patch would not apply against Mark's tree.
Quoted 90 lines
Signed-off-by Jaroslav Kysela <[email protected]>Cc Liam Girdwood <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Cc Takashi Iwai <[email protected]>Cc Mark Brown <[email protected]>--- include/uapi/sound/sof/eq.h | 4 ++++ include/uapi/sound/sof/fw.h | 4 ++++ include/uapi/sound/sof/header.h | 4 ++++ include/uapi/sound/sof/manifest.h | 4 ++++ include/uapi/sound/sof/trace.h | 4 ++++ 5 files changed, 20 insertions(+)include/uapi/sound/sof/eq.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* FIR EQ type */ #define SOF_EQ_FIR_IDX_SWITCH 0include/uapi/sound/sof/fw.h +4
-0@@ -13,6 +13,10 @@#ifndef __INCLUDE_UAPI_SOF_FW_H__#define __INCLUDE_UAPI_SOF_FW_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +#define SND_SOF_FW_SIG_SIZE 4#define SND_SOF_FW_ABI 1#define SND_SOF_FW_SIG "Reef"include/uapi/sound/sof/header.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Header for all non IPC ABI data. * include/uapi/sound/sof/manifest.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* start offset for base FW module */ #define SOF_MAN_ELF_TEXT_OFFSET 0x2000include/uapi/sound/sof/trace.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Host system time. *
Jaroslav Kysela
maintainerDne 28. 05. 19 v 23:45 Pierre-Louis Bossart napsal(a):
Quoted 9 lines
Hi Jaroslav,
Quoted 1 line · Jaroslav Kysela
The modified header files depend on types defined in <
stdint.h>.Humm, not an objection but more a question: may I ask in which cases the compilation would fail or what types were problematic? I see
stdint.hbeing used by only 3 files ininclude/uapiso not sure if we missed something?
We have some automatic tests in our kernel integration, so the uapi headers should be useable standalone. But looking further to the uapi tree, uapi/scsi/scsi_bsg_fc.h does not have stdint.h include statement, too. So the situation is not black and white. I will recommend to add explicit include of stdint.h to our test. Please, ignore this patch.
Thanks,
Jaroslav
Quoted 95 lines
Also we removed some of those files recently since they were not used by the kernel, we only have
abi.h,fw.h,header.handtokens.hin this directory, so that patch would not apply against Mark's tree.Quoted 90 lines
Signed-off-by Jaroslav Kysela <[email protected]>Cc Liam Girdwood <[email protected]>Cc Pierre-Louis Bossart <[email protected]>Cc Takashi Iwai <[email protected]>Cc Mark Brown <[email protected]>--- include/uapi/sound/sof/eq.h | 4 ++++ include/uapi/sound/sof/fw.h | 4 ++++ include/uapi/sound/sof/header.h | 4 ++++ include/uapi/sound/sof/manifest.h | 4 ++++ include/uapi/sound/sof/trace.h | 4 ++++ 5 files changed, 20 insertions(+)include/uapi/sound/sof/eq.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_EQ_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* FIR EQ type */ #define SOF_EQ_FIR_IDX_SWITCH 0include/uapi/sound/sof/fw.h +4
-0@@ -13,6 +13,10 @@#ifndef __INCLUDE_UAPI_SOF_FW_H__#define __INCLUDE_UAPI_SOF_FW_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +#define SND_SOF_FW_SIG_SIZE 4#define SND_SOF_FW_ABI 1#define SND_SOF_FW_SIG "Reef"include/uapi/sound/sof/header.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_HEADER_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Header for all non IPC ABI data. * include/uapi/sound/sof/manifest.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_MANIFEST_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* start offset for base FW module */ #define SOF_MAN_ELF_TEXT_OFFSET 0x2000include/uapi/sound/sof/trace.h +4
-0@@ -9,6 +9,10 @@#ifndef __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__#define __INCLUDE_UAPI_SOUND_SOF_USER_TRACE_H__ +#ifndef __KERNEL__ +#include <stdint.h> +#endif +/* * Host system time. *
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Quoted 1 line · Jaroslav Kysela
The modified header files depend on types defined in <
stdint.h>.
This doesn't apply against current code, please check and resend.