[PATCH v2 02/14] ASoC: Intel: avs: Add topology parsing infrastructure

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Thu Jun 9 21:57:19 CEST 2022


> +static int
> +avs_parse_uuid_token(struct snd_soc_component *comp, void *elem, void *object, u32 offset)
> +{
> +	struct snd_soc_tplg_vendor_value_elem *tuple = elem;
> +	guid_t *val = (guid_t *)((u8 *)object + offset);
> +
> +	guid_copy((guid_t *)val, (const guid_t *)&tuple->value);
> +
> +	return 0;
> +}

Cezary and Amadeusz, could you please look into this 'make W=1' error?

make allmodconfig
make sound/soc/intel/avs/ W=1

  GEN     Makefile

  CALL    /data/pbossart/ktest/work/scripts/checksyscalls.sh

  CALL    /data/pbossart/ktest/work/scripts/atomic/check-atomics.sh

  DESCEND objtool

  CC [M]  sound/soc/intel/avs/topology.o

In file included from /data/pbossart/ktest/work/include/linux/string.h:253,

                 from /data/pbossart/ktest/work/include/linux/bitmap.h:11,

                 from /data/pbossart/ktest/work/include/linux/cpumask.h:12,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/cpumask.h:5,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/msr.h:11,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/processor.h:22,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/cpufeature.h:5,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/thread_info.h:53,

                 from
/data/pbossart/ktest/work/include/linux/thread_info.h:60,

                 from
/data/pbossart/ktest/work/arch/x86/include/asm/preempt.h:7,

                 from /data/pbossart/ktest/work/include/linux/preempt.h:78,

                 from /data/pbossart/ktest/work/include/linux/spinlock.h:55,

                 from /data/pbossart/ktest/work/include/linux/mmzone.h:8,

                 from /data/pbossart/ktest/work/include/linux/gfp.h:6,

                 from /data/pbossart/ktest/work/include/linux/firmware.h:7,

                 from
/data/pbossart/ktest/work/sound/soc/intel/avs/topology.c:9:

In function ‘fortify_memcpy_chk’,

    inlined from ‘guid_copy’ at
/data/pbossart/ktest/work/include/linux/uuid.h:43:2,

    inlined from ‘avs_parse_uuid_token’ at
/data/pbossart/ktest/work/sound/soc/intel/avs/topology.c:134:2:

/data/pbossart/ktest/work/include/linux/fortify-string.h:352:25: error:
call to ‘__read_overflow2_field’ declared with attribute warning:
detected read beyond size of field (2nd parameter); maybe use
struct_group()? [-Werror=attribute-warning]

  352 |                         __read_overflow2_field(q_size_field, size);

      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors





More information about the Alsa-devel mailing list