Re: [PATCH] usb: gadget: zero: Fix warning generated by kbuild

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

 



Hi,

On Mon, Sep 08, 2014 at 04:05:33PM +0530, Amit Virdi wrote:
> The kbuild test bot generated the warning:
> 	drivers/usb/gadget/function/f_sourcesink.c:1498: warning: comparison is
> 	always false due to limited range of data type
> 
> This patch fixes it.
> 
> Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
> Signed-off-by: Amit Virdi <amit.virdi@xxxxxx>
> CC: Felipe Balbi <balbi@xxxxxx>

did you *really* build test this patch ?

drivers/usb/gadget/function/f_sourcesink.c: In function ‘f_ss_opts_int_interval_store’:
drivers/usb/gadget/function/f_sourcesink.c:1494:2: warning: passing argument 3 of ‘kstrtou8’ from incompatible pointer type [enabled by default]
  ret = kstrtou8(page, 0, &num);
  ^
In file included from include/asm-generic/bug.h:13:0,
                 from ./arch/arm/include/asm/bug.h:61,
                 from include/linux/bug.h:4,
                 from include/linux/thread_info.h:11,
                 from include/asm-generic/preempt.h:4,
                 from arch/arm/include/generated/asm/preempt.h:1,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from drivers/usb/gadget/function/f_sourcesink.c:15:
include/linux/kernel.h:339:41: note: expected ‘u8 *’ but argument is of type ‘u32 *’
 int __must_check kstrtou8(const char *s, unsigned int base, u8 *res);

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux