[leds:devel 45/57] drivers/leds/leds-lp5523.c:361:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git devel
head:   7c7ef19689168031bf78584a4bb7299aaea5d59c
commit: edd68a8377e75e217cd67606663e1bebabe415e0 [45/57] leds-lp5523: use generic firmware interface
config: make ARCH=x86_64 allmodconfig

All warnings:

   drivers/leds/leds-lp5523.c: In function 'lp5523_firmware_loaded':
>> drivers/leds/leds-lp5523.c:361:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat]
   drivers/leds/leds-lp5523.c: In function 'lp5523_probe':
   drivers/leds/leds-lp5523.c:527:23: warning: unused variable 'old_chip' [-Wunused-variable]

vim +361 drivers/leds/leds-lp5523.c

   345		for (i = 0; i < update_size; i++)
   346			lp55xx_write(chip, LP5523_REG_PROG_MEM + i, pattern[i]);
   347	
   348		return 0;
   349	
   350	err:
   351		dev_err(&chip->cl->dev, "wrong pattern format\n");
   352		return -EINVAL;
   353	}
   354	
   355	static void lp5523_firmware_loaded(struct lp55xx_chip *chip)
   356	{
   357		const struct firmware *fw = chip->fw;
   358	
   359		if (fw->size > LP5523_PROGRAM_LENGTH) {
   360			dev_err(&chip->cl->dev, "firmware data size overflow: %d\n",
 > 361				fw->size);
   362			return;
   363		}
   364	
   365		/*
   366		 * Program momery sequence
   367		 *  1) set engine mode to "LOAD"
   368		 *  2) write firmware data into program memory
   369		 */

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux