Re: drivers/hid/hid-ft260.c:794:44: warning: format specifies type 'short' but the argument has type 'int'

From: Jiri Kosina
Date: Tue Jul 27 2021 - 06:23:31 EST


On Mon, 26 Jul 2021, Michael Zaidman wrote:

> > vim +794 drivers/hid/hid-ft260.c
> >
> > 784
> > 785 static int ft260_word_show(struct hid_device *hdev, int id, u8 *cfg, int len,
> > 786 u16 *field, u8 *buf)
> > 787 {
> > 788 int ret;
> > 789
> > 790 ret = ft260_hid_feature_report_get(hdev, id, cfg, len);
> > 791 if (ret != len && ret >= 0)
> > 792 return -EIO;
> > 793
> > > 794 return scnprintf(buf, PAGE_SIZE, "%hi\n", le16_to_cpu(*field));
> > 795 }
> > 796
> >
> > ---
> > 0-DAY CI Kernel Test Service, Intel Corporation
> > https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
>
> The fix was discussed and submitted on May 10 in this commit
> https://patchwork.kernel.org/project/linux-input/patch/20210510163428.2415-1-michael.zaidman@xxxxxxxxx/
> But I see that it was not taken into v5.13.
> Jiri, could you please comment?

This one fell in between cracks of my inbox, sorry. Now queued in
for-5.14/upstream-fixes.

--
Jiri Kosina
SUSE Labs