diff options
author | Jason Liu <jason.hui.liu@nxp.com> | 2020-10-09 12:20:52 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2020-11-17 15:09:21 +0800 |
commit | 270cb692df4593b1065e6a9bad98bd76ea70f880 (patch) | |
tree | d78db8b1fd0985279f5e1e444112a892ecef7c03 /usr/include | |
parent | 92aae186203e70d87b3ef5082d9cc5e1baa0bebc (diff) |
MLK-24874-6: include: uapi: mxc_asrc: fix the UAPI_HEADER_TEST failure
Enable CONFIG_UAPI_HEADER_TEST turns out the following build issues
HDRTEST usr/include/linux/mxc_asrc.h
In file included from <command-line>:32:0:
./usr/include/linux/mxc_asrc.h:125:2: error: unknown type name ‘snd_pcm_format_t’
snd_pcm_format_t input_format;
^~~~~~~~~~~~~~~~
./usr/include/linux/mxc_asrc.h:126:2: error: unknown type name ‘snd_pcm_format_t’
snd_pcm_format_t output_format;
^~~~~~~~~~~~~~~~
./usr/include/linux/mxc_asrc.h:134:2: error: unknown type name ‘uint64_t’
uint64_t supported_in_format;
^~~~~~~~
./usr/include/linux/mxc_asrc.h:135:2: error: unknown type name ‘uint64_t’
uint64_t supported_out_format;
But even add the missing/necessary header file, it finally failed too in the end:
HDRTEST usr/include/linux/mxc_asrc.h
In file included from ./usr/include/linux/mxc_asrc.h:23:0,
from <command-line>:32:
./usr/include/sound/asound.h:459:18: error: field ‘trigger_tstamp’ has incomplete type
struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
^~~~~~~~~~~~~~
./usr/include/sound/asound.h:460:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp; /* reference timestamp */
^~~~~~
./usr/include/sound/asound.h:469:18: error: field ‘audio_tstamp’ has incomplete type
struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */
^~~~~~~~~~~~
./usr/include/sound/asound.h:470:18: error: field ‘driver_tstamp’ has incomplete type
struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */
^~~~~~~~~~~~~
./usr/include/sound/asound.h:472:37: error: invalid application of ‘sizeof’ to incomplete type ‘struct timespec’
unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */
^~~~~~
./usr/include/sound/asound.h:479:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp; /* Timestamp */
^~~~~~
./usr/include/sound/asound.h:481:18: error: field ‘audio_tstamp’ has incomplete type
struct timespec audio_tstamp; /* from sample counter or wall clock */
^~~~~~~~~~~~
./usr/include/sound/asound.h:651:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp; /* Timestamp */
^~~~~~
./usr/include/sound/asound.h:763:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp; /* Timestamp - last update */
^~~~~~
./usr/include/sound/asound.h:813:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp;
^~~~~~
./usr/include/sound/asound.h:956:18: error: field ‘tstamp’ has incomplete type
struct timespec tstamp;
^~~~~~
./usr/include/sound/asound.h:957:36: error: invalid application of ‘sizeof’ to incomplete type ‘struct timespec’
unsigned char reserved[128-sizeof(struct timespec)];
This is kernel known issue, just like other fixes as the following, put mxc_asrc.h into the skip-list:
header-test- += sound/asequencer.h
header-test- += sound/asoc.h
header-test- += sound/asound.h
header-test- += sound/compress_offload.h
header-test- += sound/emu10k1.h
header-test- += sound/sfnt_info.h
Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
(cherry picked from commit 4018355af34d9b25ff7bd4d27960d72b8d304e30)
Diffstat (limited to 'usr/include')
-rw-r--r-- | usr/include/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile index 79c9a80a9c0c..3c9d14011d59 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -26,6 +26,7 @@ header-test- += drm/vmwgfx_drm.h header-test- += linux/am437x-vpfe.h header-test- += linux/android/binder.h header-test- += linux/android/binderfs.h +header-test- += linux/mxc_asrc.h header-test-$(CONFIG_CPU_BIG_ENDIAN) += linux/byteorder/big_endian.h header-test-$(CONFIG_CPU_LITTLE_ENDIAN) += linux/byteorder/little_endian.h header-test- += linux/coda.h |