[RFC/RFT 41/42] backports: add vgaarb.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

This is needed as old versions of it didn't properly
declare struct pci_dev.

Additionally, not all versions included video/vga.h
which causes issues as that pulls in some required
definitions.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 backport/backport-include/linux/vgaarb.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 backport/backport-include/linux/vgaarb.h

diff --git a/backport/backport-include/linux/vgaarb.h b/backport/backport-include/linux/vgaarb.h
new file mode 100644
index 0000000..92f5a72
--- /dev/null
+++ b/backport/backport-include/linux/vgaarb.h
@@ -0,0 +1,10 @@
+#ifndef __BACKPORT_LINUX_VGAARB_H
+#define __BACKPORT_LINUX_VGAARB_H
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
+struct pci_dev;
+#endif
+#include <video/vga.h>
+#include_next <linux/vgaarb.h>
+
+#endif /* __BACKPORT_LINUX_VGAARB_H */
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux