OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa11608
)
Older kernels don't have kobject_uevent_env(), so punt
author
Alan Hourihane
<alanh@tungstengraphics.com>
Wed, 9 Apr 2008 21:07:40 +0000
(22:07 +0100)
committer
Alan Hourihane
<alanh@tungstengraphics.com>
Wed, 9 Apr 2008 21:07:40 +0000
(22:07 +0100)
the event for these older kernels.
linux-core/drm_compat.h
patch
|
blob
|
history
diff --git
a/linux-core/drm_compat.h
b/linux-core/drm_compat.h
index
03838a1
..
046c712
100644
(file)
--- a/
linux-core/drm_compat.h
+++ b/
linux-core/drm_compat.h
@@
-339,6
+339,15
@@
extern unsigned long round_jiffies_relative(unsigned long j);
extern struct pci_dev * pci_get_bus_and_slot(unsigned int bus, unsigned int devfn);
#endif
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
+static inline int kobject_uevent_env(struct kobject *kobj,
+ enum kobject_action action,
+ char *envp[])
+{
+ return 0;
+}
+#endif
+
#ifndef PM_EVENT_PRETHAW
#define PM_EVENT_PRETHAW 3
#endif