[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208161128.ck05kP2v-lkp@intel.com>
Date: Tue, 16 Aug 2022 11:49:06 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik+lin@...ebit.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Hector Martin <marcan@...can.st>
Subject: [asahilinux:bits/070-audio 9/16] sound/soc/apple/macaudio.c:627:15:
error: too many arguments to function call, expected 4, have 6
tree: https://github.com/AsahiLinux/linux bits/070-audio
head: 54b20e361303307d4ed9f2903ad7b1f41caf8bea
commit: ca97cfa4728cf208e9d53e17f5ff54cc08e804b3 [9/16] ASoC: apple: Add macaudio machine driver
config: arm64-randconfig-r015-20220815 (https://download.01.org/0day-ci/archive/20220816/202208161128.ck05kP2v-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project aed5e3bea138ce581d682158eb61c27b3cfdd6ec)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/AsahiLinux/linux/commit/ca97cfa4728cf208e9d53e17f5ff54cc08e804b3
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/070-audio
git checkout ca97cfa4728cf208e9d53e17f5ff54cc08e804b3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash sound/soc/apple/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> sound/soc/apple/macaudio.c:627:15: error: too many arguments to function call, expected 4, have 6
&ma->jack, &ma->pin, 1);
^~~~~~~~~~~
include/sound/soc-card.h:18:5: note: 'snd_soc_card_jack_new' declared here
int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type,
^
1 error generated.
vim +627 sound/soc/apple/macaudio.c
614
615 static int macaudio_probe(struct snd_soc_card *card)
616 {
617 struct macaudio_snd_data *ma = snd_soc_card_get_drvdata(card);
618 int ret;
619
620 ma->pin.pin = "Headphones";
621 ma->pin.mask = SND_JACK_HEADSET | SND_JACK_HEADPHONE;
622 ret = snd_soc_card_jack_new(card, ma->pin.pin,
623 SND_JACK_HEADSET |
624 SND_JACK_HEADPHONE |
625 SND_JACK_BTN_0 | SND_JACK_BTN_1 |
626 SND_JACK_BTN_2 | SND_JACK_BTN_3,
> 627 &ma->jack, &ma->pin, 1);
628
629 if (ret < 0) {
630 dev_err(card->dev, "jack creation failed: %d\n", ret);
631 return ret;
632 }
633
634 snd_soc_jack_notifier_register(&ma->jack, &macaudio_jack_nb);
635
636 return ret;
637 }
638
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists