aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-03 16:45:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-03 16:45:43 -0400
commit9b2e077c42a97fcbdc0dd71edb1fc9d15c74ad29 (patch)
tree20bf301d21f6c3776046acada5070630009ceedb /include/drm/drmP.h
parenta54dfb1a845c38a97686268d8c4086a63d9493aa (diff)
parent10b63956fce7f369cc37fd4d994f09bd5203efe4 (diff)
Merge tag 'uapi-prep-20121002' of git://git.infradead.org/users/dhowells/linux-headers
Pull preparatory patches for user API disintegration from David Howells: "The patches herein prepare for the extraction of the Userspace API bits from the various header files named in the Kbuild files. New subdirectories are created under either include/uapi/ or arch/x/include/uapi/ that correspond to the subdirectory containing that file under include/ or arch/x/include/. The new subdirs under the uapi/ directory are populated with Kbuild files that mostly do nothing at this time. Further patches will disintegrate the headers in each original directory and fill in the Kbuild files as they do it. These patches also: (1) fix up #inclusions of "foo.h" rather than <foo.h>. (2) Remove some redundant #includes from the DRM code. (3) Make the kernel build infrastructure handle Kbuild files both in the old places and the new UAPI place that both specify headers to be exported. (4) Fix some kernel tools that #include kernel headers during their build. I have compile tested this with allyesconfig against x86_64, allmodconfig against i386 and a scattering of additional defconfigs of other arches. Prepared for main script Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com> Acked-by: H. Peter Anvin <hpa@zytor.com>" * tag 'uapi-prep-20121002' of git://git.infradead.org/users/dhowells/linux-headers: UAPI: Plumb the UAPI Kbuilds into the user header installation and checking UAPI: x86: Differentiate the generated UAPI and internal headers UAPI: Remove the objhdr-y export list UAPI: Move linux/version.h UAPI: Set up uapi/asm/Kbuild.asm UAPI: x86: Fix insn_sanity build failure after UAPI split UAPI: x86: Fix the test_get_len tool UAPI: (Scripted) Set up UAPI Kbuild files UAPI: Partition the header include path sets and add uapi/ header directories UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ UAPI: (Scripted) Remove redundant DRM UAPI header #inclusions from drivers/gpu/. UAPI: Refer to the DRM UAPI headers with <...> and from certain headers only
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 9bc5c6a1d52c..54054e41ec38 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -72,7 +72,8 @@
72#include <linux/workqueue.h> 72#include <linux/workqueue.h>
73#include <linux/poll.h> 73#include <linux/poll.h>
74#include <asm/pgalloc.h> 74#include <asm/pgalloc.h>
75#include "drm.h" 75#include <drm/drm.h>
76#include <drm/drm_sarea.h>
76 77
77#include <linux/idr.h> 78#include <linux/idr.h>
78 79
@@ -84,9 +85,9 @@ struct module;
84struct drm_file; 85struct drm_file;
85struct drm_device; 86struct drm_device;
86 87
87#include "drm_os_linux.h" 88#include <drm/drm_os_linux.h>
88#include "drm_hashtab.h" 89#include <drm/drm_hashtab.h>
89#include "drm_mm.h" 90#include <drm/drm_mm.h>
90 91
91#define DRM_UT_CORE 0x01 92#define DRM_UT_CORE 0x01
92#define DRM_UT_DRIVER 0x02 93#define DRM_UT_DRIVER 0x02
@@ -675,7 +676,7 @@ struct drm_gem_object {
675 struct dma_buf_attachment *import_attach; 676 struct dma_buf_attachment *import_attach;
676}; 677};
677 678
678#include "drm_crtc.h" 679#include <drm/drm_crtc.h>
679 680
680/* per-master structure */ 681/* per-master structure */
681struct drm_master { 682struct drm_master {
@@ -1303,7 +1304,7 @@ extern void drm_vm_close_locked(struct drm_device *dev, struct vm_area_struct *v
1303extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); 1304extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait);
1304 1305
1305 /* Memory management support (drm_memory.h) */ 1306 /* Memory management support (drm_memory.h) */
1306#include "drm_memory.h" 1307#include <drm/drm_memory.h>
1307extern void drm_free_agp(DRM_AGP_MEM * handle, int pages); 1308extern void drm_free_agp(DRM_AGP_MEM * handle, int pages);
1308extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start); 1309extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start);
1309extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, 1310extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev,
@@ -1612,7 +1613,7 @@ void drm_gem_vm_open(struct vm_area_struct *vma);
1612void drm_gem_vm_close(struct vm_area_struct *vma); 1613void drm_gem_vm_close(struct vm_area_struct *vma);
1613int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma); 1614int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
1614 1615
1615#include "drm_global.h" 1616#include <drm/drm_global.h>
1616 1617
1617static inline void 1618static inline void
1618drm_gem_object_reference(struct drm_gem_object *obj) 1619drm_gem_object_reference(struct drm_gem_object *obj)
@@ -1721,7 +1722,7 @@ static __inline__ void drm_core_dropmap(struct drm_local_map *map)
1721{ 1722{
1722} 1723}
1723 1724
1724#include "drm_mem_util.h" 1725#include <drm/drm_mem_util.h>
1725 1726
1726extern int drm_fill_in_dev(struct drm_device *dev, 1727extern int drm_fill_in_dev(struct drm_device *dev,
1727 const struct pci_device_id *ent, 1728 const struct pci_device_id *ent,