Skip to content
Commit f2d75b17 authored by Wei Yongjun's avatar Wei Yongjun Committed by Tony Nguyen
Browse files

e1000e: Mark e1000e_pm_prepare() as __maybe_unused



The function e1000e_pm_prepare() may have no callers depending
on configuration, so it must be marked __maybe_unused to avoid
harmless warning:

drivers/net/ethernet/intel/e1000e/netdev.c:6926:12:
 warning: 'e1000e_pm_prepare' defined but not used [-Wunused-function]
 6926 | static int e1000e_pm_prepare(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~

Fixes: ccf8b940 ("e1000e: Leverage direct_complete to speed up s2ram")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 501f2309
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment