]> git.openfabrics.org - ~emulex/compat.git/commit
compat: define PM_EVENT_SLEEP only if not defined
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 25 Aug 2010 22:27:51 +0000 (15:27 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 25 Aug 2010 22:44:20 +0000 (15:44 -0700)
commit6561208a3d30b3f76308892ccc8333eb72496a11
tree547101cdfeb7309e8fec6ec966bc11ec37fbace0
parent4715fbe76040b652ad32cd133fbc6f6ceb4975c1
compat: define PM_EVENT_SLEEP only if not defined

This fixes a compilation warning on Ubuntu's 2.6.24
kernel which added the PM_EVENT_SLEEP even though upstream
Linux 2.6.24.7 (the last 2.6.24) does not have it. Its
a trivial change and I'm willing to support it to avoid
compilation.

Tested against /lib/modules/2.6.24-27-lpia/build

These kernel headers can be foudn here:

http://kernel.org/pub/linux/kernel/people/mcgrof/ubuntu/debs/kernel-headers/

Install with dpkg -i --force-architecture *.deb

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.25.h