lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL3LdT79V+NLJ9Kd8aX+qnmKfJag2rn7Smdteq=kWYeJOLSe3g@mail.gmail.com>
Date:	Thu, 13 Mar 2014 16:01:51 -0700
From:	Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To:	Valdis Kletnieks <Valdis.Kletnieks@...edu>
Cc:	Mika Westerberg <mika.westerberg@...ux.intel.com>,
	"e1000-devel@...ts.sourceforge.net" 
	<e1000-devel@...ts.sourceforge.net>,
	netdev <netdev@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [E1000-devel] next-20140313 - build error in e1000e driver

On Thu, Mar 13, 2014 at 12:32 PM, Valdis Kletnieks
<Valdis.Kletnieks@...edu> wrote:
> My kernel has CONFIG_PM_SLEEP=n, which leads to hilarity...
>
>   CC      drivers/net/ethernet/intel/e1000e/netdev.o
> drivers/net/ethernet/intel/e1000e/netdev.c:7079:13: error: 'e1000e_pm_suspend' undeclared here (not in a function)
>   .suspend = e1000e_pm_suspend,
>              ^
> drivers/net/ethernet/intel/e1000e/netdev.c:7080:13: error: 'e1000e_pm_resume' undeclared here (not in a function)
>   .resume  = e1000e_pm_resume,
>              ^
> make[5]: *** [drivers/net/ethernet/intel/e1000e/netdev.o] Error 1
> make[4]: *** [drivers/net/ethernet/intel/e1000e] Error 2
> make[3]: *** [drivers/net/ethernet/intel] Error 2
> make[2]: *** [drivers/net/ethernet] Error 2
> make[1]: *** [drivers/net] Error 2
> make: *** [drivers] Error 2
>
> Commit 38a529b5d4 claims to fix a related issue, but doesn't seem to do so correctly.
>
> Author: Mika Westerberg <mika.westerberg@...ux.intel.com>
> Date:   Thu Jan 16 14:39:39 2014 +0200
>
>     e1000e: Fix compilation warning when !CONFIG_PM_SLEEP
>
>     Commit 7509963c703b (e1000e: Fix a compile flag mis-match for
>     suspend/resume) moved suspend and resume hooks to be available when
>     CONFIG_PM is set. However, it can be set even if CONFIG_PM_SLEEP is not set
>     causing following warnings to be emitted:
>
>     drivers/net/ethernet/intel/e1000e/netdev.c:6178:12: warning:
>         ‘e1000_suspend’ defined but not used [-Wunused-function]
>
>     drivers/net/ethernet/intel/e1000e/netdev.c:6185:12: warning:
>         ‘e1000_resume’ defined but not used [-Wunused-function]
>

I believe David Ertman fixed this and David Miller's net-next tree
contains the patch that resolved this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ