[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200630.181812.668194154450687064.davem@davemloft.net>
Date: Tue, 30 Jun 2020 18:18:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: natechancellor@...il.com
Cc: kuba@...nel.org, vaibhavgupta40@...il.com, pcnet32@...ntier.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] amd8111e: Mark PM functions as
__maybe_unused
From: Nathan Chancellor <natechancellor@...il.com>
Date: Tue, 30 Jun 2020 14:00:33 -0700
> In certain configurations without power management support, the
> following warnings happen:
>
> ../drivers/net/ethernet/amd/amd8111e.c:1623:12: warning:
> 'amd8111e_resume' defined but not used [-Wunused-function]
> 1623 | static int amd8111e_resume(struct device *dev_d)
> | ^~~~~~~~~~~~~~~
> ../drivers/net/ethernet/amd/amd8111e.c:1584:12: warning:
> 'amd8111e_suspend' defined but not used [-Wunused-function]
> 1584 | static int amd8111e_suspend(struct device *dev_d)
> | ^~~~~~~~~~~~~~~~
>
> Mark these functions as __maybe_unused to make it clear to the compiler
> that this is going to happen based on the configuration, which is the
> standard for these types of functions.
>
> Fixes: 2caf751fe080 ("amd8111e: Convert to generic power management")
> Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
Applied.
Powered by blists - more mailing lists