[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200702.142428.1638019124425781765.davem@davemloft.net>
Date: Thu, 02 Jul 2020 14:24:28 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: weiyongjun1@...wei.com
Cc: hulkci@...wei.com, kuba@...nel.org, sumit.semwal@...aro.org,
zhongjiang@...wei.com, snelson@...sando.io,
nikolay@...ulusnetworks.com, vaibhavgupta40@...il.com,
mst@...hat.com, jwi@...ux.ibm.com, netdev@...r.kernel.org,
linux-media@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linaro-mm-sig@...ts.linaro.org
Subject: Re: [PATCH net-next] ksz884x: mark pcidev_suspend() as
__maybe_unused
From: Wei Yongjun <weiyongjun1@...wei.com>
Date: Thu, 2 Jul 2020 17:18:10 +0800
> In certain configurations without power management support, gcc report
> the following warning:
>
> drivers/net/ethernet/micrel/ksz884x.c:7182:12: warning:
> 'pcidev_suspend' defined but not used [-Wunused-function]
> 7182 | static int pcidev_suspend(struct device *dev_d)
> | ^~~~~~~~~~~~~~
>
> Mark pcidev_suspend() as __maybe_unused to make it clear.
>
> Fixes: 64120615d140 ("ksz884x: use generic power management")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
Applied.
Powered by blists - more mailing lists