From: Dave Hansen <[email protected]>
Date: Wed, 12 Jul 2017 14:09:25 -0700

> 
> From: Dave Hansen <[email protected]>
> 
> I'm seeing warnings on kernel configurations where CONFIG_PM is
> disabled.  It happens in 4.12, at least:
> 
> drivers/ethernet/intel/igb/igb_main.c:7988:13: warning: 
> 'igb_deliver_wake_packet' defined but not used [-Wunused-function]
> 
> This is because igb_deliver_wake_packet() is defined outside of
> the #ifdef", but is used only a single time within the #ifdef in
> igb_resume().  Fix it by moving igb_deliver_wake_packet() next to
> igb_resume() inside the #ifdef.
> 
> The diff ends up looking a bit funky here.  It *looks* like
> igb_suspend() is getting moved, but that's an artifact of how
> 'diff' sees the changes.
> 
> Cc: Jeff Kirsher <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Dave Hansen <[email protected]>

I'll let Jeff queue this up into his tree.

Reply via email to