lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 18 Aug 2021 14:54:12 +0800
From:   Jie Deng <jie.deng@...el.com>
To:     Stephen Rothwell <sfr@...b.auug.org.au>,
        Wolfram Sang <wsa@...-dreams.de>
Cc:     Conghui Chen <conghui.chen@...el.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: build warning after merge of the i2c tree


On 2021/8/18 14:29, Stephen Rothwell wrote:
> Hi all,
>
> After merging the i2c tree, today's linux-next build (powerpc
> allyesconfig) produced this warning:
>
> drivers/i2c/busses/i2c-virtio.c: In function 'virtio_i2c_probe':
> drivers/i2c/busses/i2c-virtio.c:208:17: warning: unused variable 'pdev' [-Wunused-variable]
>    208 |  struct device *pdev = vdev->dev.parent;
>        |                 ^~~~
>
> Introduced by commit
>
>    8fb12751ac78 ("i2c: virtio: add a virtio i2c frontend driver")


Why we have this warning ? In commit 8fb12751ac78, the variable 'pdev' 
was used in line 237.

https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git/commit/?h=i2c/for-next&id=8fb12751ac78d0a4ba3c604496ffc8dcd1bd6c31

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ