[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202511181607.3hTCfucu-lkp@intel.com>
Date: Tue, 18 Nov 2025 16:57:52 +0800
From: kernel test robot <lkp@...el.com>
To: 429368636@...com, lee@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, pavel@...nel.org,
linus.walleij@...aro.org, brgl@...ev.pl,
linux-kernel@...r.kernel.org, linux-leds@...r.kernel.org,
linux-gpio@...r.kernel.org, zhangxinyu <gavin.zhang@...ot.com>
Subject: Re: [PATCH] leds: add aw91xxx driver
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on lee-leds/for-leds-next]
[also build test WARNING on linus/master v6.18-rc6 next-20251118]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/429368636-qq-com/leds-add-aw91xxx-driver/20251117-175335
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next
patch link: https://lore.kernel.org/r/tencent_1B2BC712D34FBE7DEB01320E665BEB2D8908%40qq.com
patch subject: [PATCH] leds: add aw91xxx driver
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20251118/202511181607.3hTCfucu-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511181607.3hTCfucu-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511181607.3hTCfucu-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/leds/leds-aw91xxx.c: In function 'blink_store':
>> drivers/leds/leds-aw91xxx.c:653:30: warning: format '%x' expects a matching 'unsigned int *' argument [-Wformat=]
653 | if (sscanf(buf, "%x %x", &databuf[0]) == 1)
| ~^
| |
| unsigned int *
drivers/leds/leds-aw91xxx.c: At top level:
>> drivers/leds/leds-aw91xxx.c:1309:13: warning: no previous prototype for 'aw91xxx_irq_func' [-Wmissing-prototypes]
1309 | irqreturn_t aw91xxx_irq_func(int irq, void *key_data)
| ^~~~~~~~~~~~~~~~
>> drivers/leds/leds-aw91xxx.c:1395:6: warning: no previous prototype for 'aw91xxx_int_work' [-Wmissing-prototypes]
1395 | void aw91xxx_int_work(struct work_struct *work)
| ^~~~~~~~~~~~~~~~
drivers/leds/leds-aw91xxx.c: In function 'aw91xxx_key_work':
>> drivers/leds/leds-aw91xxx.c:1425:13: warning: variable 'key_num' set but not used [-Wunused-but-set-variable]
1425 | int key_num = 0;
| ^~~~~~~
vim +653 drivers/leds/leds-aw91xxx.c
645
646 static ssize_t
647 blink_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
648 {
649 unsigned int databuf[2];
650 struct led_classdev *led_cdev = dev_get_drvdata(dev);
651 struct aw91xxx *aw91xxx = container_of(led_cdev, struct aw91xxx, cdev);
652
> 653 if (sscanf(buf, "%x %x", &databuf[0]) == 1)
654 aw91xxx_led_blink(aw91xxx, databuf[0], 3);
655
656 return len;
657 }
658
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists