Skip to content

Instantly share code, notes, and snippets.

@badukaire
Forked from guilespi/pm.h diff update
Created July 26, 2016 13:39
Show Gist options
  • Save badukaire/6b2f761644d66fad23045e19c93d4e3d to your computer and use it in GitHub Desktop.
Save badukaire/6b2f761644d66fad23045e19c93d4e3d to your computer and use it in GitHub Desktop.
Compile latest igb driver on debian squeeze 2.6.32-5-amd64
#When presented with failure
igb-3.4.8/src/igb_main.c:193: error: implicit declaration of function SET_RUNTIME_PM_OPS
#Add the following macro to
#/usr/src/linux-headers-2.6.32-5-common/include/linux/pm.h
#ifdef CONFIG_PM_RUNTIME
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \
.runtime_suspend = suspend_fn, \
.runtime_resume = resume_fn, \
.runtime_idle = idle_fn,
#else
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
#endif
@badukaire
Copy link
Author

this was tested with igb-5.3.5.3

update apt source file to point to the debian 6 archive (squeeze) :

# cat /etc/apt/sources.list
deb http://archive.debian.org/debian/ squeeze main non-free contrib
deb http://archive.debian.org/debian-security/ squeeze/updates main non-free con
#

then install packages :

# apt-get update
# apt-get install kernel-package
# apt-cache search linux-headers
# ## check with uname that it is the same kernel version:
# uname -a
# ## in our case :
# apt-get install linux-headers-2.6.32-5-686
#

now it is possible to compile following instructions on the intel README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment