Skip to content

Instantly share code, notes, and snippets.

@angelbladex
Forked from guilespi/pm.h diff update
Created June 6, 2016 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelbladex/2ec9639d1888f7832abfd1f828957670 to your computer and use it in GitHub Desktop.
Save angelbladex/2ec9639d1888f7832abfd1f828957670 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment