Re: [hid:for-6.2/mcp2221 3/3] drivers/hid/hid-mcp2221.c:734:18: warning: unused variable 'tmp'

Started by Jiri Kosina on Oct 20, 2022

open the first message on its own page

Message details and related content
On Wed, 19 Oct 2022, kernel test robot wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.2/mcp2221
head:   960f9df7c620ecb6030aff1d9a6c3d67598b8290
commit: 960f9df7c620ecb6030aff1d9a6c3d67598b8290 [3/3] HID: mcp2221: add ADC/DAC support via iio subsystem
config: i386-randconfig-a014
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=960f9df7c620ecb6030aff1d9a6c3d67598b8290
        git remote add hid https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
        git fetch --no-tags hid for-6.2/mcp2221
        git checkout 960f9df7c620ecb6030aff1d9a6c3d67598b8290
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hid/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot [off-list ref]

All warnings (new ones prefixed by >>):

   drivers/hid/hid-mcp2221.c: In function 'mcp2221_raw_event':
quoted
quoted
drivers/hid/hid-mcp2221.c:734:18: warning: unused variable 'tmp' [-Wunused-variable]
     734 |         u8 *buf, tmp;
         |                  ^~~
Matt, I have fixed this one in the tree now by moving the declaration into 
the conditional block.

Could you please look into the other one that sparse reported regarding 
casting to __le16?

Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help