All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h
@ 2019-05-28 20:02 Jaroslav Kysela
  2019-05-28 21:45 ` Pierre-Louis Bossart
  2019-05-30 16:01 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2019-05-28 20:02 UTC (permalink / raw)
  To: ALSA development
  Cc: Takashi Iwai, Liam Girdwood, Mark Brown, Pierre-Louis Bossart

The modified header files depend on types defined in <stdint.h>.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Mark Brown <broonie@kernel.org>
---
 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(+)

diff --git a/include/uapi/sound/sof/eq.h b/include/uapi/sound/sof/eq.h
index 666c2b6a3229..106d56e357e0 100644
--- a/include/uapi/sound/sof/eq.h
+++ b/include/uapi/sound/sof/eq.h
@@ -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
diff --git a/include/uapi/sound/sof/fw.h b/include/uapi/sound/sof/fw.h
index 1afca973eb09..4f2de19a3b86 100644
--- a/include/uapi/sound/sof/fw.h
+++ b/include/uapi/sound/sof/fw.h
@@ -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"
diff --git a/include/uapi/sound/sof/header.h b/include/uapi/sound/sof/header.h
index 7868990b0d6f..6a62ae8f0eb9 100644
--- a/include/uapi/sound/sof/header.h
+++ b/include/uapi/sound/sof/header.h
@@ -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.
  *
diff --git a/include/uapi/sound/sof/manifest.h b/include/uapi/sound/sof/manifest.h
index 2009ee30fad0..d57aa2bc4764 100644
--- a/include/uapi/sound/sof/manifest.h
+++ b/include/uapi/sound/sof/manifest.h
@@ -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
 
diff --git a/include/uapi/sound/sof/trace.h b/include/uapi/sound/sof/trace.h
index ffa7288a0f16..1652bc08d576 100644
--- a/include/uapi/sound/sof/trace.h
+++ b/include/uapi/sound/sof/trace.h
@@ -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.
  *
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h
  2019-05-28 20:02 [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h Jaroslav Kysela
@ 2019-05-28 21:45 ` Pierre-Louis Bossart
  2019-05-29  7:13   ` Jaroslav Kysela
  2019-05-30 16:01 ` Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Pierre-Louis Bossart @ 2019-05-28 21:45 UTC (permalink / raw)
  To: Jaroslav Kysela, ALSA development; +Cc: Takashi Iwai, Liam Girdwood, Mark Brown

Hi Jaroslav,

On 5/28/19 3:02 PM, Jaroslav Kysela wrote:
> 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.

> 
> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
> Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Cc: Takashi Iwai <tiwai@suse.de>
> Cc: Mark Brown <broonie@kernel.org>
> ---
>   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(+)
> 
> diff --git a/include/uapi/sound/sof/eq.h b/include/uapi/sound/sof/eq.h
> index 666c2b6a3229..106d56e357e0 100644
> --- a/include/uapi/sound/sof/eq.h
> +++ b/include/uapi/sound/sof/eq.h
> @@ -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
> diff --git a/include/uapi/sound/sof/fw.h b/include/uapi/sound/sof/fw.h
> index 1afca973eb09..4f2de19a3b86 100644
> --- a/include/uapi/sound/sof/fw.h
> +++ b/include/uapi/sound/sof/fw.h
> @@ -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"
> diff --git a/include/uapi/sound/sof/header.h b/include/uapi/sound/sof/header.h
> index 7868990b0d6f..6a62ae8f0eb9 100644
> --- a/include/uapi/sound/sof/header.h
> +++ b/include/uapi/sound/sof/header.h
> @@ -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.
>    *
> diff --git a/include/uapi/sound/sof/manifest.h b/include/uapi/sound/sof/manifest.h
> index 2009ee30fad0..d57aa2bc4764 100644
> --- a/include/uapi/sound/sof/manifest.h
> +++ b/include/uapi/sound/sof/manifest.h
> @@ -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
>   
> diff --git a/include/uapi/sound/sof/trace.h b/include/uapi/sound/sof/trace.h
> index ffa7288a0f16..1652bc08d576 100644
> --- a/include/uapi/sound/sof/trace.h
> +++ b/include/uapi/sound/sof/trace.h
> @@ -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.
>    *
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h
  2019-05-28 21:45 ` Pierre-Louis Bossart
@ 2019-05-29  7:13   ` Jaroslav Kysela
  0 siblings, 0 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2019-05-29  7:13 UTC (permalink / raw)
  To: Pierre-Louis Bossart, ALSA development
  Cc: Takashi Iwai, Liam Girdwood, Mark Brown

Dne 28. 05. 19 v 23:45 Pierre-Louis Bossart napsal(a):
> Hi Jaroslav,
> 
> On 5/28/19 3:02 PM, Jaroslav Kysela wrote:
>> 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?

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

> 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.
> 
>>
>> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
>> Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
>> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
>> Cc: Takashi Iwai <tiwai@suse.de>
>> Cc: Mark Brown <broonie@kernel.org>
>> ---
>>   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(+)
>>
>> diff --git a/include/uapi/sound/sof/eq.h b/include/uapi/sound/sof/eq.h
>> index 666c2b6a3229..106d56e357e0 100644
>> --- a/include/uapi/sound/sof/eq.h
>> +++ b/include/uapi/sound/sof/eq.h
>> @@ -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
>> diff --git a/include/uapi/sound/sof/fw.h b/include/uapi/sound/sof/fw.h
>> index 1afca973eb09..4f2de19a3b86 100644
>> --- a/include/uapi/sound/sof/fw.h
>> +++ b/include/uapi/sound/sof/fw.h
>> @@ -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"
>> diff --git a/include/uapi/sound/sof/header.h b/include/uapi/sound/sof/header.h
>> index 7868990b0d6f..6a62ae8f0eb9 100644
>> --- a/include/uapi/sound/sof/header.h
>> +++ b/include/uapi/sound/sof/header.h
>> @@ -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.
>>    *
>> diff --git a/include/uapi/sound/sof/manifest.h b/include/uapi/sound/sof/manifest.h
>> index 2009ee30fad0..d57aa2bc4764 100644
>> --- a/include/uapi/sound/sof/manifest.h
>> +++ b/include/uapi/sound/sof/manifest.h
>> @@ -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
>>   
>> diff --git a/include/uapi/sound/sof/trace.h b/include/uapi/sound/sof/trace.h
>> index ffa7288a0f16..1652bc08d576 100644
>> --- a/include/uapi/sound/sof/trace.h
>> +++ b/include/uapi/sound/sof/trace.h
>> @@ -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 <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h
  2019-05-28 20:02 [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h Jaroslav Kysela
  2019-05-28 21:45 ` Pierre-Louis Bossart
@ 2019-05-30 16:01 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2019-05-30 16:01 UTC (permalink / raw)
  To: Jaroslav Kysela
  Cc: Takashi Iwai, Liam Girdwood, ALSA development, Pierre-Louis Bossart


[-- Attachment #1.1: Type: text/plain, Size: 199 bytes --]

On Tue, May 28, 2019 at 10:02:06PM +0200, Jaroslav Kysela wrote:
> The modified header files depend on types defined in <stdint.h>.

This doesn't apply against current code, please check and resend.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-30 16:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28 20:02 [PATCH] ASoC: SOF: uapi headers - add missing include for stdint.h Jaroslav Kysela
2019-05-28 21:45 ` Pierre-Louis Bossart
2019-05-29  7:13   ` Jaroslav Kysela
2019-05-30 16:01 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.