linux-brain/usr
Jason Liu 270cb692df 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)
2020-11-17 15:09:21 +08:00
..
include MLK-24874-6: include: uapi: mxc_asrc: fix the UAPI_HEADER_TEST failure 2020-11-17 15:09:21 +08:00
.gitignore kbuild: compile-test exported headers to ensure they are self-contained 2019-07-08 23:13:57 +09:00
Kconfig initramfs: restore default compression behavior 2020-04-08 09:08:38 +02:00
Makefile kbuild: clean compressed initramfs image 2019-09-24 15:54:07 -07:00
gen_init_cpio.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gen_initramfs_list.sh gen_initramfs_list.sh: fix 'bad variable name' error 2020-01-09 10:20:00 +01:00
initramfs_data.S export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR() 2018-08-22 23:21:44 +09:00