* [freescale-fslc:5.10-2.1.x-imx 11362/14590] drivers/pwm/pwm-rpmsg-imx.c:308:13: warning: variable 'ret' set but not used
@ 2021-09-28 20:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-28 20:48 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]
tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head: 54bd61ba352bffaf33ee2c956f140a565c9e2201
commit: 0e5079a51662f79d7a66565b0781e5fd91dada29 [11362/14590] MLK-25559-1 pwm: imx-rpchip: add pwm over rpmsg driver
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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://github.com/Freescale/linux-fslc/commit/0e5079a51662f79d7a66565b0781e5fd91dada29
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.10-2.1.x-imx
git checkout 0e5079a51662f79d7a66565b0781e5fd91dada29
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/pwm/pwm-rpmsg-imx.c: In function 'pwm_rpchip_get_state':
>> drivers/pwm/pwm-rpmsg-imx.c:308:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
308 | int ret;
| ^~~
vim +/ret +308 drivers/pwm/pwm-rpmsg-imx.c
302
303 static void pwm_rpchip_get_state(struct pwm_chip *chip,
304 struct pwm_device *pwm,
305 struct pwm_state *state)
306 {
307 struct imx_rpmsg_pwm_data *rdata = to_imx_rpmsg_pwm_chip(chip);
> 308 int ret;
309
310 mutex_lock(&pwm_rpmsg.lock);
311
312 if (pwm_rpmsg.request_id >= 0xFF)
313 pwm_rpmsg.request_id = 0;
314 pwm_rpmsg.request_id++;
315
316 pwm_rpmsg.chip_id = rdata->chip_id;
317 pwm_rpmsg.channel_id = pwm->hwpwm;
318 ret = pwm_rpsmg_get(&pwm_rpmsg, state);
319
320 mutex_unlock(&pwm_rpmsg.lock);
321 }
322
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69044 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-28 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 20:48 [freescale-fslc:5.10-2.1.x-imx 11362/14590] drivers/pwm/pwm-rpmsg-imx.c:308:13: warning: variable 'ret' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.