RE: [PATCH] e1000e: add ifdef to avoid dead code

2020-06-16 Thread Kirsher, Jeffrey T
> -Original Message- > From: Eric Dumazet > On 6/13/20 11:11 PM, Greg Thelen wrote: > > Commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME > > systems") added e1000e_check_me() but it's only called from > > CONFIG_PM_SLEEP protected code. Thus builds without CONFIG_PM_

Re: [PATCH] e1000e: add ifdef to avoid dead code

2020-06-16 Thread Eric Dumazet
On 6/13/20 11:11 PM, Greg Thelen wrote: > Commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME > systems") added e1000e_check_me() but it's only called from > CONFIG_PM_SLEEP protected code. Thus builds without CONFIG_PM_SLEEP > see: > drivers/net/ethernet/intel/e1000e/netde

[PATCH] e1000e: add ifdef to avoid dead code

2020-06-13 Thread Greg Thelen
Commit e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems") added e1000e_check_me() but it's only called from CONFIG_PM_SLEEP protected code. Thus builds without CONFIG_PM_SLEEP see: drivers/net/ethernet/intel/e1000e/netdev.c:137:13: warning: 'e1000e_check_me' defined but n