[linux-next:master 3193/5417] drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2228:24: error: implicit declaration of function 'rfkill_soft_blocked'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631
commit: 7cf800f46e07e6b75a43036c4389d6ca717fd017 [3193/5417] iwlwifi: mvm: don't feed the hardware RFKILL into iwlmei
config: riscv-randconfig-r042-20220213 (https://download.01.org/0day-ci/archive/20220213/202202130409.S6QHJomb-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c7eb84634519e6497be42f5fe323f9a04ed67127)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 7cf800f46e07e6b75a43036c4389d6ca717fd017
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/wireless/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/wireless/intel/iwlwifi/mvm/fw.c:19:
>> drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2228:24: error: implicit declaration of function 'rfkill_soft_blocked' [-Werror,-Wimplicit-function-declaration]
mvm->hw_registered ? rfkill_soft_blocked(mvm->hw->wiphy->rfkill) : false;
^
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2228:24: note: did you mean 'rfkill_blocked'?
include/linux/rfkill.h:306:20: note: 'rfkill_blocked' declared here
static inline bool rfkill_blocked(struct rfkill *rfkill)
^
1 error generated.
--
In file included from drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:9:
>> drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2228:24: error: implicit declaration of function 'rfkill_soft_blocked' [-Werror,-Wimplicit-function-declaration]
mvm->hw_registered ? rfkill_soft_blocked(mvm->hw->wiphy->rfkill) : false;
^
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2228:24: note: did you mean 'rfkill_blocked'?
include/linux/rfkill.h:306:20: note: 'rfkill_blocked' declared here
static inline bool rfkill_blocked(struct rfkill *rfkill)
^
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:1109:47: warning: format specifies type 'unsigned char' but the argument has type 's16' (aka 'short') [-Wformat]
IWL_DEBUG_INFO(mvm, "\tburst index: %hhu\n", res->ftm.burst_index);
~~~~ ^~~~~~~~~~~~~~~~~~~~
%hd
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:175:68: note: expanded from macro 'IWL_DEBUG_INFO'
#define IWL_DEBUG_INFO(p, f, a...) IWL_DEBUG(p, IWL_DL_INFO, f, ## a)
~ ^
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:94:49: note: expanded from macro 'IWL_DEBUG'
__IWL_DEBUG_DEV((m)->dev, level, false, fmt, ##args)
~~~ ^~~~
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:91:49: note: expanded from macro '__IWL_DEBUG_DEV'
__iwl_dbg(dev, level, limit, __func__, fmt, ##args); \
~~~ ^~~~
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:1112:47: warning: format specifies type 'unsigned char' but the argument has type 's32' (aka 'int') [-Wformat]
IWL_DEBUG_INFO(mvm, "\trssi spread: %hhu\n", res->ftm.rssi_spread);
~~~~ ^~~~~~~~~~~~~~~~~~~~
%d
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:175:68: note: expanded from macro 'IWL_DEBUG_INFO'
#define IWL_DEBUG_INFO(p, f, a...) IWL_DEBUG(p, IWL_DL_INFO, f, ## a)
~ ^
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:94:49: note: expanded from macro 'IWL_DEBUG'
__IWL_DEBUG_DEV((m)->dev, level, false, fmt, ##args)
~~~ ^~~~
drivers/net/wireless/intel/iwlwifi/mvm/../iwl-debug.h:91:49: note: expanded from macro '__IWL_DEBUG_DEV'
__iwl_dbg(dev, level, limit, __func__, fmt, ##args); \
~~~ ^~~~
2 warnings and 1 error generated.
vim +/rfkill_soft_blocked +2228 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2224
2225 static inline void iwl_mvm_mei_set_sw_rfkill_state(struct iwl_mvm *mvm)
2226 {
2227 bool sw_rfkill =
> 2228 mvm->hw_registered ? rfkill_soft_blocked(mvm->hw->wiphy->rfkill) : false;
2229
2230 if (mvm->mei_registered)
2231 iwl_mei_set_rfkill_state(iwl_mvm_is_radio_killed(mvm),
2232 sw_rfkill);
2233 }
2234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[arnd-playground:set_fs 6/11] arch/riscv/kernel/perf_callchain.c:22:14: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git set_fs
head: 0a081326831928b0d739bce68b8c0f9138b9c8ba
commit: a954036380ae20dbfa0c203bf6cafb21d1f3cedd [6/11] uaccess: generalize access_ok()
config: riscv-randconfig-s032-20220213 (https://download.01.org/0day-ci/archive/20220213/202202130419.oJqXwirc-lk...)
compiler: riscv32-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground set_fs
git checkout a954036380ae20dbfa0c203bf6cafb21d1f3cedd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/riscv/kernel/perf_callchain.c:22:14: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __user *ptr @@ got unsigned long *user_frame_tail @@
arch/riscv/kernel/perf_callchain.c:22:14: sparse: expected void const [noderef] __user *ptr
arch/riscv/kernel/perf_callchain.c:22:14: sparse: got unsigned long *user_frame_tail
arch/riscv/kernel/perf_callchain.c:24:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got unsigned long *user_frame_tail @@
arch/riscv/kernel/perf_callchain.c:24:49: sparse: expected void const [noderef] __user *from
arch/riscv/kernel/perf_callchain.c:24:49: sparse: got unsigned long *user_frame_tail
vim +22 arch/riscv/kernel/perf_callchain.c
dbeb90b0c1eb86 Mao Han 2019-08-29 8
dbeb90b0c1eb86 Mao Han 2019-08-29 9 /*
dbeb90b0c1eb86 Mao Han 2019-08-29 10 * Get the return address for a single stackframe and return a pointer to the
dbeb90b0c1eb86 Mao Han 2019-08-29 11 * next frame tail.
dbeb90b0c1eb86 Mao Han 2019-08-29 12 */
dbeb90b0c1eb86 Mao Han 2019-08-29 13 static unsigned long user_backtrace(struct perf_callchain_entry_ctx *entry,
dbeb90b0c1eb86 Mao Han 2019-08-29 14 unsigned long fp, unsigned long reg_ra)
dbeb90b0c1eb86 Mao Han 2019-08-29 15 {
dbeb90b0c1eb86 Mao Han 2019-08-29 16 struct stackframe buftail;
dbeb90b0c1eb86 Mao Han 2019-08-29 17 unsigned long ra = 0;
dbeb90b0c1eb86 Mao Han 2019-08-29 18 unsigned long *user_frame_tail =
dbeb90b0c1eb86 Mao Han 2019-08-29 19 (unsigned long *)(fp - sizeof(struct stackframe));
dbeb90b0c1eb86 Mao Han 2019-08-29 20
dbeb90b0c1eb86 Mao Han 2019-08-29 21 /* Check accessibility of one struct frame_tail beyond */
dbeb90b0c1eb86 Mao Han 2019-08-29 @22 if (!access_ok(user_frame_tail, sizeof(buftail)))
dbeb90b0c1eb86 Mao Han 2019-08-29 23 return 0;
dbeb90b0c1eb86 Mao Han 2019-08-29 24 if (__copy_from_user_inatomic(&buftail, user_frame_tail,
dbeb90b0c1eb86 Mao Han 2019-08-29 25 sizeof(buftail)))
dbeb90b0c1eb86 Mao Han 2019-08-29 26 return 0;
dbeb90b0c1eb86 Mao Han 2019-08-29 27
dbeb90b0c1eb86 Mao Han 2019-08-29 28 if (reg_ra != 0)
dbeb90b0c1eb86 Mao Han 2019-08-29 29 ra = reg_ra;
dbeb90b0c1eb86 Mao Han 2019-08-29 30 else
dbeb90b0c1eb86 Mao Han 2019-08-29 31 ra = buftail.ra;
dbeb90b0c1eb86 Mao Han 2019-08-29 32
dbeb90b0c1eb86 Mao Han 2019-08-29 33 fp = buftail.fp;
dbeb90b0c1eb86 Mao Han 2019-08-29 34 if (ra != 0)
dbeb90b0c1eb86 Mao Han 2019-08-29 35 perf_callchain_store(entry, ra);
dbeb90b0c1eb86 Mao Han 2019-08-29 36 else
dbeb90b0c1eb86 Mao Han 2019-08-29 37 return 0;
dbeb90b0c1eb86 Mao Han 2019-08-29 38
dbeb90b0c1eb86 Mao Han 2019-08-29 39 return fp;
dbeb90b0c1eb86 Mao Han 2019-08-29 40 }
dbeb90b0c1eb86 Mao Han 2019-08-29 41
:::::: The code at line 22 was first introduced by commit
:::::: dbeb90b0c1eb86a9b963b929d3c937afb7dadfa3 riscv: Add perf callchain support
:::::: TO: Mao Han <han_mao(a)c-sky.com>
:::::: CC: Paul Walmsley <paul.walmsley(a)sifive.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[linux-next:master 4252/5417] sound/soc/codecs/tlv320adc3xxx.c:1209:28: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631
commit: 44bd27c42a1c9a00f1fbcb58301a7f3e6f5cdd0f [4252/5417] ASoC: simple-amplifier: Remove spurious gpiolib select
config: sh-randconfig-r026-20220213 (https://download.01.org/0day-ci/archive/20220213/202202130339.am8KPVyf-lk...)
compiler: sh4-linux-gcc (GCC) 11.2.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 44bd27c42a1c9a00f1fbcb58301a7f3e6f5cdd0f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash sound/soc/codecs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
sound/soc/codecs/tlv320adc3xxx.c: In function 'adc3xxx_i2c_probe':
>> sound/soc/codecs/tlv320adc3xxx.c:1209:28: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
1209 | adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
| ^~~~~~~~~~~~~~
| devm_gpio_free
>> sound/soc/codecs/tlv320adc3xxx.c:1209:57: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
1209 | adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
| ^~~~~~~~~~~~~
| GPIOF_INIT_LOW
sound/soc/codecs/tlv320adc3xxx.c:1209:57: note: each undeclared identifier is reported only once for each function it appears in
>> sound/soc/codecs/tlv320adc3xxx.c:1257:9: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
1257 | gpiod_set_value_cansleep(adc3xxx->rst_pin, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| gpio_set_value_cansleep
cc1: some warnings being treated as errors
vim +1209 sound/soc/codecs/tlv320adc3xxx.c
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1196
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1197 static int adc3xxx_i2c_probe(struct i2c_client *i2c,
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1198 const struct i2c_device_id *id)
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1199 {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1200 struct device *dev = &i2c->dev;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1201 struct adc3xxx *adc3xxx = NULL;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1202 int ret;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1203
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1204 adc3xxx = devm_kzalloc(dev, sizeof(struct adc3xxx), GFP_KERNEL);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1205 if (!adc3xxx)
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1206 return -ENOMEM;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1207 adc3xxx->dev = dev;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1208
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 @1209 adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1210 if (IS_ERR(adc3xxx->rst_pin)) {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1211 return dev_err_probe(dev, PTR_ERR(adc3xxx->rst_pin),
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1212 "Failed to request rst_pin\n");
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1213 }
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1214
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1215 adc3xxx->mclk = devm_clk_get(dev, NULL);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1216 if (IS_ERR(adc3xxx->mclk)) {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1217 /*
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1218 * The chip itself supports running off the BCLK either
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1219 * directly or via the PLL, but the driver does not (yet), so
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1220 * having a specified mclk is required. Otherwise, we could
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1221 * use the lack of a clocks property to indicate when BCLK is
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1222 * intended as the clock source.
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1223 */
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1224 return dev_err_probe(dev, PTR_ERR(adc3xxx->mclk),
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1225 "Failed to acquire MCLK\n");
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1226 } else if (adc3xxx->mclk) {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1227 ret = clk_prepare_enable(adc3xxx->mclk);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1228 if (ret < 0)
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1229 return ret;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1230 dev_dbg(dev, "Enabled MCLK, freq %lu Hz\n", clk_get_rate(adc3xxx->mclk));
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1231 }
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1232
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1233 ret = adc3xxx_parse_dt_gpio(adc3xxx, "ti,dmdin-gpio1", &adc3xxx->gpio_cfg[0]);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1234 if (ret < 0)
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1235 goto err_unprepare_mclk;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1236 ret = adc3xxx_parse_dt_gpio(adc3xxx, "ti,dmclk-gpio2", &adc3xxx->gpio_cfg[1]);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1237 if (ret < 0)
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1238 goto err_unprepare_mclk;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1239 ret = adc3xxx_parse_dt_micbias(adc3xxx, "ti,micbias1-vg", &adc3xxx->micbias_vg[0]);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1240 if (ret < 0)
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1241 goto err_unprepare_mclk;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1242 ret = adc3xxx_parse_dt_micbias(adc3xxx, "ti,micbias2-vg", &adc3xxx->micbias_vg[1]);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1243 if (ret < 0)
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1244 goto err_unprepare_mclk;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1245
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1246 adc3xxx->regmap = devm_regmap_init_i2c(i2c, &adc3xxx_regmap);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1247 if (IS_ERR(adc3xxx->regmap)) {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1248 ret = PTR_ERR(adc3xxx->regmap);
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1249 goto err_unprepare_mclk;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1250 }
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1251
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1252 i2c_set_clientdata(i2c, adc3xxx);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1253
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1254 adc3xxx->type = id->driver_data;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1255
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1256 /* Reset codec chip */
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 @1257 gpiod_set_value_cansleep(adc3xxx->rst_pin, 1);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1258 usleep_range(2000, 100000); /* Requirement: > 10 ns (datasheet p13) */
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1259 gpiod_set_value_cansleep(adc3xxx->rst_pin, 0);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1260
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1261 /* Potentially set up pins used as GPIOs */
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1262 adc3xxx_init_gpio(adc3xxx);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1263
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1264 ret = snd_soc_register_component(dev,
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1265 &soc_component_dev_adc3xxx, &adc3xxx_dai, 1);
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1266 if (ret < 0) {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1267 dev_err(dev, "Failed to register codec: %d\n", ret);
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1268 goto err_unprepare_mclk;
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1269 }
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1270
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1271 return 0;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1272
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1273 err_unprepare_mclk:
8a2d8e4fed6d58 Yang Yingliang 2021-12-23 1274 clk_disable_unprepare(adc3xxx->mclk);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1275 return ret;
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1276 }
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 1277
:::::: The code at line 1209 was first introduced by commit
:::::: e9a3b57efd28fe889a98171bdc1e9e0dd7eb9a50 ASoC: codec: tlv320adc3xxx: New codec driver
:::::: TO: Ricard Wanderlof <ricardw(a)axis.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
7 months, 1 week
Re: [PATCH 5/6] ath11k: Register DBR event handler for CFR data
by kernel test robot
Hi Venkateswara,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on kvalo-ath/ath-next]
[cannot apply to wireless-next/main wireless/main jberg-mac80211-next/master jberg-mac80211/master v5.17-rc3 next-20220211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Venkateswara-Naralasetty/ath11k-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220213/202202130103.qvrDOuTL-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f6685f774697c85d6a352dcea013f46a99f9fe31)
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
# https://github.com/0day-ci/linux/commit/14cd77b4e3109da2eb6b3350164015385...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Venkateswara-Naralasetty/ath11k-add-single-shot-periodic-CFR-capture-support-for-IPQ8074/20220211-230911
git checkout 14cd77b4e3109da2eb6b33501640153852c5d2a7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/wireless/ath/ath11k/ drivers/platform/x86/
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 >>):
>> drivers/net/wireless/ath/ath11k/cfr.c:40:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
case ATH11K_CFR_PREAMBLE_TYPE_HT:
^
drivers/net/wireless/ath/ath11k/cfr.c:40:2: note: insert '__attribute__((fallthrough));' to silence this warning
case ATH11K_CFR_PREAMBLE_TYPE_HT:
^
__attribute__((fallthrough));
drivers/net/wireless/ath/ath11k/cfr.c:40:2: note: insert 'break;' to avoid fall-through
case ATH11K_CFR_PREAMBLE_TYPE_HT:
^
break;
drivers/net/wireless/ath/ath11k/cfr.c:515:6: warning: no previous prototype for function 'ath11k_cfr_ring_free' [-Wmissing-prototypes]
void ath11k_cfr_ring_free(struct ath11k *ar)
^
drivers/net/wireless/ath/ath11k/cfr.c:515:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ath11k_cfr_ring_free(struct ath11k *ar)
^
static
2 warnings generated.
vim +40 drivers/net/wireless/ath/ath11k/cfr.c
18
19 static int cfr_calculate_tones_from_dma_hdr(struct ath11k_cfir_dma_hdr *hdr)
20 {
21 u8 bw = FIELD_GET(CFIR_DMA_HDR_INFO1_UPLOAD_PKT_BW, hdr->info1);
22 u8 preamble = FIELD_GET(CFIR_DMA_HDR_INFO1_PREAMBLE_TYPE, hdr->info1);
23
24 switch (preamble) {
25 case ATH11K_CFR_PREAMBLE_TYPE_LEGACY:
26 case ATH11K_CFR_PREAMBLE_TYPE_VHT:
27 switch (bw) {
28 case 0:
29 return TONES_IN_20MHZ;
30 case 1: /* DUP40/VHT40 */
31 return TONES_IN_40MHZ;
32 case 2: /* DUP80/VHT80 */
33 return TONES_IN_80MHZ;
34 case 3: /* DUP160/VHT160 */
35 return TONES_IN_160MHZ;
36 default:
37 break;
38 }
39
> 40 case ATH11K_CFR_PREAMBLE_TYPE_HT:
41 switch (bw) {
42 case 0:
43 return TONES_IN_20MHZ;
44 case 1:
45 return TONES_IN_40MHZ;
46 }
47 }
48
49 return TONES_INVALID;
50 }
51
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week