Re: [PATCH net-next] igb: Fix -Wunused-const-variable warning

From: patchwork-bot+netdevbpf
Date: Tue Jun 01 2021 - 20:10:27 EST


Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Tue, 1 Jun 2021 22:02:38 +0800 you wrote:
> If CONFIG_IGB_HWMON is n, gcc warns:
>
> drivers/net/ethernet/intel/igb/e1000_82575.c:2765:17:
> warning: ‘e1000_emc_therm_limit’ defined but not used [-Wunused-const-variable=]
> static const u8 e1000_emc_therm_limit[4] = {
> ^~~~~~~~~~~~~~~~~~~~~
> drivers/net/ethernet/intel/igb/e1000_82575.c:2759:17:
> warning: ‘e1000_emc_temp_data’ defined but not used [-Wunused-const-variable=]
> static const u8 e1000_emc_temp_data[4] = {
> ^~~~~~~~~~~~~~~~~~~
>
> [...]

Here is the summary with links:
- [net-next] igb: Fix -Wunused-const-variable warning
https://git.kernel.org/netdev/net-next/c/0a206f9d9e23

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html