tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 4bd8020d6c753ab56df4d7bd75833fd880e1995a
commit: 98cf79c0d309e209ea168933479fef4be29ed58c [114/120] ALSA: hda/conexant: Use the new
vmaster mute LED helper
config: x86_64-randconfig-a002-20210320 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
436c6c9c20cc522c92a923440a5fc509c342a7db)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 98cf79c0d309e209ea168933479fef4be29ed58c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
> sound/pci/hda/patch_conexant.c:140:44: warning: declaration of
'struct led_classdev' will not be visible outside of this function [-Wvisibility]
static int cx_auto_vmaster_mute_led(struct led_classdev *led_cdev,
^
> sound/pci/hda/patch_conexant.c:141:14: warning: declaration of
'enum led_brightness' will not be visible outside of this function [-Wvisibility]
enum led_brightness brightness)
^
> sound/pci/hda/patch_conexant.c:141:29: error: variable has
incomplete type 'enum led_brightness'
enum led_brightness brightness)
^
sound/pci/hda/patch_conexant.c:141:14: note: forward declaration of 'enum
led_brightness'
enum led_brightness brightness)
^
> sound/pci/hda/patch_conexant.c:143:53: error: incomplete
definition of type 'struct led_classdev'
struct hda_codec *codec
= dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:993:26: note: expanded from macro 'container_of'
void *__mptr = (void *)(ptr); \
^~~
sound/pci/hda/patch_conexant.c:140:44: note: forward declaration of 'struct
led_classdev'
static int cx_auto_vmaster_mute_led(struct led_classdev *led_cdev,
^
> sound/pci/hda/patch_conexant.c:143:53: error: incomplete
definition of type 'struct led_classdev'
struct hda_codec *codec
= dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:994:34: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~
include/linux/compiler_types.h:220:63: note: expanded from macro '__same_type'
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:417:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:405:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:397:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
sound/pci/hda/patch_conexant.c:140:44: note: forward declaration of 'struct
led_classdev'
static int cx_auto_vmaster_mute_led(struct led_classdev *led_cdev,
^
> sound/pci/hda/patch_conexant.c:143:53: error: incomplete
definition of type 'struct led_classdev'
struct hda_codec *codec
= dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:995:20: note: expanded from macro 'container_of'
!__same_type(*(ptr), void), \
^~~
include/linux/compiler_types.h:220:63: note: expanded from macro '__same_type'
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:417:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:405:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:397:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
sound/pci/hda/patch_conexant.c:140:44: note: forward declaration of 'struct
led_classdev'
static int cx_auto_vmaster_mute_led(struct led_classdev *led_cdev,
^
> sound/pci/hda/patch_conexant.c:571:3: error: implicit declaration
of function 'snd_hda_gen_add_mute_led_cdev'
[-Werror,-Wimplicit-function-declaration]
snd_hda_gen_add_mute_led_cdev(codec, cx_auto_vmaster_mute_led);
^
sound/pci/hda/patch_conexant.c:571:3: note: did you mean
'snd_hda_gen_add_micmute_led'?
sound/pci/hda/hda_generic.h:357:5: note: 'snd_hda_gen_add_micmute_led' declared
here
int snd_hda_gen_add_micmute_led(struct hda_codec *codec,
^
sound/pci/hda/patch_conexant.c:669:3: error: implicit declaration of function
'snd_hda_gen_add_mute_led_cdev' [-Werror,-Wimplicit-function-declaration]
snd_hda_gen_add_mute_led_cdev(codec, cxt_gpio_mute_update);
^
sound/pci/hda/patch_conexant.c:674:3: error: implicit declaration of function
'snd_hda_gen_add_micmute_led_cdev' [-Werror,-Wimplicit-function-declaration]
snd_hda_gen_add_micmute_led_cdev(codec, cxt_gpio_micmute_update);
^
sound/pci/hda/patch_conexant.c:674:3: note: did you mean
'snd_hda_gen_add_mute_led_cdev'?
sound/pci/hda/patch_conexant.c:571:3: note: 'snd_hda_gen_add_mute_led_cdev'
declared here
snd_hda_gen_add_mute_led_cdev(codec, cx_auto_vmaster_mute_led);
^
2 warnings and 7 errors generated.
vim +141 sound/pci/hda/patch_conexant.c
138
139 /* turn on/off EAPD according to Master switch (inversely!) for mute LED */
140 static int cx_auto_vmaster_mute_led(struct led_classdev
*led_cdev,
141 enum led_brightness brightness)
142 {
143 struct hda_codec *codec =
dev_to_hda_codec(led_cdev->dev->parent);
144 struct conexant_spec *spec =
codec->spec;
145
146 snd_hda_codec_write(codec, spec->mute_led_eapd, 0,
147 AC_VERB_SET_EAPD_BTLENABLE,
148 brightness ? 0x02 : 0x00);
149 return 0;
150 }
151
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org