tree:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-4.19.y
head: 3a10b2060ca30843d9251b80a2e1ca71e68035bd
commit: f66a52d991de7ca6c6dc7db768b50e6a28916d1f [4058/6859] kbuild: clang: choose
GCC_TOOLCHAIN_DIR not on LD
config: powerpc64-randconfig-r012-20210218 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout f66a52d991de7ca6c6dc7db768b50e6a28916d1f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
include/linux/page-flags.h:162:21: warning: comparison of integers of different signs:
'const unsigned long' and 'long' [-Wsign-compare]
return page->flags == PAGE_POISON_PATTERN;
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/amd/acp-rt5645.c:30:
In file included from include/sound/soc.h:23:
In file included from include/sound/pcm.h:30:
In file included from include/linux/mm.h:1154:
include/linux/vmstat.h:221:2: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
for_each_online_cpu(cpu)
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:778:36: note: expanded from macro
'for_each_online_cpu'
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
(cpu) < nr_cpu_ids;)
~~~ ^ ~~~~~~~~~~
In file included from sound/soc/amd/acp-rt5645.c:30:
In file included from include/sound/soc.h:23:
include/sound/pcm.h:1412:17: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
if (s->number == idx)
~~~~~~~~~ ^ ~~~
include/linux/compiler.h:56:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:69:16: note: expanded from macro '__trace_if'
______r = !!(cond); \
^~~~
In file included from sound/soc/amd/acp-rt5645.c:30:
In file included from include/sound/soc.h:23:
include/sound/pcm.h:1412:17: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
if (s->number == idx)
~~~~~~~~~ ^ ~~~
include/linux/compiler.h:56:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:58:30: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
In file included from sound/soc/amd/acp-rt5645.c:30:
In file included from include/sound/soc.h:23:
include/sound/pcm.h:1412:17: warning: comparison of integers of different signs:
'int' and 'unsigned int' [-Wsign-compare]
if (s->number == idx)
~~~~~~~~~ ^ ~~~
include/linux/compiler.h:56:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:58:42: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
sound/soc/amd/acp-rt5645.c:132:29: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"Headphones", NULL, "HPOL"},
^
sound/soc/amd/acp-rt5645.c:133:29: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"Headphones", NULL, "HPOR"},
^
sound/soc/amd/acp-rt5645.c:134:33: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"RECMIXL", NULL, "Headset Mic"},
^
sound/soc/amd/acp-rt5645.c:135:33: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"RECMIXR", NULL, "Headset Mic"},
^
sound/soc/amd/acp-rt5645.c:136:27: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"Speakers", NULL, "SPOL"},
^
sound/soc/amd/acp-rt5645.c:137:27: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"Speakers", NULL, "SPOR"},
^
sound/soc/amd/acp-rt5645.c:138:29: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"DMIC L2", NULL, "Int Mic"},
^
sound/soc/amd/acp-rt5645.c:139:29: warning: missing field 'connected'
initializer [-Wmissing-field-initializers]
{"DMIC R2", NULL, "Int Mic"},
^
sound/soc/amd/acp-rt5645.c:143:22: warning: initializing 'const unsigned char
*' with an expression of type 'char [18]' converts between pointers to integer
types where one is of the unique plain 'char' type and the other is not
[-Wpointer-sign]
SOC_DAPM_PIN_SWITCH("Headphones"),
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
include/sound/soc-dapm.h:330:48: note: expanded from macro
'SOC_DAPM_PIN_SWITCH'
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
^~~~~~~~~~~~~~~
sound/soc/amd/acp-rt5645.c:144:22: warning: initializing 'const unsigned char
*' with an expression of type 'char [16]' converts between pointers to integer
types where one is of the unique plain 'char' type and the other is not
[-Wpointer-sign]
SOC_DAPM_PIN_SWITCH("Speakers"),
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
include/sound/soc-dapm.h:330:48: note: expanded from macro
'SOC_DAPM_PIN_SWITCH'
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
^~~~~~~~~~~~~~~
sound/soc/amd/acp-rt5645.c:145:22: warning: initializing 'const unsigned char
*' with an expression of type 'char [19]' converts between pointers to integer
types where one is of the unique plain 'char' type and the other is not
[-Wpointer-sign]
SOC_DAPM_PIN_SWITCH("Headset Mic"),
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
include/sound/soc-dapm.h:330:48: note: expanded from macro
'SOC_DAPM_PIN_SWITCH'
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
^~~~~~~~~~~~~~~
sound/soc/amd/acp-rt5645.c:146:22: warning: initializing 'const unsigned char
*' with an expression of type 'char [15]' converts between pointers to integer
types where one is of the unique plain 'char' type and the other is not
[-Wpointer-sign]
SOC_DAPM_PIN_SWITCH("Int Mic"),
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
include/sound/soc-dapm.h:330:48: note: expanded from macro
'SOC_DAPM_PIN_SWITCH'
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname " Switch", \
^~~~~~~~~~~~~~~
sound/soc/amd/acp-rt5645.c:181:18: warning: missing field 'cls' initializer
[-Wmissing-field-initializers]
{ "AMDI1002", 0 },
^
> sound/soc/amd/acp-rt5645.c:180:36: warning: unused variable
'cz_audio_acpi_match' [-Wunused-const-variable]
static const struct
acpi_device_id cz_audio_acpi_match[] = {
^
34 warnings generated.
Assembler messages:
Fatal error: invalid listing option `6'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
vim +/cz_audio_acpi_match +180 sound/soc/amd/acp-rt5645.c
566a1847fb37f1 Akshu Agrawal 2017-10-18 179
566a1847fb37f1 Akshu Agrawal 2017-10-18 @180 static const struct acpi_device_id
cz_audio_acpi_match[] = {
566a1847fb37f1 Akshu Agrawal 2017-10-18 181 { "AMDI1002", 0 },
566a1847fb37f1 Akshu Agrawal 2017-10-18 182 {},
566a1847fb37f1 Akshu Agrawal 2017-10-18 183 };
566a1847fb37f1 Akshu Agrawal 2017-10-18 184 MODULE_DEVICE_TABLE(acpi,
cz_audio_acpi_match);
566a1847fb37f1 Akshu Agrawal 2017-10-18 185
:::::: The code at line 180 was first introduced by commit
:::::: 566a1847fb37f1b12d997f85623cbf8658c87394 ASoC: AMD: Add machine driver for cz
rt5650
:::::: TO: Akshu Agrawal <akshu.agrawal(a)amd.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org