aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kbuild/makefiles.txt8
-rw-r--r--Makefile43
-rw-r--r--arch/alpha/include/uapi/asm/Kbuild3
-rw-r--r--arch/arm/include/asm/page.h2
-rw-r--r--arch/arm/include/asm/pgtable.h2
-rw-r--r--arch/arm/include/asm/vfpmacros.h2
-rw-r--r--arch/arm/include/uapi/asm/Kbuild3
-rw-r--r--arch/arm64/include/uapi/asm/Kbuild3
-rw-r--r--arch/avr32/include/uapi/asm/Kbuild3
-rw-r--r--arch/blackfin/include/uapi/asm/Kbuild3
-rw-r--r--arch/c6x/include/uapi/asm/Kbuild3
-rw-r--r--arch/cris/Makefile4
-rw-r--r--arch/cris/include/arch-v10/arch/sv_addr_ag.h2
-rw-r--r--arch/cris/include/arch-v10/arch/svinto.h2
-rw-r--r--arch/cris/include/arch-v32/arch/dma.h2
-rw-r--r--arch/cris/include/arch-v32/arch/hwregs/dma.h2
-rw-r--r--arch/cris/include/uapi/arch-v10/arch/Kbuild1
-rw-r--r--arch/cris/include/uapi/arch-v32/arch/Kbuild1
-rw-r--r--arch/cris/include/uapi/asm/Kbuild5
-rw-r--r--arch/frv/include/uapi/asm/Kbuild3
-rw-r--r--arch/h8300/include/uapi/asm/Kbuild3
-rw-r--r--arch/hexagon/include/uapi/asm/Kbuild3
-rw-r--r--arch/ia64/include/uapi/asm/Kbuild3
-rw-r--r--arch/m32r/include/uapi/asm/Kbuild3
-rw-r--r--arch/m68k/include/asm/cacheflush.h4
-rw-r--r--arch/m68k/include/asm/io.h4
-rw-r--r--arch/m68k/include/asm/m68360.h8
-rw-r--r--arch/m68k/include/asm/m68360_enet.h2
-rw-r--r--arch/m68k/include/asm/page.h4
-rw-r--r--arch/m68k/include/asm/pgtable.h4
-rw-r--r--arch/m68k/include/asm/q40_master.h2
-rw-r--r--arch/m68k/include/asm/uaccess.h4
-rw-r--r--arch/m68k/include/uapi/asm/Kbuild3
-rw-r--r--arch/microblaze/include/asm/mmu_context.h2
-rw-r--r--arch/microblaze/include/uapi/asm/Kbuild3
-rw-r--r--arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h2
-rw-r--r--arch/mips/include/asm/mach-pnx833x/gpio.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-asm.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-cmd-queue.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-fpa.h4
-rw-r--r--arch/mips/include/asm/octeon/cvmx-helper-board.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-helper.h20
-rw-r--r--arch/mips/include/asm/octeon/cvmx-mdio.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-pip.h6
-rw-r--r--arch/mips/include/asm/octeon/cvmx-pko.h8
-rw-r--r--arch/mips/include/asm/octeon/cvmx-pow.h4
-rw-r--r--arch/mips/include/asm/octeon/cvmx-spi.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-spinlock.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx-wqe.h2
-rw-r--r--arch/mips/include/asm/octeon/cvmx.h36
-rw-r--r--arch/mips/include/asm/octeon/octeon-model.h2
-rw-r--r--arch/mips/include/asm/octeon/octeon.h2
-rw-r--r--arch/mips/include/asm/sibyte/bcm1480_int.h2
-rw-r--r--arch/mips/include/asm/sibyte/bcm1480_l2c.h2
-rw-r--r--arch/mips/include/asm/sibyte/bcm1480_mc.h2
-rw-r--r--arch/mips/include/asm/sibyte/bcm1480_regs.h4
-rw-r--r--arch/mips/include/asm/sibyte/bcm1480_scd.h4
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_dma.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_genbus.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_int.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_l2c.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_ldt.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_mac.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_mc.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_regs.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_scd.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_smbus.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_syncser.h2
-rw-r--r--arch/mips/include/asm/sibyte/sb1250_uart.h2
-rw-r--r--arch/mips/include/uapi/asm/Kbuild3
-rw-r--r--arch/mn10300/include/uapi/asm/Kbuild3
-rw-r--r--arch/openrisc/include/uapi/asm/Kbuild3
-rw-r--r--arch/parisc/include/uapi/asm/Kbuild3
-rw-r--r--arch/powerpc/include/asm/ps3.h2
-rw-r--r--arch/powerpc/include/asm/ucc_fast.h2
-rw-r--r--arch/powerpc/include/asm/ucc_slow.h2
-rw-r--r--arch/powerpc/include/uapi/asm/Kbuild3
-rw-r--r--arch/s390/include/uapi/asm/Kbuild3
-rw-r--r--arch/score/include/uapi/asm/Kbuild3
-rw-r--r--arch/sh/include/asm/bl_bit.h4
-rw-r--r--arch/sh/include/asm/cache_insns.h4
-rw-r--r--arch/sh/include/asm/checksum.h2
-rw-r--r--arch/sh/include/asm/mmu_context.h4
-rw-r--r--arch/sh/include/asm/posix_types.h8
-rw-r--r--arch/sh/include/asm/processor.h4
-rw-r--r--arch/sh/include/asm/ptrace.h4
-rw-r--r--arch/sh/include/asm/string.h4
-rw-r--r--arch/sh/include/asm/switch_to.h4
-rw-r--r--arch/sh/include/asm/syscall.h4
-rw-r--r--arch/sh/include/asm/syscalls.h4
-rw-r--r--arch/sh/include/asm/tlb.h2
-rw-r--r--arch/sh/include/asm/traps.h4
-rw-r--r--arch/sh/include/asm/uaccess.h4
-rw-r--r--arch/sh/include/asm/unistd.h8
-rw-r--r--arch/sh/include/mach-ecovec24/mach/romimage.h2
-rw-r--r--arch/sh/include/mach-kfr2r09/mach/romimage.h2
-rw-r--r--arch/sh/include/uapi/asm/Kbuild3
-rw-r--r--arch/sparc/include/uapi/asm/Kbuild5
-rw-r--r--arch/tile/include/gxio/dma_queue.h2
-rw-r--r--arch/tile/include/gxio/mpipe.h4
-rw-r--r--arch/tile/include/gxio/trio.h4
-rw-r--r--arch/tile/include/gxio/usb_host.h2
-rw-r--r--arch/tile/include/hv/iorpc.h2
-rw-r--r--arch/tile/include/uapi/arch/Kbuild1
-rw-r--r--arch/tile/include/uapi/asm/Kbuild3
-rw-r--r--arch/um/Makefile4
-rw-r--r--arch/unicore32/include/mach/PKUnity.h36
-rw-r--r--arch/unicore32/include/mach/hardware.h2
-rw-r--r--arch/unicore32/include/mach/uncompress.h4
-rw-r--r--arch/unicore32/include/uapi/asm/Kbuild3
-rw-r--r--arch/x86/boot/Makefile4
-rw-r--r--arch/x86/boot/mkcpustr.c2
-rw-r--r--arch/x86/include/asm/Kbuild4
-rw-r--r--arch/x86/include/asm/atomic.h4
-rw-r--r--arch/x86/include/asm/calling.h2
-rw-r--r--arch/x86/include/asm/checksum.h4
-rw-r--r--arch/x86/include/asm/cmpxchg.h4
-rw-r--r--arch/x86/include/asm/cpufeature.h2
-rw-r--r--arch/x86/include/asm/mmzone.h4
-rw-r--r--arch/x86/include/asm/mutex.h4
-rw-r--r--arch/x86/include/asm/numa.h4
-rw-r--r--arch/x86/include/asm/pci.h2
-rw-r--r--arch/x86/include/asm/pgtable.h4
-rw-r--r--arch/x86/include/asm/pgtable_types.h4
-rw-r--r--arch/x86/include/asm/posix_types.h10
-rw-r--r--arch/x86/include/asm/seccomp.h4
-rw-r--r--arch/x86/include/asm/string.h4
-rw-r--r--arch/x86/include/asm/suspend.h4
-rw-r--r--arch/x86/include/asm/uaccess.h4
-rw-r--r--arch/x86/include/asm/user.h4
-rw-r--r--arch/x86/include/asm/xen/interface.h4
-rw-r--r--arch/x86/include/asm/xor.h4
-rw-r--r--arch/x86/include/asm/xor_32.h2
-rw-r--r--arch/x86/include/asm/xor_64.h2
-rw-r--r--arch/x86/include/uapi/asm/Kbuild6
-rw-r--r--arch/x86/kernel/cpu/mkcapflags.pl5
-rw-r--r--arch/x86/lib/insn.c4
-rw-r--r--arch/x86/syscalls/Makefile17
-rw-r--r--arch/x86/tools/Makefile2
-rw-r--r--arch/xtensa/include/uapi/asm/Kbuild3
-rw-r--r--drivers/gpu/drm/ast/ast_drv.c5
-rw-r--r--drivers/gpu/drm/ast/ast_drv.h12
-rw-r--r--drivers/gpu/drm/ast/ast_fb.c7
-rw-r--r--drivers/gpu/drm/ast/ast_main.c6
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c6
-rw-r--r--drivers/gpu/drm/ast/ast_post.c2
-rw-r--r--drivers/gpu/drm/ast/ast_ttm.c2
-rw-r--r--drivers/gpu/drm/ati_pcigart.c2
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_drv.c3
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_drv.h10
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_fbdev.c5
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_main.c5
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_mode.c5
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_ttm.c2
-rw-r--r--drivers/gpu/drm/drm_agpsupport.c2
-rw-r--r--drivers/gpu/drm/drm_auth.c2
-rw-r--r--drivers/gpu/drm/drm_buffer.c2
-rw-r--r--drivers/gpu/drm/drm_bufs.c2
-rw-r--r--drivers/gpu/drm/drm_cache.c2
-rw-r--r--drivers/gpu/drm/drm_context.c2
-rw-r--r--drivers/gpu/drm/drm_crtc.c9
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c12
-rw-r--r--drivers/gpu/drm/drm_debugfs.c2
-rw-r--r--drivers/gpu/drm/drm_dma.c2
-rw-r--r--drivers/gpu/drm/drm_dp_i2c_helper.c4
-rw-r--r--drivers/gpu/drm/drm_drv.c4
-rw-r--r--drivers/gpu/drm/drm_edid.c4
-rw-r--r--drivers/gpu/drm/drm_edid_load.c8
-rw-r--r--drivers/gpu/drm/drm_edid_modes.h4
-rw-r--r--drivers/gpu/drm/drm_encoder_slave.c2
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c8
-rw-r--r--drivers/gpu/drm/drm_fops.c2
-rw-r--r--drivers/gpu/drm/drm_gem.c2
-rw-r--r--drivers/gpu/drm/drm_global.c2
-rw-r--r--drivers/gpu/drm/drm_hashtab.c4
-rw-r--r--drivers/gpu/drm/drm_info.c2
-rw-r--r--drivers/gpu/drm/drm_ioc32.c4
-rw-r--r--drivers/gpu/drm/drm_ioctl.c8
-rw-r--r--drivers/gpu/drm/drm_irq.c2
-rw-r--r--drivers/gpu/drm/drm_lock.c2
-rw-r--r--drivers/gpu/drm/drm_memory.c2
-rw-r--r--drivers/gpu/drm/drm_mm.c4
-rw-r--r--drivers/gpu/drm/drm_modes.c5
-rw-r--r--drivers/gpu/drm/drm_pci.c2
-rw-r--r--drivers/gpu/drm/drm_platform.c2
-rw-r--r--drivers/gpu/drm/drm_prime.c2
-rw-r--r--drivers/gpu/drm/drm_proc.c2
-rw-r--r--drivers/gpu/drm/drm_scatter.c2
-rw-r--r--drivers/gpu/drm/drm_stub.c4
-rw-r--r--drivers/gpu/drm/drm_sysfs.c6
-rw-r--r--drivers/gpu/drm/drm_trace_points.c2
-rw-r--r--drivers/gpu/drm/drm_usb.c2
-rw-r--r--drivers/gpu/drm/drm_vm.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_ddc.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_buf.c5
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_connector.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_core.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_dmabuf.c5
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c5
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.h1
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_encoder.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fb.c8
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fbdev.c8
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_g2d.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gem.c3
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_hdmi.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_plane.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c6
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c6
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmiphy.c2
-rw-r--r--drivers/gpu/drm/exynos/exynos_mixer.c2
-rw-r--r--drivers/gpu/drm/gma500/cdv_device.c2
-rw-r--r--drivers/gpu/drm/gma500/gem.c2
-rw-r--r--drivers/gpu/drm/gma500/intel_bios.c2
-rw-r--r--drivers/gpu/drm/gma500/intel_gmbus.c5
-rw-r--r--drivers/gpu/drm/gma500/mid_bios.c2
-rw-r--r--drivers/gpu/drm/gma500/oaktrail_device.c2
-rw-r--r--drivers/gpu/drm/gma500/psb_device.c2
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.c2
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.h4
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_sdvo.c9
-rw-r--r--drivers/gpu/drm/i2c/ch7006_priv.h8
-rw-r--r--drivers/gpu/drm/i2c/sil164_drv.c8
-rw-r--r--drivers/gpu/drm/i810/i810_dma.c5
-rw-r--r--drivers/gpu/drm/i810/i810_drv.c7
-rw-r--r--drivers/gpu/drm/i915/dvo.h5
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c5
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c9
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c7
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_context.c4
-rw-r--r--drivers/gpu/drm/i915/i915_gem_debug.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_dmabuf.c2
-rw-r--r--drivers/gpu/drm/i915/i915_gem_evict.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_execbuffer.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_stolen.c5
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c9
-rw-r--r--drivers/gpu/drm/i915/i915_ioc32.c5
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c5
-rw-r--r--drivers/gpu/drm/i915/i915_suspend.c5
-rw-r--r--drivers/gpu/drm/i915/intel_acpi.c2
-rw-r--r--drivers/gpu/drm/i915/intel_bios.c5
-rw-r--r--drivers/gpu/drm/i915/intel_bios.h2
-rw-r--r--drivers/gpu/drm/i915/intel_crt.c11
-rw-r--r--drivers/gpu/drm/i915/intel_display.c8
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c13
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h8
-rw-r--r--drivers/gpu/drm/i915/intel_dvo.c7
-rw-r--r--drivers/gpu/drm/i915/intel_fb.c9
-rw-r--r--drivers/gpu/drm/i915/intel_hdmi.c9
-rw-r--r--drivers/gpu/drm/i915/intel_i2c.c5
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c9
-rw-r--r--drivers/gpu/drm/i915/intel_modes.c4
-rw-r--r--drivers/gpu/drm/i915/intel_opregion.c4
-rw-r--r--drivers/gpu/drm/i915/intel_overlay.c5
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c5
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c9
-rw-r--r--drivers/gpu/drm/i915/intel_sprite.c8
-rw-r--r--drivers/gpu/drm/i915/intel_tv.c9
-rw-r--r--drivers/gpu/drm/mga/mga_dma.c6
-rw-r--r--drivers/gpu/drm/mga/mga_drv.c7
-rw-r--r--drivers/gpu/drm/mga/mga_ioc32.c5
-rw-r--r--drivers/gpu/drm/mga/mga_irq.c5
-rw-r--r--drivers/gpu/drm/mga/mga_state.c5
-rw-r--r--drivers/gpu/drm/mga/mga_warp.c5
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_drv.c5
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_drv.h12
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_fb.c5
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_i2c.c3
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_main.c5
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_mode.c5
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_ttm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_abi16.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_acpi.c8
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_backlight.c4
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bios.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c6
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_calc.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_channel.c5
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c6
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_debugfs.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_display.c4
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_dma.c3
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_dp.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.c7
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h12
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_encoder.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_fbcon.c11
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_fbcon.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_fence.c3
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c5
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gpio.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gpuobj.c5
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_hdmi.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_hw.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_hw.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_i2c.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_i2c.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ioc32.c3
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_irq.c5
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mem.c4
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mxm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_notifier.c3
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_perf.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_prime.c5
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ramht.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_sgdma.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c8
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_temp.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ttm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vm.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_volt.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv04_crtc.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv04_cursor.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv04_dac.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv04_dfp.c6
-rw-r--r--drivers/gpu/drm/nouveau/nv04_display.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fbcon.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fence.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv04_graph.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv04_instmem.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv04_mc.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv04_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv04_software.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv04_timer.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv04_tv.c6
-rw-r--r--drivers/gpu/drm/nouveau/nv10_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv10_fence.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv10_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv10_gpio.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv10_graph.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv17_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv17_tv.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv17_tv_modes.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv20_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv20_graph.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv30_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv31_mpeg.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv40_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv40_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv40_graph.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv40_grctx.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv40_mc.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv40_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_calc.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv50_cursor.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_dac.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.h3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_evo.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fbcon.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_gpio.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_graph.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_grctx.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_instmem.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_mc.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv50_mpeg.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_software.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_sor.c4
-rw-r--r--drivers/gpu/drm/nouveau/nv50_vm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv50_vram.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv84_bsp.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv84_crypt.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv84_fence.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv84_fifo.c3
-rw-r--r--drivers/gpu/drm/nouveau/nv84_vp.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv98_crypt.c2
-rw-r--r--drivers/gpu/drm/nouveau/nv98_ppp.c2
-rw-r--r--drivers/gpu/drm/nouveau/nva3_copy.c2
-rw-r--r--drivers/gpu/drm/nouveau/nva3_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_copy.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_fb.c5
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_fbcon.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_fence.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_fifo.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_graph.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_grctx.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_instmem.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_pm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_software.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_vm.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_vram.c2
-rw-r--r--drivers/gpu/drm/nouveau/nvd0_display.c4
-rw-r--r--drivers/gpu/drm/nouveau/nve0_fifo.c2
-rw-r--r--drivers/gpu/drm/nouveau/nve0_graph.c2
-rw-r--r--drivers/gpu/drm/nouveau/nve0_grctx.c2
-rw-r--r--drivers/gpu/drm/r128/r128_cce.c5
-rw-r--r--drivers/gpu/drm/r128/r128_drv.c7
-rw-r--r--drivers/gpu/drm/r128/r128_ioc32.c5
-rw-r--r--drivers/gpu/drm/r128/r128_irq.c5
-rw-r--r--drivers/gpu/drm/r128/r128_state.c5
-rw-r--r--drivers/gpu/drm/radeon/atom.h2
-rw-r--r--drivers/gpu/drm/radeon/atombios_dp.c6
-rw-r--r--drivers/gpu/drm/radeon/atombios_encoders.c6
-rw-r--r--drivers/gpu/drm/radeon/atombios_i2c.c4
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c4
-rw-r--r--drivers/gpu/drm/radeon/evergreen_blit_kms.c5
-rw-r--r--drivers/gpu/drm/radeon/evergreen_cs.c2
-rw-r--r--drivers/gpu/drm/radeon/evergreen_hdmi.c4
-rw-r--r--drivers/gpu/drm/radeon/ni.c4
-rw-r--r--drivers/gpu/drm/radeon/r100.c5
-rw-r--r--drivers/gpu/drm/radeon/r200.c5
-rw-r--r--drivers/gpu/drm/radeon/r300.c2
-rw-r--r--drivers/gpu/drm/radeon/r300_cmdbuf.c7
-rw-r--r--drivers/gpu/drm/radeon/r420.c2
-rw-r--r--drivers/gpu/drm/radeon/r520.c2
-rw-r--r--drivers/gpu/drm/radeon/r600.c4
-rw-r--r--drivers/gpu/drm/radeon/r600_audio.c2
-rw-r--r--drivers/gpu/drm/radeon/r600_blit.c5
-rw-r--r--drivers/gpu/drm/radeon/r600_blit_kms.c5
-rw-r--r--drivers/gpu/drm/radeon/r600_cp.c5
-rw-r--r--drivers/gpu/drm/radeon/r600_cs.c2
-rw-r--r--drivers/gpu/drm/radeon/r600_hdmi.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_acpi.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_agp.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_bios.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_clocks.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_combios.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c10
-rw-r--r--drivers/gpu/drm/radeon/radeon_cp.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_cs.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_cursor.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c8
-rw-r--r--drivers/gpu/drm/radeon/radeon_drv.c7
-rw-r--r--drivers/gpu/drm/radeon/radeon_encoders.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_fb.c11
-rw-r--r--drivers/gpu/drm/radeon/radeon_fence.c3
-rw-r--r--drivers/gpu/drm/radeon/radeon_gart.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_gem.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_i2c.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_ioc32.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_irq.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_irq_kms.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_kms.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_encoders.c6
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_tv.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_mem.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_mode.h11
-rw-r--r--drivers/gpu/drm/radeon/radeon_object.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_prime.c5
-rw-r--r--drivers/gpu/drm/radeon/radeon_ring.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_sa.c3
-rw-r--r--drivers/gpu/drm/radeon/radeon_semaphore.c3
-rw-r--r--drivers/gpu/drm/radeon/radeon_state.c8
-rw-r--r--drivers/gpu/drm/radeon/radeon_trace_points.c2
-rw-r--r--drivers/gpu/drm/radeon/rs600.c2
-rw-r--r--drivers/gpu/drm/radeon/rs690.c2
-rw-r--r--drivers/gpu/drm/radeon/rv515.c2
-rw-r--r--drivers/gpu/drm/radeon/rv770.c4
-rw-r--r--drivers/gpu/drm/radeon/si.c4
-rw-r--r--drivers/gpu/drm/savage/savage_bci.c4
-rw-r--r--drivers/gpu/drm/savage/savage_drv.c6
-rw-r--r--drivers/gpu/drm/savage/savage_state.c4
-rw-r--r--drivers/gpu/drm/sis/sis_drv.c6
-rw-r--r--drivers/gpu/drm/sis/sis_drv.h2
-rw-r--r--drivers/gpu/drm/sis/sis_mm.c4
-rw-r--r--drivers/gpu/drm/tdfx/tdfx_drv.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_agp_backend.c8
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo.c6
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_manager.c8
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_util.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_execbuf_util.c6
-rw-r--r--drivers/gpu/drm/ttm/ttm_lock.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_memory.c6
-rw-r--r--drivers/gpu/drm/ttm/ttm_module.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_object.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_page_alloc.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_page_alloc_dma.c4
-rw-r--r--drivers/gpu/drm/ttm/ttm_tt.c12
-rw-r--r--drivers/gpu/drm/udl/udl_connector.c8
-rw-r--r--drivers/gpu/drm/udl/udl_drv.c4
-rw-r--r--drivers/gpu/drm/udl/udl_encoder.c6
-rw-r--r--drivers/gpu/drm/udl/udl_fb.c9
-rw-r--r--drivers/gpu/drm/udl/udl_gem.c2
-rw-r--r--drivers/gpu/drm/udl/udl_main.c2
-rw-r--r--drivers/gpu/drm/udl/udl_modeset.c6
-rw-r--r--drivers/gpu/drm/udl/udl_transfer.c2
-rw-r--r--drivers/gpu/drm/via/via_dma.c5
-rw-r--r--drivers/gpu/drm/via/via_dmablit.c4
-rw-r--r--drivers/gpu/drm/via/via_drv.c6
-rw-r--r--drivers/gpu/drm/via/via_drv.h2
-rw-r--r--drivers/gpu/drm/via/via_irq.c5
-rw-r--r--drivers/gpu/drm/via/via_map.c4
-rw-r--r--drivers/gpu/drm/via/via_mm.c4
-rw-r--r--drivers/gpu/drm/via/via_verifier.c5
-rw-r--r--drivers/gpu/drm/via/via_video.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c6
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c10
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.h18
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fb.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fence.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c6
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_irq.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.h4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c4
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c8
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c2
-rw-r--r--include/acpi/acpi.h18
-rw-r--r--include/acpi/acpiosxf.h4
-rw-r--r--include/acpi/acpixf.h6
-rw-r--r--include/acpi/platform/acenv.h2
-rw-r--r--include/acpi/platform/aclinux.h2
-rw-r--r--include/asm-generic/Kbuild.asm46
-rw-r--r--include/drm/drm.h2
-rw-r--r--include/drm/drmP.h17
-rw-r--r--include/drm/drm_buffer.h2
-rw-r--r--include/drm/drm_crtc.h1
-rw-r--r--include/drm/drm_encoder_slave.h4
-rw-r--r--include/drm/drm_memory.h2
-rw-r--r--include/drm/drm_sarea.h2
-rw-r--r--include/drm/exynos_drm.h2
-rw-r--r--include/drm/i915_drm.h2
-rw-r--r--include/drm/mga_drm.h2
-rw-r--r--include/drm/radeon_drm.h2
-rw-r--r--include/drm/ttm/ttm_bo_api.h2
-rw-r--r--include/drm/ttm/ttm_bo_driver.h16
-rw-r--r--include/drm/ttm/ttm_execbuf_util.h2
-rw-r--r--include/drm/ttm/ttm_lock.h2
-rw-r--r--include/drm/ttm/ttm_object.h2
-rw-r--r--include/drm/ttm/ttm_page_alloc.h4
-rw-r--r--include/drm/via_drm.h2
-rw-r--r--include/linux/Kbuild2
-rw-r--r--include/linux/bcma/bcma.h2
-rw-r--r--include/linux/ceph/ceph_fs.h4
-rw-r--r--include/linux/ceph/debugfs.h4
-rw-r--r--include/linux/ceph/decode.h2
-rw-r--r--include/linux/ceph/libceph.h14
-rw-r--r--include/linux/ceph/mdsmap.h2
-rw-r--r--include/linux/ceph/messenger.h4
-rw-r--r--include/linux/ceph/mon_client.h2
-rw-r--r--include/linux/ceph/msgpool.h2
-rw-r--r--include/linux/ceph/osdmap.h4
-rw-r--r--include/linux/ceph/rados.h2
-rw-r--r--include/linux/ceph/types.h6
-rw-r--r--include/linux/crush/mapper.h2
-rw-r--r--include/linux/drbd_tag_magic.h8
-rw-r--r--include/linux/libfdt.h4
-rw-r--r--include/linux/netfilter/nf_conntrack_h323_asn1.h2
-rw-r--r--include/linux/pinctrl/consumer.h2
-rw-r--r--include/linux/pinctrl/machine.h2
-rw-r--r--include/linux/pinctrl/pinctrl.h2
-rw-r--r--include/linux/pinctrl/pinmux.h2
-rw-r--r--include/scsi/osd_attributes.h2
-rw-r--r--include/scsi/osd_initiator.h4
-rw-r--r--include/scsi/osd_sec.h4
-rw-r--r--include/sound/ac97_codec.h6
-rw-r--r--include/sound/ad1816a.h6
-rw-r--r--include/sound/ak4531_codec.h4
-rw-r--r--include/sound/emu10k1_synth.h4
-rw-r--r--include/sound/emu8000.h4
-rw-r--r--include/sound/emux_legacy.h2
-rw-r--r--include/sound/emux_synth.h14
-rw-r--r--include/sound/es1688.h4
-rw-r--r--include/sound/gus.h10
-rw-r--r--include/sound/mpu401.h2
-rw-r--r--include/sound/pcm.h2
-rw-r--r--include/sound/rawmidi.h2
-rw-r--r--include/sound/sb.h4
-rw-r--r--include/sound/sb16_csp.h4
-rw-r--r--include/sound/seq_kernel.h2
-rw-r--r--include/sound/seq_midi_emul.h2
-rw-r--r--include/sound/seq_midi_event.h2
-rw-r--r--include/sound/seq_oss.h4
-rw-r--r--include/sound/seq_virmidi.h4
-rw-r--r--include/sound/snd_wavefront.h8
-rw-r--r--include/sound/soundfont.h4
-rw-r--r--include/sound/tea6330t.h2
-rw-r--r--include/sound/wss.h8
-rw-r--r--include/trace/events/compaction.h2
-rw-r--r--include/trace/events/kmem.h2
-rw-r--r--include/trace/events/vmscan.h2
-rw-r--r--include/uapi/Kbuild14
-rw-r--r--include/uapi/asm-generic/Kbuild1
-rw-r--r--include/uapi/asm-generic/Kbuild.asm49
-rw-r--r--include/uapi/drm/Kbuild1
-rw-r--r--include/uapi/linux/Kbuild24
-rw-r--r--include/uapi/linux/byteorder/Kbuild1
-rw-r--r--include/uapi/linux/caif/Kbuild1
-rw-r--r--include/uapi/linux/can/Kbuild1
-rw-r--r--include/uapi/linux/dvb/Kbuild1
-rw-r--r--include/uapi/linux/hdlc/Kbuild1
-rw-r--r--include/uapi/linux/hsi/Kbuild1
-rw-r--r--include/uapi/linux/isdn/Kbuild1
-rw-r--r--include/uapi/linux/mmc/Kbuild1
-rw-r--r--include/uapi/linux/netfilter/Kbuild2
-rw-r--r--include/uapi/linux/netfilter/ipset/Kbuild1
-rw-r--r--include/uapi/linux/netfilter_arp/Kbuild1
-rw-r--r--include/uapi/linux/netfilter_bridge/Kbuild1
-rw-r--r--include/uapi/linux/netfilter_ipv4/Kbuild1
-rw-r--r--include/uapi/linux/netfilter_ipv6/Kbuild1
-rw-r--r--include/uapi/linux/nfsd/Kbuild1
-rw-r--r--include/uapi/linux/raid/Kbuild1
-rw-r--r--include/uapi/linux/spi/Kbuild1
-rw-r--r--include/uapi/linux/sunrpc/Kbuild1
-rw-r--r--include/uapi/linux/tc_act/Kbuild1
-rw-r--r--include/uapi/linux/tc_ematch/Kbuild1
-rw-r--r--include/uapi/linux/usb/Kbuild1
-rw-r--r--include/uapi/linux/wimax/Kbuild1
-rw-r--r--include/uapi/mtd/Kbuild1
-rw-r--r--include/uapi/rdma/Kbuild1
-rw-r--r--include/uapi/scsi/Kbuild2
-rw-r--r--include/uapi/scsi/fc/Kbuild1
-rw-r--r--include/uapi/sound/Kbuild1
-rw-r--r--include/uapi/video/Kbuild1
-rw-r--r--include/uapi/xen/Kbuild1
-rw-r--r--include/xen/interface/callback.h2
-rw-r--r--include/xen/interface/hvm/params.h2
-rw-r--r--include/xen/interface/io/blkif.h4
-rw-r--r--include/xen/interface/io/netif.h4
-rw-r--r--include/xen/interface/platform.h2
-rw-r--r--include/xen/interface/sched.h2
-rw-r--r--include/xen/interface/version.h2
-rw-r--r--scripts/Makefile.headersinst52
-rw-r--r--scripts/headers_install.pl14
634 files changed, 1399 insertions, 1327 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index ab0a984530d8..ec9ae6708691 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -45,7 +45,7 @@ This document describes the Linux kernel Makefiles.
45 45
46 === 7 Kbuild syntax for exported headers 46 === 7 Kbuild syntax for exported headers
47 --- 7.1 header-y 47 --- 7.1 header-y
48 --- 7.2 objhdr-y 48 --- 7.2 genhdr-y
49 --- 7.3 destination-y 49 --- 7.3 destination-y
50 --- 7.4 generic-y 50 --- 7.4 generic-y
51 51
@@ -1282,15 +1282,15 @@ See subsequent chapter for the syntax of the Kbuild file.
1282 1282
1283 Subdirectories are visited before their parent directories. 1283 Subdirectories are visited before their parent directories.
1284 1284
1285 --- 7.2 objhdr-y 1285 --- 7.2 genhdr-y
1286 1286
1287 objhdr-y specifies generated files to be exported. 1287 genhdr-y specifies generated files to be exported.
1288 Generated files are special as they need to be looked 1288 Generated files are special as they need to be looked
1289 up in another directory when doing 'make O=...' builds. 1289 up in another directory when doing 'make O=...' builds.
1290 1290
1291 Example: 1291 Example:
1292 #include/linux/Kbuild 1292 #include/linux/Kbuild
1293 objhdr-y += version.h 1293 genhdr-y += version.h
1294 1294
1295 --- 7.3 destination-y 1295 --- 7.3 destination-y
1296 1296
diff --git a/Makefile b/Makefile
index 846dd7607854..86eb6acb3978 100644
--- a/Makefile
+++ b/Makefile
@@ -350,12 +350,22 @@ AFLAGS_KERNEL =
350CFLAGS_GCOV = -fprofile-arcs -ftest-coverage 350CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
351 351
352 352
353# Use USERINCLUDE when you must reference the UAPI directories only.
354USERINCLUDE := \
355 -I$(srctree)/arch/$(hdr-arch)/include/uapi \
356 -Iarch/$(hdr-arch)/include/generated/uapi \
357 -I$(srctree)/include/uapi \
358 -Iinclude/generated/uapi \
359 -include $(srctree)/include/linux/kconfig.h
360
353# Use LINUXINCLUDE when you must reference the include/ directory. 361# Use LINUXINCLUDE when you must reference the include/ directory.
354# Needed to be compatible with the O= option 362# Needed to be compatible with the O= option
355LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ 363LINUXINCLUDE := \
356 -Iarch/$(hdr-arch)/include/generated -Iinclude \ 364 -I$(srctree)/arch/$(hdr-arch)/include \
357 $(if $(KBUILD_SRC), -I$(srctree)/include) \ 365 -Iarch/$(hdr-arch)/include/generated \
358 -include $(srctree)/include/linux/kconfig.h 366 $(if $(KBUILD_SRC), -I$(srctree)/include) \
367 -Iinclude \
368 $(USERINCLUDE)
359 369
360KBUILD_CPPFLAGS := -D__KERNEL__ 370KBUILD_CPPFLAGS := -D__KERNEL__
361 371
@@ -437,9 +447,11 @@ asm-generic:
437# Detect when mixed targets is specified, and make a second invocation 447# Detect when mixed targets is specified, and make a second invocation
438# of make so .config is not included in this case either (for *config). 448# of make so .config is not included in this case either (for *config).
439 449
450version_h := include/generated/uapi/linux/version.h
451
440no-dot-config-targets := clean mrproper distclean \ 452no-dot-config-targets := clean mrproper distclean \
441 cscope gtags TAGS tags help %docs check% coccicheck \ 453 cscope gtags TAGS tags help %docs check% coccicheck \
442 include/linux/version.h headers_% archheaders archscripts \ 454 $(version_h) headers_% archheaders archscripts \
443 kernelversion %src-pkg 455 kernelversion %src-pkg
444 456
445config-targets := 0 457config-targets := 0
@@ -809,7 +821,7 @@ endif
809# prepare2 creates a makefile if using a separate output directory 821# prepare2 creates a makefile if using a separate output directory
810prepare2: prepare3 outputmakefile asm-generic 822prepare2: prepare3 outputmakefile asm-generic
811 823
812prepare1: prepare2 include/linux/version.h include/generated/utsrelease.h \ 824prepare1: prepare2 $(version_h) include/generated/utsrelease.h \
813 include/config/auto.conf 825 include/config/auto.conf
814 $(cmd_crmodverdir) 826 $(cmd_crmodverdir)
815 827
@@ -842,7 +854,7 @@ define filechk_version.h
842 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) 854 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';)
843endef 855endef
844 856
845include/linux/version.h: $(srctree)/Makefile FORCE 857$(version_h): $(srctree)/Makefile FORCE
846 $(call filechk,version.h) 858 $(call filechk,version.h)
847 859
848include/generated/utsrelease.h: include/config/kernel.release FORCE 860include/generated/utsrelease.h: include/config/kernel.release FORCE
@@ -887,7 +899,7 @@ PHONY += archscripts
887archscripts: 899archscripts:
888 900
889PHONY += __headers 901PHONY += __headers
890__headers: include/linux/version.h scripts_basic asm-generic archheaders archscripts FORCE 902__headers: $(version_h) scripts_basic asm-generic archheaders archscripts FORCE
891 $(Q)$(MAKE) $(build)=scripts build_unifdef 903 $(Q)$(MAKE) $(build)=scripts build_unifdef
892 904
893PHONY += headers_install_all 905PHONY += headers_install_all
@@ -896,10 +908,10 @@ headers_install_all:
896 908
897PHONY += headers_install 909PHONY += headers_install
898headers_install: __headers 910headers_install: __headers
899 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \ 911 $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \
900 $(error Headers not exportable for the $(SRCARCH) architecture)) 912 $(error Headers not exportable for the $(SRCARCH) architecture))
901 $(Q)$(MAKE) $(hdr-inst)=include 913 $(Q)$(MAKE) $(hdr-inst)=include/uapi
902 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) 914 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst)
903 915
904PHONY += headers_check_all 916PHONY += headers_check_all
905headers_check_all: headers_install_all 917headers_check_all: headers_install_all
@@ -907,8 +919,8 @@ headers_check_all: headers_install_all
907 919
908PHONY += headers_check 920PHONY += headers_check
909headers_check: headers_install 921headers_check: headers_install
910 $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 922 $(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1
911 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) HDRCHECK=1 923 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi/asm $(hdr-dst) HDRCHECK=1
912 924
913# --------------------------------------------------------------------------- 925# ---------------------------------------------------------------------------
914# Modules 926# Modules
@@ -997,8 +1009,7 @@ CLEAN_DIRS += $(MODVERDIR)
997# Directories & files removed with 'make mrproper' 1009# Directories & files removed with 'make mrproper'
998MRPROPER_DIRS += include/config usr/include include/generated \ 1010MRPROPER_DIRS += include/config usr/include include/generated \
999 arch/*/include/generated 1011 arch/*/include/generated
1000MRPROPER_FILES += .config .config.old .version .old_version \ 1012MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \
1001 include/linux/version.h \
1002 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS 1013 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS
1003 1014
1004# clean - Delete most, but leave enough to build external modules 1015# clean - Delete most, but leave enough to build external modules
diff --git a/arch/alpha/include/uapi/asm/Kbuild b/arch/alpha/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/alpha/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/arm/include/asm/page.h b/arch/arm/include/asm/page.h
index ecf901902e44..812a4944e783 100644
--- a/arch/arm/include/asm/page.h
+++ b/arch/arm/include/asm/page.h
@@ -19,7 +19,7 @@
19 19
20#ifndef CONFIG_MMU 20#ifndef CONFIG_MMU
21 21
22#include "page-nommu.h" 22#include <asm/page-nommu.h>
23 23
24#else 24#else
25 25
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
index 41dc31f834c3..08c12312a1f9 100644
--- a/arch/arm/include/asm/pgtable.h
+++ b/arch/arm/include/asm/pgtable.h
@@ -16,7 +16,7 @@
16#ifndef CONFIG_MMU 16#ifndef CONFIG_MMU
17 17
18#include <asm-generic/4level-fixup.h> 18#include <asm-generic/4level-fixup.h>
19#include "pgtable-nommu.h" 19#include <asm/pgtable-nommu.h>
20 20
21#else 21#else
22 22
diff --git a/arch/arm/include/asm/vfpmacros.h b/arch/arm/include/asm/vfpmacros.h
index 3d5fc41ae8d3..a7aadbd9a6dd 100644
--- a/arch/arm/include/asm/vfpmacros.h
+++ b/arch/arm/include/asm/vfpmacros.h
@@ -5,7 +5,7 @@
5 */ 5 */
6#include <asm/hwcap.h> 6#include <asm/hwcap.h>
7 7
8#include "vfp.h" 8#include <asm/vfp.h>
9 9
10@ Macros to allow building with old toolkits (with no VFP support) 10@ Macros to allow building with old toolkits (with no VFP support)
11 .macro VFPFMRX, rd, sysreg, cond 11 .macro VFPFMRX, rd, sysreg, cond
diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/arm/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/arm64/include/uapi/asm/Kbuild b/arch/arm64/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/arm64/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/avr32/include/uapi/asm/Kbuild b/arch/avr32/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/avr32/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/blackfin/include/uapi/asm/Kbuild b/arch/blackfin/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/blackfin/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/c6x/include/uapi/asm/Kbuild b/arch/c6x/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/c6x/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/cris/Makefile b/arch/cris/Makefile
index 29c2ceb38a76..39dc7d00083e 100644
--- a/arch/cris/Makefile
+++ b/arch/cris/Makefile
@@ -23,7 +23,9 @@ mach-$(CONFIG_ETRAXFS) := fs
23 23
24ifneq ($(arch-y),) 24ifneq ($(arch-y),)
25SARCH := arch-$(arch-y) 25SARCH := arch-$(arch-y)
26inc := -Iarch/cris/include/$(SARCH) 26inc := -Iarch/cris/include/uapi/$(SARCH)
27inc += -Iarch/cris/include/$(SARCH)
28inc += -Iarch/cris/include/uapi/$(SARCH)/arch
27inc += -Iarch/cris/include/$(SARCH)/arch 29inc += -Iarch/cris/include/$(SARCH)/arch
28else 30else
29SARCH := 31SARCH :=
diff --git a/arch/cris/include/arch-v10/arch/sv_addr_ag.h b/arch/cris/include/arch-v10/arch/sv_addr_ag.h
index e4a6b68b8982..5517f04153a4 100644
--- a/arch/cris/include/arch-v10/arch/sv_addr_ag.h
+++ b/arch/cris/include/arch-v10/arch/sv_addr_ag.h
@@ -114,7 +114,7 @@
114 114
115/*------------------------------------------------------------*/ 115/*------------------------------------------------------------*/
116 116
117#include "sv_addr.agh" 117#include <arch/sv_addr.agh>
118 118
119#if __test_sv_addr__ 119#if __test_sv_addr__
120/* IO_MASK( R_BUS_CONFIG , CE ) */ 120/* IO_MASK( R_BUS_CONFIG , CE ) */
diff --git a/arch/cris/include/arch-v10/arch/svinto.h b/arch/cris/include/arch-v10/arch/svinto.h
index 0881a1af7cee..da5c15272652 100644
--- a/arch/cris/include/arch-v10/arch/svinto.h
+++ b/arch/cris/include/arch-v10/arch/svinto.h
@@ -1,7 +1,7 @@
1#ifndef _ASM_CRIS_SVINTO_H 1#ifndef _ASM_CRIS_SVINTO_H
2#define _ASM_CRIS_SVINTO_H 2#define _ASM_CRIS_SVINTO_H
3 3
4#include "sv_addr_ag.h" 4#include <arch/sv_addr_ag.h>
5 5
6extern unsigned int genconfig_shadow; /* defined and set in head.S */ 6extern unsigned int genconfig_shadow; /* defined and set in head.S */
7 7
diff --git a/arch/cris/include/arch-v32/arch/dma.h b/arch/cris/include/arch-v32/arch/dma.h
index 61906153a9af..6f92f4f23f28 100644
--- a/arch/cris/include/arch-v32/arch/dma.h
+++ b/arch/cris/include/arch-v32/arch/dma.h
@@ -1 +1 @@
#include "mach/dma.h" #include <mach/dma.h>
diff --git a/arch/cris/include/arch-v32/arch/hwregs/dma.h b/arch/cris/include/arch-v32/arch/hwregs/dma.h
index 3ce322b5c731..52bf67907f28 100644
--- a/arch/cris/include/arch-v32/arch/hwregs/dma.h
+++ b/arch/cris/include/arch-v32/arch/hwregs/dma.h
@@ -7,7 +7,7 @@
7#define dma_h 7#define dma_h
8 8
9/* registers */ /* Really needed, since both are listed in sw.list? */ 9/* registers */ /* Really needed, since both are listed in sw.list? */
10#include "dma_defs.h" 10#include <arch/hwregs/dma_defs.h>
11 11
12 12
13/* descriptors */ 13/* descriptors */
diff --git a/arch/cris/include/uapi/arch-v10/arch/Kbuild b/arch/cris/include/uapi/arch-v10/arch/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/arch/cris/include/uapi/arch-v10/arch/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/arch/cris/include/uapi/arch-v32/arch/Kbuild b/arch/cris/include/uapi/arch-v32/arch/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/arch/cris/include/uapi/arch-v32/arch/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/arch/cris/include/uapi/asm/Kbuild b/arch/cris/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..f50236ae9ca3
--- /dev/null
+++ b/arch/cris/include/uapi/asm/Kbuild
@@ -0,0 +1,5 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
4header-y += arch-v10/
5header-y += arch-v32/
diff --git a/arch/frv/include/uapi/asm/Kbuild b/arch/frv/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/frv/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/h8300/include/uapi/asm/Kbuild b/arch/h8300/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/h8300/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/hexagon/include/uapi/asm/Kbuild b/arch/hexagon/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/hexagon/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/ia64/include/uapi/asm/Kbuild b/arch/ia64/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/ia64/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/m32r/include/uapi/asm/Kbuild b/arch/m32r/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/m32r/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/m68k/include/asm/cacheflush.h b/arch/m68k/include/asm/cacheflush.h
index a70d7319630a..4fc738209bd1 100644
--- a/arch/m68k/include/asm/cacheflush.h
+++ b/arch/m68k/include/asm/cacheflush.h
@@ -1,5 +1,5 @@
1#ifdef __uClinux__ 1#ifdef __uClinux__
2#include "cacheflush_no.h" 2#include <asm/cacheflush_no.h>
3#else 3#else
4#include "cacheflush_mm.h" 4#include <asm/cacheflush_mm.h>
5#endif 5#endif
diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h
index c7210ba184ea..c70cc9155003 100644
--- a/arch/m68k/include/asm/io.h
+++ b/arch/m68k/include/asm/io.h
@@ -1,5 +1,5 @@
1#ifdef __uClinux__ 1#ifdef __uClinux__
2#include "io_no.h" 2#include <asm/io_no.h>
3#else 3#else
4#include "io_mm.h" 4#include <asm/io_mm.h>
5#endif 5#endif
diff --git a/arch/m68k/include/asm/m68360.h b/arch/m68k/include/asm/m68360.h
index eb7d39ef2855..4664180a3ab3 100644
--- a/arch/m68k/include/asm/m68360.h
+++ b/arch/m68k/include/asm/m68360.h
@@ -1,7 +1,7 @@
1#include "m68360_regs.h" 1#include <asm/m68360_regs.h>
2#include "m68360_pram.h" 2#include <asm/m68360_pram.h>
3#include "m68360_quicc.h" 3#include <asm/m68360_quicc.h>
4#include "m68360_enet.h" 4#include <asm/m68360_enet.h>
5 5
6#ifdef CONFIG_M68360 6#ifdef CONFIG_M68360
7 7
diff --git a/arch/m68k/include/asm/m68360_enet.h b/arch/m68k/include/asm/m68360_enet.h
index c36f4d059203..4d04037c78a2 100644
--- a/arch/m68k/include/asm/m68360_enet.h
+++ b/arch/m68k/include/asm/m68360_enet.h
@@ -10,7 +10,7 @@
10#ifndef __ETHER_H 10#ifndef __ETHER_H
11#define __ETHER_H 11#define __ETHER_H
12 12
13#include "quicc_simple.h" 13#include <asm/quicc_simple.h>
14 14
15/* 15/*
16 * transmit BD's 16 * transmit BD's
diff --git a/arch/m68k/include/asm/page.h b/arch/m68k/include/asm/page.h
index 98baa82a8615..7c360dac00b7 100644
--- a/arch/m68k/include/asm/page.h
+++ b/arch/m68k/include/asm/page.h
@@ -43,9 +43,9 @@ extern unsigned long _ramend;
43#endif /* !__ASSEMBLY__ */ 43#endif /* !__ASSEMBLY__ */
44 44
45#ifdef CONFIG_MMU 45#ifdef CONFIG_MMU
46#include "page_mm.h" 46#include <asm/page_mm.h>
47#else 47#else
48#include "page_no.h" 48#include <asm/page_no.h>
49#endif 49#endif
50 50
51#include <asm-generic/getorder.h> 51#include <asm-generic/getorder.h>
diff --git a/arch/m68k/include/asm/pgtable.h b/arch/m68k/include/asm/pgtable.h
index ee6759eb445a..a3d733b524d2 100644
--- a/arch/m68k/include/asm/pgtable.h
+++ b/arch/m68k/include/asm/pgtable.h
@@ -1,5 +1,5 @@
1#ifdef __uClinux__ 1#ifdef __uClinux__
2#include "pgtable_no.h" 2#include <asm/pgtable_no.h>
3#else 3#else
4#include "pgtable_mm.h" 4#include <asm/pgtable_mm.h>
5#endif 5#endif
diff --git a/arch/m68k/include/asm/q40_master.h b/arch/m68k/include/asm/q40_master.h
index 3907a09d4fca..fc5b36278d04 100644
--- a/arch/m68k/include/asm/q40_master.h
+++ b/arch/m68k/include/asm/q40_master.h
@@ -60,7 +60,7 @@
60#define Q40_RTC_WRITE 128 60#define Q40_RTC_WRITE 128
61 61
62/* define some Q40 specific ints */ 62/* define some Q40 specific ints */
63#include "q40ints.h" 63#include <asm/q40ints.h>
64 64
65/* misc defs */ 65/* misc defs */
66#define DAC_LEFT ((unsigned char *)0xff008000) 66#define DAC_LEFT ((unsigned char *)0xff008000)
diff --git a/arch/m68k/include/asm/uaccess.h b/arch/m68k/include/asm/uaccess.h
index 38f92dbb9a45..639c731568b0 100644
--- a/arch/m68k/include/asm/uaccess.h
+++ b/arch/m68k/include/asm/uaccess.h
@@ -1,5 +1,5 @@
1#ifdef __uClinux__ 1#ifdef __uClinux__
2#include "uaccess_no.h" 2#include <asm/uaccess_no.h>
3#else 3#else
4#include "uaccess_mm.h" 4#include <asm/uaccess_mm.h>
5#endif 5#endif
diff --git a/arch/m68k/include/uapi/asm/Kbuild b/arch/m68k/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/m68k/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/microblaze/include/asm/mmu_context.h b/arch/microblaze/include/asm/mmu_context.h
index 24eab1674d3e..0ccd8c402cd9 100644
--- a/arch/microblaze/include/asm/mmu_context.h
+++ b/arch/microblaze/include/asm/mmu_context.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_MMU 1#ifdef CONFIG_MMU
2# include "mmu_context_mm.h" 2# include <asm/mmu_context_mm.h>
3#else 3#else
4# include <asm-generic/mmu_context.h> 4# include <asm-generic/mmu_context.h>
5#endif 5#endif
diff --git a/arch/microblaze/include/uapi/asm/Kbuild b/arch/microblaze/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/microblaze/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
index 9203d90e610c..03a54df5fb86 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
@@ -1,7 +1,7 @@
1#ifndef BCM63XX_IO_H_ 1#ifndef BCM63XX_IO_H_
2#define BCM63XX_IO_H_ 2#define BCM63XX_IO_H_
3 3
4#include "bcm63xx_cpu.h" 4#include <asm/mach-bcm63xx/bcm63xx_cpu.h>
5 5
6/* 6/*
7 * Physical memory map, RAM is mapped at 0x0. 7 * Physical memory map, RAM is mapped at 0x0.
diff --git a/arch/mips/include/asm/mach-pnx833x/gpio.h b/arch/mips/include/asm/mach-pnx833x/gpio.h
index ed3a88da70f6..f192acf4a8af 100644
--- a/arch/mips/include/asm/mach-pnx833x/gpio.h
+++ b/arch/mips/include/asm/mach-pnx833x/gpio.h
@@ -30,7 +30,7 @@
30 - including locking between different uses 30 - including locking between different uses
31*/ 31*/
32 32
33#include "pnx833x.h" 33#include <asm/mach-pnx833x/pnx833x.h>
34 34
35#define SET_REG_BIT(reg, bit) do { (reg |= (1 << (bit))); } while (0) 35#define SET_REG_BIT(reg, bit) do { (reg |= (1 << (bit))); } while (0)
36#define CLEAR_REG_BIT(reg, bit) do { (reg &= ~(1 << (bit))); } while (0) 36#define CLEAR_REG_BIT(reg, bit) do { (reg &= ~(1 << (bit))); } while (0)
diff --git a/arch/mips/include/asm/octeon/cvmx-asm.h b/arch/mips/include/asm/octeon/cvmx-asm.h
index 5de5de95311b..31eacc24b775 100644
--- a/arch/mips/include/asm/octeon/cvmx-asm.h
+++ b/arch/mips/include/asm/octeon/cvmx-asm.h
@@ -32,7 +32,7 @@
32#ifndef __CVMX_ASM_H__ 32#ifndef __CVMX_ASM_H__
33#define __CVMX_ASM_H__ 33#define __CVMX_ASM_H__
34 34
35#include "octeon-model.h" 35#include <asm/octeon/octeon-model.h>
36 36
37/* other useful stuff */ 37/* other useful stuff */
38#define CVMX_SYNC asm volatile ("sync" : : : "memory") 38#define CVMX_SYNC asm volatile ("sync" : : : "memory")
diff --git a/arch/mips/include/asm/octeon/cvmx-cmd-queue.h b/arch/mips/include/asm/octeon/cvmx-cmd-queue.h
index 614653b686a0..fed91125317f 100644
--- a/arch/mips/include/asm/octeon/cvmx-cmd-queue.h
+++ b/arch/mips/include/asm/octeon/cvmx-cmd-queue.h
@@ -76,7 +76,7 @@
76 76
77#include <linux/prefetch.h> 77#include <linux/prefetch.h>
78 78
79#include "cvmx-fpa.h" 79#include <asm/octeon/cvmx-fpa.h>
80/** 80/**
81 * By default we disable the max depth support. Most programs 81 * By default we disable the max depth support. Most programs
82 * don't use it and it slows down the command queue processing 82 * don't use it and it slows down the command queue processing
diff --git a/arch/mips/include/asm/octeon/cvmx-fpa.h b/arch/mips/include/asm/octeon/cvmx-fpa.h
index 1f04f9658736..541a1ae02b6f 100644
--- a/arch/mips/include/asm/octeon/cvmx-fpa.h
+++ b/arch/mips/include/asm/octeon/cvmx-fpa.h
@@ -36,8 +36,8 @@
36#ifndef __CVMX_FPA_H__ 36#ifndef __CVMX_FPA_H__
37#define __CVMX_FPA_H__ 37#define __CVMX_FPA_H__
38 38
39#include "cvmx-address.h" 39#include <asm/octeon/cvmx-address.h>
40#include "cvmx-fpa-defs.h" 40#include <asm/octeon/cvmx-fpa-defs.h>
41 41
42#define CVMX_FPA_NUM_POOLS 8 42#define CVMX_FPA_NUM_POOLS 8
43#define CVMX_FPA_MIN_BLOCK_SIZE 128 43#define CVMX_FPA_MIN_BLOCK_SIZE 128
diff --git a/arch/mips/include/asm/octeon/cvmx-helper-board.h b/arch/mips/include/asm/octeon/cvmx-helper-board.h
index 88527fa835c9..442f508eaac9 100644
--- a/arch/mips/include/asm/octeon/cvmx-helper-board.h
+++ b/arch/mips/include/asm/octeon/cvmx-helper-board.h
@@ -34,7 +34,7 @@
34#ifndef __CVMX_HELPER_BOARD_H__ 34#ifndef __CVMX_HELPER_BOARD_H__
35#define __CVMX_HELPER_BOARD_H__ 35#define __CVMX_HELPER_BOARD_H__
36 36
37#include "cvmx-helper.h" 37#include <asm/octeon/cvmx-helper.h>
38 38
39typedef enum { 39typedef enum {
40 set_phy_link_flags_autoneg = 0x1, 40 set_phy_link_flags_autoneg = 0x1,
diff --git a/arch/mips/include/asm/octeon/cvmx-helper.h b/arch/mips/include/asm/octeon/cvmx-helper.h
index 0ac6b9f412be..691c8142cd4f 100644
--- a/arch/mips/include/asm/octeon/cvmx-helper.h
+++ b/arch/mips/include/asm/octeon/cvmx-helper.h
@@ -34,9 +34,9 @@
34#ifndef __CVMX_HELPER_H__ 34#ifndef __CVMX_HELPER_H__
35#define __CVMX_HELPER_H__ 35#define __CVMX_HELPER_H__
36 36
37#include "cvmx-config.h" 37#include <asm/octeon/cvmx-config.h>
38#include "cvmx-fpa.h" 38#include <asm/octeon/cvmx-fpa.h>
39#include "cvmx-wqe.h" 39#include <asm/octeon/cvmx-wqe.h>
40 40
41typedef enum { 41typedef enum {
42 CVMX_HELPER_INTERFACE_MODE_DISABLED, 42 CVMX_HELPER_INTERFACE_MODE_DISABLED,
@@ -62,13 +62,13 @@ typedef union {
62} cvmx_helper_link_info_t; 62} cvmx_helper_link_info_t;
63 63
64#include <asm/octeon/cvmx-helper-errata.h> 64#include <asm/octeon/cvmx-helper-errata.h>
65#include "cvmx-helper-loop.h" 65#include <asm/octeon/cvmx-helper-loop.h>
66#include "cvmx-helper-npi.h" 66#include <asm/octeon/cvmx-helper-npi.h>
67#include "cvmx-helper-rgmii.h" 67#include <asm/octeon/cvmx-helper-rgmii.h>
68#include "cvmx-helper-sgmii.h" 68#include <asm/octeon/cvmx-helper-sgmii.h>
69#include "cvmx-helper-spi.h" 69#include <asm/octeon/cvmx-helper-spi.h>
70#include "cvmx-helper-util.h" 70#include <asm/octeon/cvmx-helper-util.h>
71#include "cvmx-helper-xaui.h" 71#include <asm/octeon/cvmx-helper-xaui.h>
72 72
73/** 73/**
74 * cvmx_override_pko_queue_priority(int ipd_port, uint64_t 74 * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
diff --git a/arch/mips/include/asm/octeon/cvmx-mdio.h b/arch/mips/include/asm/octeon/cvmx-mdio.h
index d88ab8d8e37d..6f0cd182cec8 100644
--- a/arch/mips/include/asm/octeon/cvmx-mdio.h
+++ b/arch/mips/include/asm/octeon/cvmx-mdio.h
@@ -35,7 +35,7 @@
35#ifndef __CVMX_MIO_H__ 35#ifndef __CVMX_MIO_H__
36#define __CVMX_MIO_H__ 36#define __CVMX_MIO_H__
37 37
38#include "cvmx-smix-defs.h" 38#include <asm/octeon/cvmx-smix-defs.h>
39 39
40/** 40/**
41 * PHY register 0 from the 802.3 spec 41 * PHY register 0 from the 802.3 spec
diff --git a/arch/mips/include/asm/octeon/cvmx-pip.h b/arch/mips/include/asm/octeon/cvmx-pip.h
index 78dbce8f2c5e..9e739a640855 100644
--- a/arch/mips/include/asm/octeon/cvmx-pip.h
+++ b/arch/mips/include/asm/octeon/cvmx-pip.h
@@ -33,9 +33,9 @@
33#ifndef __CVMX_PIP_H__ 33#ifndef __CVMX_PIP_H__
34#define __CVMX_PIP_H__ 34#define __CVMX_PIP_H__
35 35
36#include "cvmx-wqe.h" 36#include <asm/octeon/cvmx-wqe.h>
37#include "cvmx-fpa.h" 37#include <asm/octeon/cvmx-fpa.h>
38#include "cvmx-pip-defs.h" 38#include <asm/octeon/cvmx-pip-defs.h>
39 39
40#define CVMX_PIP_NUM_INPUT_PORTS 40 40#define CVMX_PIP_NUM_INPUT_PORTS 40
41#define CVMX_PIP_NUM_WATCHERS 4 41#define CVMX_PIP_NUM_WATCHERS 4
diff --git a/arch/mips/include/asm/octeon/cvmx-pko.h b/arch/mips/include/asm/octeon/cvmx-pko.h
index de3412aada5d..c6daeedf1f81 100644
--- a/arch/mips/include/asm/octeon/cvmx-pko.h
+++ b/arch/mips/include/asm/octeon/cvmx-pko.h
@@ -58,10 +58,10 @@
58#ifndef __CVMX_PKO_H__ 58#ifndef __CVMX_PKO_H__
59#define __CVMX_PKO_H__ 59#define __CVMX_PKO_H__
60 60
61#include "cvmx-fpa.h" 61#include <asm/octeon/cvmx-fpa.h>
62#include "cvmx-pow.h" 62#include <asm/octeon/cvmx-pow.h>
63#include "cvmx-cmd-queue.h" 63#include <asm/octeon/cvmx-cmd-queue.h>
64#include "cvmx-pko-defs.h" 64#include <asm/octeon/cvmx-pko-defs.h>
65 65
66/* Adjust the command buffer size by 1 word so that in the case of using only 66/* Adjust the command buffer size by 1 word so that in the case of using only
67 * two word PKO commands no command words stradle buffers. The useful values 67 * two word PKO commands no command words stradle buffers. The useful values
diff --git a/arch/mips/include/asm/octeon/cvmx-pow.h b/arch/mips/include/asm/octeon/cvmx-pow.h
index 999aefe3274c..92742b241a51 100644
--- a/arch/mips/include/asm/octeon/cvmx-pow.h
+++ b/arch/mips/include/asm/octeon/cvmx-pow.h
@@ -53,8 +53,8 @@
53 53
54#include <asm/octeon/cvmx-pow-defs.h> 54#include <asm/octeon/cvmx-pow-defs.h>
55 55
56#include "cvmx-scratch.h" 56#include <asm/octeon/cvmx-scratch.h>
57#include "cvmx-wqe.h" 57#include <asm/octeon/cvmx-wqe.h>
58 58
59/* Default to having all POW constancy checks turned on */ 59/* Default to having all POW constancy checks turned on */
60#ifndef CVMX_ENABLE_POW_CHECKS 60#ifndef CVMX_ENABLE_POW_CHECKS
diff --git a/arch/mips/include/asm/octeon/cvmx-spi.h b/arch/mips/include/asm/octeon/cvmx-spi.h
index e814648953a5..3bf53b537bcf 100644
--- a/arch/mips/include/asm/octeon/cvmx-spi.h
+++ b/arch/mips/include/asm/octeon/cvmx-spi.h
@@ -32,7 +32,7 @@
32#ifndef __CVMX_SPI_H__ 32#ifndef __CVMX_SPI_H__
33#define __CVMX_SPI_H__ 33#define __CVMX_SPI_H__
34 34
35#include "cvmx-gmxx-defs.h" 35#include <asm/octeon/cvmx-gmxx-defs.h>
36 36
37/* CSR typedefs have been moved to cvmx-csr-*.h */ 37/* CSR typedefs have been moved to cvmx-csr-*.h */
38 38
diff --git a/arch/mips/include/asm/octeon/cvmx-spinlock.h b/arch/mips/include/asm/octeon/cvmx-spinlock.h
index 2fbf0871df11..a672abb1bc4f 100644
--- a/arch/mips/include/asm/octeon/cvmx-spinlock.h
+++ b/arch/mips/include/asm/octeon/cvmx-spinlock.h
@@ -35,7 +35,7 @@
35#ifndef __CVMX_SPINLOCK_H__ 35#ifndef __CVMX_SPINLOCK_H__
36#define __CVMX_SPINLOCK_H__ 36#define __CVMX_SPINLOCK_H__
37 37
38#include "cvmx-asm.h" 38#include <asm/octeon/cvmx-asm.h>
39 39
40/* Spinlocks for Octeon */ 40/* Spinlocks for Octeon */
41 41
diff --git a/arch/mips/include/asm/octeon/cvmx-wqe.h b/arch/mips/include/asm/octeon/cvmx-wqe.h
index 653610953d28..df762389e271 100644
--- a/arch/mips/include/asm/octeon/cvmx-wqe.h
+++ b/arch/mips/include/asm/octeon/cvmx-wqe.h
@@ -40,7 +40,7 @@
40#ifndef __CVMX_WQE_H__ 40#ifndef __CVMX_WQE_H__
41#define __CVMX_WQE_H__ 41#define __CVMX_WQE_H__
42 42
43#include "cvmx-packet.h" 43#include <asm/octeon/cvmx-packet.h>
44 44
45 45
46#define OCT_TAG_TYPE_STRING(x) \ 46#define OCT_TAG_TYPE_STRING(x) \
diff --git a/arch/mips/include/asm/octeon/cvmx.h b/arch/mips/include/asm/octeon/cvmx.h
index 740be97a3251..db58beab6cb2 100644
--- a/arch/mips/include/asm/octeon/cvmx.h
+++ b/arch/mips/include/asm/octeon/cvmx.h
@@ -52,24 +52,24 @@ enum cvmx_mips_space {
52#define CVMX_ADD_IO_SEG(add) CVMX_ADD_SEG(CVMX_IO_SEG, (add)) 52#define CVMX_ADD_IO_SEG(add) CVMX_ADD_SEG(CVMX_IO_SEG, (add))
53#endif 53#endif
54 54
55#include "cvmx-asm.h" 55#include <asm/octeon/cvmx-asm.h>
56#include "cvmx-packet.h" 56#include <asm/octeon/cvmx-packet.h>
57#include "cvmx-sysinfo.h" 57#include <asm/octeon/cvmx-sysinfo.h>
58 58
59#include "cvmx-ciu-defs.h" 59#include <asm/octeon/cvmx-ciu-defs.h>
60#include "cvmx-gpio-defs.h" 60#include <asm/octeon/cvmx-gpio-defs.h>
61#include "cvmx-iob-defs.h" 61#include <asm/octeon/cvmx-iob-defs.h>
62#include "cvmx-ipd-defs.h" 62#include <asm/octeon/cvmx-ipd-defs.h>
63#include "cvmx-l2c-defs.h" 63#include <asm/octeon/cvmx-l2c-defs.h>
64#include "cvmx-l2d-defs.h" 64#include <asm/octeon/cvmx-l2d-defs.h>
65#include "cvmx-l2t-defs.h" 65#include <asm/octeon/cvmx-l2t-defs.h>
66#include "cvmx-led-defs.h" 66#include <asm/octeon/cvmx-led-defs.h>
67#include "cvmx-mio-defs.h" 67#include <asm/octeon/cvmx-mio-defs.h>
68#include "cvmx-pow-defs.h" 68#include <asm/octeon/cvmx-pow-defs.h>
69 69
70#include "cvmx-bootinfo.h" 70#include <asm/octeon/cvmx-bootinfo.h>
71#include "cvmx-bootmem.h" 71#include <asm/octeon/cvmx-bootmem.h>
72#include "cvmx-l2c.h" 72#include <asm/octeon/cvmx-l2c.h>
73 73
74#ifndef CVMX_ENABLE_DEBUG_PRINTS 74#ifndef CVMX_ENABLE_DEBUG_PRINTS
75#define CVMX_ENABLE_DEBUG_PRINTS 1 75#define CVMX_ENABLE_DEBUG_PRINTS 1
diff --git a/arch/mips/include/asm/octeon/octeon-model.h b/arch/mips/include/asm/octeon/octeon-model.h
index 4e338a4d9424..23b895cb260b 100644
--- a/arch/mips/include/asm/octeon/octeon-model.h
+++ b/arch/mips/include/asm/octeon/octeon-model.h
@@ -313,6 +313,6 @@ static inline int __octeon_is_model_runtime__(uint32_t model)
313const char *octeon_model_get_string(uint32_t chip_id); 313const char *octeon_model_get_string(uint32_t chip_id);
314const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer); 314const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer);
315 315
316#include "octeon-feature.h" 316#include <asm/octeon/octeon-feature.h>
317 317
318#endif /* __OCTEON_MODEL_H__ */ 318#endif /* __OCTEON_MODEL_H__ */
diff --git a/arch/mips/include/asm/octeon/octeon.h b/arch/mips/include/asm/octeon/octeon.h
index 1e2486e23573..c4a1b31966bb 100644
--- a/arch/mips/include/asm/octeon/octeon.h
+++ b/arch/mips/include/asm/octeon/octeon.h
@@ -8,7 +8,7 @@
8#ifndef __ASM_OCTEON_OCTEON_H 8#ifndef __ASM_OCTEON_OCTEON_H
9#define __ASM_OCTEON_OCTEON_H 9#define __ASM_OCTEON_OCTEON_H
10 10
11#include "cvmx.h" 11#include <asm/octeon/cvmx.h>
12 12
13extern uint64_t octeon_bootmem_alloc_range_phys(uint64_t size, 13extern uint64_t octeon_bootmem_alloc_range_phys(uint64_t size,
14 uint64_t alignment, 14 uint64_t alignment,
diff --git a/arch/mips/include/asm/sibyte/bcm1480_int.h b/arch/mips/include/asm/sibyte/bcm1480_int.h
index 6109557c14e9..fffb224d2297 100644
--- a/arch/mips/include/asm/sibyte/bcm1480_int.h
+++ b/arch/mips/include/asm/sibyte/bcm1480_int.h
@@ -34,7 +34,7 @@
34#ifndef _BCM1480_INT_H 34#ifndef _BCM1480_INT_H
35#define _BCM1480_INT_H 35#define _BCM1480_INT_H
36 36
37#include "sb1250_defs.h" 37#include <asm/sibyte/sb1250_defs.h>
38 38
39/* ********************************************************************* 39/* *********************************************************************
40 * Interrupt Mapper Constants 40 * Interrupt Mapper Constants
diff --git a/arch/mips/include/asm/sibyte/bcm1480_l2c.h b/arch/mips/include/asm/sibyte/bcm1480_l2c.h
index fd75817f7ac4..725d38cb9d1c 100644
--- a/arch/mips/include/asm/sibyte/bcm1480_l2c.h
+++ b/arch/mips/include/asm/sibyte/bcm1480_l2c.h
@@ -33,7 +33,7 @@
33#ifndef _BCM1480_L2C_H 33#ifndef _BCM1480_L2C_H
34#define _BCM1480_L2C_H 34#define _BCM1480_L2C_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* 38/*
39 * Format of level 2 cache management address (Table 55) 39 * Format of level 2 cache management address (Table 55)
diff --git a/arch/mips/include/asm/sibyte/bcm1480_mc.h b/arch/mips/include/asm/sibyte/bcm1480_mc.h
index f26a41a82b59..4307a758e3bf 100644
--- a/arch/mips/include/asm/sibyte/bcm1480_mc.h
+++ b/arch/mips/include/asm/sibyte/bcm1480_mc.h
@@ -33,7 +33,7 @@
33#ifndef _BCM1480_MC_H 33#ifndef _BCM1480_MC_H
34#define _BCM1480_MC_H 34#define _BCM1480_MC_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* 38/*
39 * Memory Channel Configuration Register (Table 81) 39 * Memory Channel Configuration Register (Table 81)
diff --git a/arch/mips/include/asm/sibyte/bcm1480_regs.h b/arch/mips/include/asm/sibyte/bcm1480_regs.h
index b4077bb72611..84d168ddfebb 100644
--- a/arch/mips/include/asm/sibyte/bcm1480_regs.h
+++ b/arch/mips/include/asm/sibyte/bcm1480_regs.h
@@ -32,14 +32,14 @@
32#ifndef _BCM1480_REGS_H 32#ifndef _BCM1480_REGS_H
33#define _BCM1480_REGS_H 33#define _BCM1480_REGS_H
34 34
35#include "sb1250_defs.h" 35#include <asm/sibyte/sb1250_defs.h>
36 36
37/* ********************************************************************* 37/* *********************************************************************
38 * Pull in the BCM1250's registers since a great deal of the 1480's 38 * Pull in the BCM1250's registers since a great deal of the 1480's
39 * functions are the same as the BCM1250. 39 * functions are the same as the BCM1250.
40 ********************************************************************* */ 40 ********************************************************************* */
41 41
42#include "sb1250_regs.h" 42#include <asm/sibyte/sb1250_regs.h>
43 43
44 44
45/* ********************************************************************* 45/* *********************************************************************
diff --git a/arch/mips/include/asm/sibyte/bcm1480_scd.h b/arch/mips/include/asm/sibyte/bcm1480_scd.h
index 25ef24cbb92a..2af3706b9648 100644
--- a/arch/mips/include/asm/sibyte/bcm1480_scd.h
+++ b/arch/mips/include/asm/sibyte/bcm1480_scd.h
@@ -32,13 +32,13 @@
32#ifndef _BCM1480_SCD_H 32#ifndef _BCM1480_SCD_H
33#define _BCM1480_SCD_H 33#define _BCM1480_SCD_H
34 34
35#include "sb1250_defs.h" 35#include <asm/sibyte/sb1250_defs.h>
36 36
37/* ********************************************************************* 37/* *********************************************************************
38 * Pull in the BCM1250's SCD since lots of stuff is the same. 38 * Pull in the BCM1250's SCD since lots of stuff is the same.
39 ********************************************************************* */ 39 ********************************************************************* */
40 40
41#include "sb1250_scd.h" 41#include <asm/sibyte/sb1250_scd.h>
42 42
43/* ********************************************************************* 43/* *********************************************************************
44 * Some general notes: 44 * Some general notes:
diff --git a/arch/mips/include/asm/sibyte/sb1250_dma.h b/arch/mips/include/asm/sibyte/sb1250_dma.h
index bad56171d747..6c44dfb52878 100644
--- a/arch/mips/include/asm/sibyte/sb1250_dma.h
+++ b/arch/mips/include/asm/sibyte/sb1250_dma.h
@@ -36,7 +36,7 @@
36#define _SB1250_DMA_H 36#define _SB1250_DMA_H
37 37
38 38
39#include "sb1250_defs.h" 39#include <asm/sibyte/sb1250_defs.h>
40 40
41/* ********************************************************************* 41/* *********************************************************************
42 * DMA Registers 42 * DMA Registers
diff --git a/arch/mips/include/asm/sibyte/sb1250_genbus.h b/arch/mips/include/asm/sibyte/sb1250_genbus.h
index 94e9c7c8e783..a96ded17bdc9 100644
--- a/arch/mips/include/asm/sibyte/sb1250_genbus.h
+++ b/arch/mips/include/asm/sibyte/sb1250_genbus.h
@@ -34,7 +34,7 @@
34#ifndef _SB1250_GENBUS_H 34#ifndef _SB1250_GENBUS_H
35#define _SB1250_GENBUS_H 35#define _SB1250_GENBUS_H
36 36
37#include "sb1250_defs.h" 37#include <asm/sibyte/sb1250_defs.h>
38 38
39/* 39/*
40 * Generic Bus Region Configuration Registers (Table 11-4) 40 * Generic Bus Region Configuration Registers (Table 11-4)
diff --git a/arch/mips/include/asm/sibyte/sb1250_int.h b/arch/mips/include/asm/sibyte/sb1250_int.h
index f2850b4bcfd4..dbea73ddd2fe 100644
--- a/arch/mips/include/asm/sibyte/sb1250_int.h
+++ b/arch/mips/include/asm/sibyte/sb1250_int.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_INT_H 33#ifndef _SB1250_INT_H
34#define _SB1250_INT_H 34#define _SB1250_INT_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* ********************************************************************* 38/* *********************************************************************
39 * Interrupt Mapper Constants 39 * Interrupt Mapper Constants
diff --git a/arch/mips/include/asm/sibyte/sb1250_l2c.h b/arch/mips/include/asm/sibyte/sb1250_l2c.h
index 6554dcf05cfe..b61a7491607d 100644
--- a/arch/mips/include/asm/sibyte/sb1250_l2c.h
+++ b/arch/mips/include/asm/sibyte/sb1250_l2c.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_L2C_H 33#ifndef _SB1250_L2C_H
34#define _SB1250_L2C_H 34#define _SB1250_L2C_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* 38/*
39 * Level 2 Cache Tag register (Table 5-3) 39 * Level 2 Cache Tag register (Table 5-3)
diff --git a/arch/mips/include/asm/sibyte/sb1250_ldt.h b/arch/mips/include/asm/sibyte/sb1250_ldt.h
index 1e76cf137995..bf7f320d1a87 100644
--- a/arch/mips/include/asm/sibyte/sb1250_ldt.h
+++ b/arch/mips/include/asm/sibyte/sb1250_ldt.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_LDT_H 33#ifndef _SB1250_LDT_H
34#define _SB1250_LDT_H 34#define _SB1250_LDT_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38#define K_LDT_VENDOR_SIBYTE 0x166D 38#define K_LDT_VENDOR_SIBYTE 0x166D
39#define K_LDT_DEVICE_SB1250 0x0002 39#define K_LDT_DEVICE_SB1250 0x0002
diff --git a/arch/mips/include/asm/sibyte/sb1250_mac.h b/arch/mips/include/asm/sibyte/sb1250_mac.h
index 77f787284235..cfc4d7870882 100644
--- a/arch/mips/include/asm/sibyte/sb1250_mac.h
+++ b/arch/mips/include/asm/sibyte/sb1250_mac.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_MAC_H 33#ifndef _SB1250_MAC_H
34#define _SB1250_MAC_H 34#define _SB1250_MAC_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* ********************************************************************* 38/* *********************************************************************
39 * Ethernet MAC Registers 39 * Ethernet MAC Registers
diff --git a/arch/mips/include/asm/sibyte/sb1250_mc.h b/arch/mips/include/asm/sibyte/sb1250_mc.h
index 1eb1b5a88736..15048dcaf22f 100644
--- a/arch/mips/include/asm/sibyte/sb1250_mc.h
+++ b/arch/mips/include/asm/sibyte/sb1250_mc.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_MC_H 33#ifndef _SB1250_MC_H
34#define _SB1250_MC_H 34#define _SB1250_MC_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* 38/*
39 * Memory Channel Config Register (table 6-14) 39 * Memory Channel Config Register (table 6-14)
diff --git a/arch/mips/include/asm/sibyte/sb1250_regs.h b/arch/mips/include/asm/sibyte/sb1250_regs.h
index 8f53ec817a5e..29b9f0b26b3a 100644
--- a/arch/mips/include/asm/sibyte/sb1250_regs.h
+++ b/arch/mips/include/asm/sibyte/sb1250_regs.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_REGS_H 33#ifndef _SB1250_REGS_H
34#define _SB1250_REGS_H 34#define _SB1250_REGS_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38 38
39/* ********************************************************************* 39/* *********************************************************************
diff --git a/arch/mips/include/asm/sibyte/sb1250_scd.h b/arch/mips/include/asm/sibyte/sb1250_scd.h
index e49c3e89b5ee..615e165dbd21 100644
--- a/arch/mips/include/asm/sibyte/sb1250_scd.h
+++ b/arch/mips/include/asm/sibyte/sb1250_scd.h
@@ -32,7 +32,7 @@
32#ifndef _SB1250_SCD_H 32#ifndef _SB1250_SCD_H
33#define _SB1250_SCD_H 33#define _SB1250_SCD_H
34 34
35#include "sb1250_defs.h" 35#include <asm/sibyte/sb1250_defs.h>
36 36
37/* ********************************************************************* 37/* *********************************************************************
38 * System control/debug registers 38 * System control/debug registers
diff --git a/arch/mips/include/asm/sibyte/sb1250_smbus.h b/arch/mips/include/asm/sibyte/sb1250_smbus.h
index 04769923cf1e..128d6b75b819 100644
--- a/arch/mips/include/asm/sibyte/sb1250_smbus.h
+++ b/arch/mips/include/asm/sibyte/sb1250_smbus.h
@@ -34,7 +34,7 @@
34#ifndef _SB1250_SMBUS_H 34#ifndef _SB1250_SMBUS_H
35#define _SB1250_SMBUS_H 35#define _SB1250_SMBUS_H
36 36
37#include "sb1250_defs.h" 37#include <asm/sibyte/sb1250_defs.h>
38 38
39/* 39/*
40 * SMBus Clock Frequency Register (Table 14-2) 40 * SMBus Clock Frequency Register (Table 14-2)
diff --git a/arch/mips/include/asm/sibyte/sb1250_syncser.h b/arch/mips/include/asm/sibyte/sb1250_syncser.h
index d4b8558e0bf1..274e9179d326 100644
--- a/arch/mips/include/asm/sibyte/sb1250_syncser.h
+++ b/arch/mips/include/asm/sibyte/sb1250_syncser.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_SYNCSER_H 33#ifndef _SB1250_SYNCSER_H
34#define _SB1250_SYNCSER_H 34#define _SB1250_SYNCSER_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* 38/*
39 * Serial Mode Configuration Register 39 * Serial Mode Configuration Register
diff --git a/arch/mips/include/asm/sibyte/sb1250_uart.h b/arch/mips/include/asm/sibyte/sb1250_uart.h
index d835bf280140..bb99ecac5817 100644
--- a/arch/mips/include/asm/sibyte/sb1250_uart.h
+++ b/arch/mips/include/asm/sibyte/sb1250_uart.h
@@ -33,7 +33,7 @@
33#ifndef _SB1250_UART_H 33#ifndef _SB1250_UART_H
34#define _SB1250_UART_H 34#define _SB1250_UART_H
35 35
36#include "sb1250_defs.h" 36#include <asm/sibyte/sb1250_defs.h>
37 37
38/* ********************************************************************** 38/* **********************************************************************
39 * DUART Registers 39 * DUART Registers
diff --git a/arch/mips/include/uapi/asm/Kbuild b/arch/mips/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/mips/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/mn10300/include/uapi/asm/Kbuild b/arch/mn10300/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/mn10300/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/openrisc/include/uapi/asm/Kbuild b/arch/openrisc/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/openrisc/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/parisc/include/uapi/asm/Kbuild b/arch/parisc/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/parisc/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h
index 7f065e178ec4..0e15db4d703b 100644
--- a/arch/powerpc/include/asm/ps3.h
+++ b/arch/powerpc/include/asm/ps3.h
@@ -24,7 +24,7 @@
24#include <linux/init.h> 24#include <linux/init.h>
25#include <linux/types.h> 25#include <linux/types.h>
26#include <linux/device.h> 26#include <linux/device.h>
27#include "cell-pmu.h" 27#include <asm/cell-pmu.h>
28 28
29union ps3_firmware_version { 29union ps3_firmware_version {
30 u64 raw; 30 u64 raw;
diff --git a/arch/powerpc/include/asm/ucc_fast.h b/arch/powerpc/include/asm/ucc_fast.h
index 839aab8bf37d..4644c840e2fa 100644
--- a/arch/powerpc/include/asm/ucc_fast.h
+++ b/arch/powerpc/include/asm/ucc_fast.h
@@ -19,7 +19,7 @@
19#include <asm/immap_qe.h> 19#include <asm/immap_qe.h>
20#include <asm/qe.h> 20#include <asm/qe.h>
21 21
22#include "ucc.h" 22#include <asm/ucc.h>
23 23
24/* Receive BD's status */ 24/* Receive BD's status */
25#define R_E 0x80000000 /* buffer empty */ 25#define R_E 0x80000000 /* buffer empty */
diff --git a/arch/powerpc/include/asm/ucc_slow.h b/arch/powerpc/include/asm/ucc_slow.h
index 0980e6ad335b..cf131ffdb8d1 100644
--- a/arch/powerpc/include/asm/ucc_slow.h
+++ b/arch/powerpc/include/asm/ucc_slow.h
@@ -20,7 +20,7 @@
20#include <asm/immap_qe.h> 20#include <asm/immap_qe.h>
21#include <asm/qe.h> 21#include <asm/qe.h>
22 22
23#include "ucc.h" 23#include <asm/ucc.h>
24 24
25/* transmit BD's status */ 25/* transmit BD's status */
26#define T_R 0x80000000 /* ready bit */ 26#define T_R 0x80000000 /* ready bit */
diff --git a/arch/powerpc/include/uapi/asm/Kbuild b/arch/powerpc/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/powerpc/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/s390/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/score/include/uapi/asm/Kbuild b/arch/score/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/score/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/sh/include/asm/bl_bit.h b/arch/sh/include/asm/bl_bit.h
index 45e6b9fc37a0..06e4163c6746 100644
--- a/arch/sh/include/asm/bl_bit.h
+++ b/arch/sh/include/asm/bl_bit.h
@@ -2,9 +2,9 @@
2#define __ASM_SH_BL_BIT_H 2#define __ASM_SH_BL_BIT_H
3 3
4#ifdef CONFIG_SUPERH32 4#ifdef CONFIG_SUPERH32
5# include "bl_bit_32.h" 5# include <asm/bl_bit_32.h>
6#else 6#else
7# include "bl_bit_64.h" 7# include <asm/bl_bit_64.h>
8#endif 8#endif
9 9
10#endif /* __ASM_SH_BL_BIT_H */ 10#endif /* __ASM_SH_BL_BIT_H */
diff --git a/arch/sh/include/asm/cache_insns.h b/arch/sh/include/asm/cache_insns.h
index d25fbe53090d..355cb06b7a30 100644
--- a/arch/sh/include/asm/cache_insns.h
+++ b/arch/sh/include/asm/cache_insns.h
@@ -3,9 +3,9 @@
3 3
4 4
5#ifdef CONFIG_SUPERH32 5#ifdef CONFIG_SUPERH32
6# include "cache_insns_32.h" 6# include <asm/cache_insns_32.h>
7#else 7#else
8# include "cache_insns_64.h" 8# include <asm/cache_insns_64.h>
9#endif 9#endif
10 10
11#endif /* __ASM_SH_CACHE_INSNS_H */ 11#endif /* __ASM_SH_CACHE_INSNS_H */
diff --git a/arch/sh/include/asm/checksum.h b/arch/sh/include/asm/checksum.h
index fc26d1f4b590..34ae26204524 100644
--- a/arch/sh/include/asm/checksum.h
+++ b/arch/sh/include/asm/checksum.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_SUPERH32 1#ifdef CONFIG_SUPERH32
2# include "checksum_32.h" 2# include <asm/checksum_32.h>
3#else 3#else
4# include <asm-generic/checksum.h> 4# include <asm-generic/checksum.h>
5#endif 5#endif
diff --git a/arch/sh/include/asm/mmu_context.h b/arch/sh/include/asm/mmu_context.h
index 384c7471a374..21c5088788da 100644
--- a/arch/sh/include/asm/mmu_context.h
+++ b/arch/sh/include/asm/mmu_context.h
@@ -46,9 +46,9 @@
46#define MMU_VPN_MASK 0xfffff000 46#define MMU_VPN_MASK 0xfffff000
47 47
48#if defined(CONFIG_SUPERH32) 48#if defined(CONFIG_SUPERH32)
49#include "mmu_context_32.h" 49#include <asm/mmu_context_32.h>
50#else 50#else
51#include "mmu_context_64.h" 51#include <asm/mmu_context_64.h>
52#endif 52#endif
53 53
54/* 54/*
diff --git a/arch/sh/include/asm/posix_types.h b/arch/sh/include/asm/posix_types.h
index 4eeb723aee7e..f08449bcbde7 100644
--- a/arch/sh/include/asm/posix_types.h
+++ b/arch/sh/include/asm/posix_types.h
@@ -1,13 +1,13 @@
1#ifdef __KERNEL__ 1#ifdef __KERNEL__
2# ifdef CONFIG_SUPERH32 2# ifdef CONFIG_SUPERH32
3# include "posix_types_32.h" 3# include <asm/posix_types_32.h>
4# else 4# else
5# include "posix_types_64.h" 5# include <asm/posix_types_64.h>
6# endif 6# endif
7#else 7#else
8# ifdef __SH5__ 8# ifdef __SH5__
9# include "posix_types_64.h" 9# include <asm/posix_types_64.h>
10# else 10# else
11# include "posix_types_32.h" 11# include <asm/posix_types_32.h>
12# endif 12# endif
13#endif /* __KERNEL__ */ 13#endif /* __KERNEL__ */
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h
index 3d14aeaef57c..5448f9bbf4ab 100644
--- a/arch/sh/include/asm/processor.h
+++ b/arch/sh/include/asm/processor.h
@@ -175,9 +175,9 @@ extern unsigned int instruction_size(unsigned int insn);
175#endif /* __ASSEMBLY__ */ 175#endif /* __ASSEMBLY__ */
176 176
177#ifdef CONFIG_SUPERH32 177#ifdef CONFIG_SUPERH32
178# include "processor_32.h" 178# include <asm/processor_32.h>
179#else 179#else
180# include "processor_64.h" 180# include <asm/processor_64.h>
181#endif 181#endif
182 182
183#endif /* __ASM_SH_PROCESSOR_H */ 183#endif /* __ASM_SH_PROCESSOR_H */
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h
index c7b7e1ed194a..a4a38dff997a 100644
--- a/arch/sh/include/asm/ptrace.h
+++ b/arch/sh/include/asm/ptrace.h
@@ -25,9 +25,9 @@
25#define PT_TEXT_LEN 252 25#define PT_TEXT_LEN 252
26 26
27#if defined(__SH5__) || defined(CONFIG_CPU_SH5) 27#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
28#include "ptrace_64.h" 28#include <asm/ptrace_64.h>
29#else 29#else
30#include "ptrace_32.h" 30#include <asm/ptrace_32.h>
31#endif 31#endif
32 32
33#ifdef __KERNEL__ 33#ifdef __KERNEL__
diff --git a/arch/sh/include/asm/string.h b/arch/sh/include/asm/string.h
index 8c1ea21dc0ae..114011fa08af 100644
--- a/arch/sh/include/asm/string.h
+++ b/arch/sh/include/asm/string.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_SUPERH32 1#ifdef CONFIG_SUPERH32
2# include "string_32.h" 2# include <asm/string_32.h>
3#else 3#else
4# include "string_64.h" 4# include <asm/string_64.h>
5#endif 5#endif
diff --git a/arch/sh/include/asm/switch_to.h b/arch/sh/include/asm/switch_to.h
index 62b1941813e3..bcd722fc8347 100644
--- a/arch/sh/include/asm/switch_to.h
+++ b/arch/sh/include/asm/switch_to.h
@@ -11,9 +11,9 @@
11#define __ASM_SH_SWITCH_TO_H 11#define __ASM_SH_SWITCH_TO_H
12 12
13#ifdef CONFIG_SUPERH32 13#ifdef CONFIG_SUPERH32
14# include "switch_to_32.h" 14# include <asm/switch_to_32.h>
15#else 15#else
16# include "switch_to_64.h" 16# include <asm/switch_to_64.h>
17#endif 17#endif
18 18
19#endif /* __ASM_SH_SWITCH_TO_H */ 19#endif /* __ASM_SH_SWITCH_TO_H */
diff --git a/arch/sh/include/asm/syscall.h b/arch/sh/include/asm/syscall.h
index aa7777bdc370..847128da6eac 100644
--- a/arch/sh/include/asm/syscall.h
+++ b/arch/sh/include/asm/syscall.h
@@ -4,9 +4,9 @@
4extern const unsigned long sys_call_table[]; 4extern const unsigned long sys_call_table[];
5 5
6#ifdef CONFIG_SUPERH32 6#ifdef CONFIG_SUPERH32
7# include "syscall_32.h" 7# include <asm/syscall_32.h>
8#else 8#else
9# include "syscall_64.h" 9# include <asm/syscall_64.h>
10#endif 10#endif
11 11
12#endif /* __ASM_SH_SYSCALL_H */ 12#endif /* __ASM_SH_SYSCALL_H */
diff --git a/arch/sh/include/asm/syscalls.h b/arch/sh/include/asm/syscalls.h
index 507725af2e54..3dbfef06f6b2 100644
--- a/arch/sh/include/asm/syscalls.h
+++ b/arch/sh/include/asm/syscalls.h
@@ -11,9 +11,9 @@ asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
11 unsigned long fd, unsigned long pgoff); 11 unsigned long fd, unsigned long pgoff);
12 12
13#ifdef CONFIG_SUPERH32 13#ifdef CONFIG_SUPERH32
14# include "syscalls_32.h" 14# include <asm/syscalls_32.h>
15#else 15#else
16# include "syscalls_64.h" 16# include <asm/syscalls_64.h>
17#endif 17#endif
18 18
19#endif /* __KERNEL__ */ 19#endif /* __KERNEL__ */
diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h
index ec88bfcdf7ce..e61d43d9f689 100644
--- a/arch/sh/include/asm/tlb.h
+++ b/arch/sh/include/asm/tlb.h
@@ -2,7 +2,7 @@
2#define __ASM_SH_TLB_H 2#define __ASM_SH_TLB_H
3 3
4#ifdef CONFIG_SUPERH64 4#ifdef CONFIG_SUPERH64
5# include "tlb_64.h" 5# include <asm/tlb_64.h>
6#endif 6#endif
7 7
8#ifndef __ASSEMBLY__ 8#ifndef __ASSEMBLY__
diff --git a/arch/sh/include/asm/traps.h b/arch/sh/include/asm/traps.h
index afd9df8d0641..9cc149a0dbd1 100644
--- a/arch/sh/include/asm/traps.h
+++ b/arch/sh/include/asm/traps.h
@@ -4,9 +4,9 @@
4#include <linux/compiler.h> 4#include <linux/compiler.h>
5 5
6#ifdef CONFIG_SUPERH32 6#ifdef CONFIG_SUPERH32
7# include "traps_32.h" 7# include <asm/traps_32.h>
8#else 8#else
9# include "traps_64.h" 9# include <asm/traps_64.h>
10#endif 10#endif
11 11
12BUILD_TRAP_HANDLER(address_error); 12BUILD_TRAP_HANDLER(address_error);
diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h
index 8698a80ed00c..9486376605f4 100644
--- a/arch/sh/include/asm/uaccess.h
+++ b/arch/sh/include/asm/uaccess.h
@@ -97,9 +97,9 @@ struct __large_struct { unsigned long buf[100]; };
97}) 97})
98 98
99#ifdef CONFIG_SUPERH32 99#ifdef CONFIG_SUPERH32
100# include "uaccess_32.h" 100# include <asm/uaccess_32.h>
101#else 101#else
102# include "uaccess_64.h" 102# include <asm/uaccess_64.h>
103#endif 103#endif
104 104
105extern long strncpy_from_user(char *dest, const char __user *src, long count); 105extern long strncpy_from_user(char *dest, const char __user *src, long count);
diff --git a/arch/sh/include/asm/unistd.h b/arch/sh/include/asm/unistd.h
index 7bc67076baac..307201a854f3 100644
--- a/arch/sh/include/asm/unistd.h
+++ b/arch/sh/include/asm/unistd.h
@@ -1,8 +1,8 @@
1#ifdef __KERNEL__ 1#ifdef __KERNEL__
2# ifdef CONFIG_SUPERH32 2# ifdef CONFIG_SUPERH32
3# include "unistd_32.h" 3# include <asm/unistd_32.h>
4# else 4# else
5# include "unistd_64.h" 5# include <asm/unistd_64.h>
6# endif 6# endif
7 7
8# define __ARCH_WANT_SYS_RT_SIGSUSPEND 8# define __ARCH_WANT_SYS_RT_SIGSUSPEND
@@ -40,8 +40,8 @@
40 40
41#else 41#else
42# ifdef __SH5__ 42# ifdef __SH5__
43# include "unistd_64.h" 43# include <asm/unistd_64.h>
44# else 44# else
45# include "unistd_32.h" 45# include <asm/unistd_32.h>
46# endif 46# endif
47#endif 47#endif
diff --git a/arch/sh/include/mach-ecovec24/mach/romimage.h b/arch/sh/include/mach-ecovec24/mach/romimage.h
index d63ef51ec186..60f3e8af05fa 100644
--- a/arch/sh/include/mach-ecovec24/mach/romimage.h
+++ b/arch/sh/include/mach-ecovec24/mach/romimage.h
@@ -6,7 +6,7 @@
6 */ 6 */
7 7
8#include <asm/romimage-macros.h> 8#include <asm/romimage-macros.h>
9#include "partner-jet-setup.txt" 9#include <mach/partner-jet-setup.txt>
10 10
11 /* execute icbi after enabling cache */ 11 /* execute icbi after enabling cache */
12 mov.l 1f, r0 12 mov.l 1f, r0
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h
index 7a883167c846..1afae21ced5f 100644
--- a/arch/sh/include/mach-kfr2r09/mach/romimage.h
+++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h
@@ -6,7 +6,7 @@
6 */ 6 */
7 7
8#include <asm/romimage-macros.h> 8#include <asm/romimage-macros.h>
9#include "partner-jet-setup.txt" 9#include <mach/partner-jet-setup.txt>
10 10
11 /* execute icbi after enabling cache */ 11 /* execute icbi after enabling cache */
12 mov.l 1f, r0 12 mov.l 1f, r0
diff --git a/arch/sh/include/uapi/asm/Kbuild b/arch/sh/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/sh/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/sparc/include/uapi/asm/Kbuild b/arch/sparc/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..7518ad286963
--- /dev/null
+++ b/arch/sparc/include/uapi/asm/Kbuild
@@ -0,0 +1,5 @@
1# UAPI Header export list
2# User exported sparc header files
3
4include include/uapi/asm-generic/Kbuild.asm
5
diff --git a/arch/tile/include/gxio/dma_queue.h b/arch/tile/include/gxio/dma_queue.h
index 00654feb7db0..b9e45e37649e 100644
--- a/arch/tile/include/gxio/dma_queue.h
+++ b/arch/tile/include/gxio/dma_queue.h
@@ -19,7 +19,7 @@
19 * DMA queue management APIs shared between TRIO and mPIPE. 19 * DMA queue management APIs shared between TRIO and mPIPE.
20 */ 20 */
21 21
22#include "common.h" 22#include <gxio/common.h>
23 23
24/* The credit counter lives in the high 32 bits. */ 24/* The credit counter lives in the high 32 bits. */
25#define DMA_QUEUE_CREDIT_SHIFT 32 25#define DMA_QUEUE_CREDIT_SHIFT 32
diff --git a/arch/tile/include/gxio/mpipe.h b/arch/tile/include/gxio/mpipe.h
index 78c598618c97..b74f470ed11e 100644
--- a/arch/tile/include/gxio/mpipe.h
+++ b/arch/tile/include/gxio/mpipe.h
@@ -21,8 +21,8 @@
21 * resources. 21 * resources.
22 */ 22 */
23 23
24#include "common.h" 24#include <gxio/common.h>
25#include "dma_queue.h" 25#include <gxio/dma_queue.h>
26 26
27#include <linux/time.h> 27#include <linux/time.h>
28 28
diff --git a/arch/tile/include/gxio/trio.h b/arch/tile/include/gxio/trio.h
index 77b80cdd46d8..df10a662cc25 100644
--- a/arch/tile/include/gxio/trio.h
+++ b/arch/tile/include/gxio/trio.h
@@ -140,8 +140,8 @@
140 140
141#include <linux/types.h> 141#include <linux/types.h>
142 142
143#include "common.h" 143#include <gxio/common.h>
144#include "dma_queue.h" 144#include <gxio/dma_queue.h>
145 145
146#include <arch/trio_constants.h> 146#include <arch/trio_constants.h>
147#include <arch/trio.h> 147#include <arch/trio.h>
diff --git a/arch/tile/include/gxio/usb_host.h b/arch/tile/include/gxio/usb_host.h
index a60a126e4565..5eedec0e988e 100644
--- a/arch/tile/include/gxio/usb_host.h
+++ b/arch/tile/include/gxio/usb_host.h
@@ -14,7 +14,7 @@
14#ifndef _GXIO_USB_H_ 14#ifndef _GXIO_USB_H_
15#define _GXIO_USB_H_ 15#define _GXIO_USB_H_
16 16
17#include "common.h" 17#include <gxio/common.h>
18 18
19#include <hv/drv_usb_host_intf.h> 19#include <hv/drv_usb_host_intf.h>
20#include <hv/iorpc.h> 20#include <hv/iorpc.h>
diff --git a/arch/tile/include/hv/iorpc.h b/arch/tile/include/hv/iorpc.h
index 89c72a5d9341..ddf1604482b3 100644
--- a/arch/tile/include/hv/iorpc.h
+++ b/arch/tile/include/hv/iorpc.h
@@ -248,7 +248,7 @@
248#if defined(__HV__) 248#if defined(__HV__)
249#include <hv/hypervisor.h> 249#include <hv/hypervisor.h>
250#elif defined(__KERNEL__) 250#elif defined(__KERNEL__)
251#include "hypervisor.h" 251#include <hv/hypervisor.h>
252#include <linux/types.h> 252#include <linux/types.h>
253#else 253#else
254#include <stdint.h> 254#include <stdint.h>
diff --git a/arch/tile/include/uapi/arch/Kbuild b/arch/tile/include/uapi/arch/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/arch/tile/include/uapi/arch/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/arch/tile/include/uapi/asm/Kbuild b/arch/tile/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/tile/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 097091059aaa..133f7de2a13d 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -66,7 +66,9 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
66include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) 66include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
67 67
68KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \ 68KBUILD_CPPFLAGS += -I$(srctree)/$(HOST_DIR)/include \
69 -I$(HOST_DIR)/include/generated 69 -I$(srctree)/$(HOST_DIR)/include/uapi \
70 -I$(HOST_DIR)/include/generated \
71 -I$(HOST_DIR)/include/generated/uapi
70 72
71# -Derrno=kernel_errno - This turns all kernel references to errno into 73# -Derrno=kernel_errno - This turns all kernel references to errno into
72# kernel_errno to separate them from the libc errno. This allows -fno-common 74# kernel_errno to separate them from the libc errno. This allows -fno-common
diff --git a/arch/unicore32/include/mach/PKUnity.h b/arch/unicore32/include/mach/PKUnity.h
index 8040d575dddb..46705afcbf5a 100644
--- a/arch/unicore32/include/mach/PKUnity.h
+++ b/arch/unicore32/include/mach/PKUnity.h
@@ -15,7 +15,7 @@
15#error You must include hardware.h not PKUnity.h 15#error You must include hardware.h not PKUnity.h
16#endif 16#endif
17 17
18#include "bitfield.h" 18#include <mach/bitfield.h>
19 19
20/* 20/*
21 * Memory Definitions 21 * Memory Definitions
@@ -32,7 +32,7 @@
32 * 0x98000000 - 0x9FFFFFFF 128MB PCI PCI-AHB MEM-mapping 32 * 0x98000000 - 0x9FFFFFFF 128MB PCI PCI-AHB MEM-mapping
33 */ 33 */
34#define PKUNITY_PCI_BASE io_p2v(0x80000000) /* 0x80000000 - 0xBFFFFFFF 1GB */ 34#define PKUNITY_PCI_BASE io_p2v(0x80000000) /* 0x80000000 - 0xBFFFFFFF 1GB */
35#include "regs-pci.h" 35#include <mach/regs-pci.h>
36 36
37#define PKUNITY_PCICFG_BASE (PKUNITY_PCI_BASE + 0x0) 37#define PKUNITY_PCICFG_BASE (PKUNITY_PCI_BASE + 0x0)
38#define PKUNITY_PCIBRI_BASE (PKUNITY_PCI_BASE + 0x00010000) 38#define PKUNITY_PCIBRI_BASE (PKUNITY_PCI_BASE + 0x00010000)
@@ -50,18 +50,18 @@
50#define PKUNITY_ARBITER_BASE (PKUNITY_AHB_BASE + 0x000000) /* AHB-2 */ 50#define PKUNITY_ARBITER_BASE (PKUNITY_AHB_BASE + 0x000000) /* AHB-2 */
51#define PKUNITY_DDR2CTRL_BASE (PKUNITY_AHB_BASE + 0x100000) /* AHB-3 */ 51#define PKUNITY_DDR2CTRL_BASE (PKUNITY_AHB_BASE + 0x100000) /* AHB-3 */
52#define PKUNITY_DMAC_BASE (PKUNITY_AHB_BASE + 0x200000) /* AHB-4 */ 52#define PKUNITY_DMAC_BASE (PKUNITY_AHB_BASE + 0x200000) /* AHB-4 */
53#include "regs-dmac.h" 53#include <mach/regs-dmac.h>
54#define PKUNITY_UMAL_BASE (PKUNITY_AHB_BASE + 0x300000) /* AHB-5 */ 54#define PKUNITY_UMAL_BASE (PKUNITY_AHB_BASE + 0x300000) /* AHB-5 */
55#include "regs-umal.h" 55#include <mach/regs-umal.h>
56#define PKUNITY_USB_BASE (PKUNITY_AHB_BASE + 0x400000) /* AHB-6 */ 56#define PKUNITY_USB_BASE (PKUNITY_AHB_BASE + 0x400000) /* AHB-6 */
57#define PKUNITY_SATA_BASE (PKUNITY_AHB_BASE + 0x500000) /* AHB-7 */ 57#define PKUNITY_SATA_BASE (PKUNITY_AHB_BASE + 0x500000) /* AHB-7 */
58#define PKUNITY_SMC_BASE (PKUNITY_AHB_BASE + 0x600000) /* AHB-8 */ 58#define PKUNITY_SMC_BASE (PKUNITY_AHB_BASE + 0x600000) /* AHB-8 */
59/* AHB-9 is for APB bridge */ 59/* AHB-9 is for APB bridge */
60#define PKUNITY_MME_BASE (PKUNITY_AHB_BASE + 0x700000) /* AHB-10 */ 60#define PKUNITY_MME_BASE (PKUNITY_AHB_BASE + 0x700000) /* AHB-10 */
61#define PKUNITY_UNIGFX_BASE (PKUNITY_AHB_BASE + 0x800000) /* AHB-11 */ 61#define PKUNITY_UNIGFX_BASE (PKUNITY_AHB_BASE + 0x800000) /* AHB-11 */
62#include "regs-unigfx.h" 62#include <mach/regs-unigfx.h>
63#define PKUNITY_NAND_BASE (PKUNITY_AHB_BASE + 0x900000) /* AHB-12 */ 63#define PKUNITY_NAND_BASE (PKUNITY_AHB_BASE + 0x900000) /* AHB-12 */
64#include "regs-nand.h" 64#include <mach/regs-nand.h>
65#define PKUNITY_H264D_BASE (PKUNITY_AHB_BASE + 0xA00000) /* AHB-13 */ 65#define PKUNITY_H264D_BASE (PKUNITY_AHB_BASE + 0xA00000) /* AHB-13 */
66#define PKUNITY_H264E_BASE (PKUNITY_AHB_BASE + 0xB00000) /* AHB-14 */ 66#define PKUNITY_H264E_BASE (PKUNITY_AHB_BASE + 0xB00000) /* AHB-14 */
67 67
@@ -72,27 +72,27 @@
72 72
73#define PKUNITY_UART0_BASE (PKUNITY_APB_BASE + 0x000000) /* APB-0 */ 73#define PKUNITY_UART0_BASE (PKUNITY_APB_BASE + 0x000000) /* APB-0 */
74#define PKUNITY_UART1_BASE (PKUNITY_APB_BASE + 0x100000) /* APB-1 */ 74#define PKUNITY_UART1_BASE (PKUNITY_APB_BASE + 0x100000) /* APB-1 */
75#include "regs-uart.h" 75#include <mach/regs-uart.h>
76#define PKUNITY_I2C_BASE (PKUNITY_APB_BASE + 0x200000) /* APB-2 */ 76#define PKUNITY_I2C_BASE (PKUNITY_APB_BASE + 0x200000) /* APB-2 */
77#include "regs-i2c.h" 77#include <mach/regs-i2c.h>
78#define PKUNITY_SPI_BASE (PKUNITY_APB_BASE + 0x300000) /* APB-3 */ 78#define PKUNITY_SPI_BASE (PKUNITY_APB_BASE + 0x300000) /* APB-3 */
79#include "regs-spi.h" 79#include <mach/regs-spi.h>
80#define PKUNITY_AC97_BASE (PKUNITY_APB_BASE + 0x400000) /* APB-4 */ 80#define PKUNITY_AC97_BASE (PKUNITY_APB_BASE + 0x400000) /* APB-4 */
81#include "regs-ac97.h" 81#include <mach/regs-ac97.h>
82#define PKUNITY_GPIO_BASE (PKUNITY_APB_BASE + 0x500000) /* APB-5 */ 82#define PKUNITY_GPIO_BASE (PKUNITY_APB_BASE + 0x500000) /* APB-5 */
83#include "regs-gpio.h" 83#include <mach/regs-gpio.h>
84#define PKUNITY_INTC_BASE (PKUNITY_APB_BASE + 0x600000) /* APB-6 */ 84#define PKUNITY_INTC_BASE (PKUNITY_APB_BASE + 0x600000) /* APB-6 */
85#include "regs-intc.h" 85#include <mach/regs-intc.h>
86#define PKUNITY_RTC_BASE (PKUNITY_APB_BASE + 0x700000) /* APB-7 */ 86#define PKUNITY_RTC_BASE (PKUNITY_APB_BASE + 0x700000) /* APB-7 */
87#include "regs-rtc.h" 87#include <mach/regs-rtc.h>
88#define PKUNITY_OST_BASE (PKUNITY_APB_BASE + 0x800000) /* APB-8 */ 88#define PKUNITY_OST_BASE (PKUNITY_APB_BASE + 0x800000) /* APB-8 */
89#include "regs-ost.h" 89#include <mach/regs-ost.h>
90#define PKUNITY_RESETC_BASE (PKUNITY_APB_BASE + 0x900000) /* APB-9 */ 90#define PKUNITY_RESETC_BASE (PKUNITY_APB_BASE + 0x900000) /* APB-9 */
91#include "regs-resetc.h" 91#include <mach/regs-resetc.h>
92#define PKUNITY_PM_BASE (PKUNITY_APB_BASE + 0xA00000) /* APB-10 */ 92#define PKUNITY_PM_BASE (PKUNITY_APB_BASE + 0xA00000) /* APB-10 */
93#include "regs-pm.h" 93#include <mach/regs-pm.h>
94#define PKUNITY_PS2_BASE (PKUNITY_APB_BASE + 0xB00000) /* APB-11 */ 94#define PKUNITY_PS2_BASE (PKUNITY_APB_BASE + 0xB00000) /* APB-11 */
95#include "regs-ps2.h" 95#include <mach/regs-ps2.h>
96#define PKUNITY_SDC_BASE (PKUNITY_APB_BASE + 0xC00000) /* APB-12 */ 96#define PKUNITY_SDC_BASE (PKUNITY_APB_BASE + 0xC00000) /* APB-12 */
97#include "regs-sdc.h" 97#include <mach/regs-sdc.h>
98 98
diff --git a/arch/unicore32/include/mach/hardware.h b/arch/unicore32/include/mach/hardware.h
index 930bea6e129a..9e20b5d9ed50 100644
--- a/arch/unicore32/include/mach/hardware.h
+++ b/arch/unicore32/include/mach/hardware.h
@@ -15,7 +15,7 @@
15#ifndef __MACH_PUV3_HARDWARE_H__ 15#ifndef __MACH_PUV3_HARDWARE_H__
16#define __MACH_PUV3_HARDWARE_H__ 16#define __MACH_PUV3_HARDWARE_H__
17 17
18#include "PKUnity.h" 18#include <mach/PKUnity.h>
19 19
20#ifndef __ASSEMBLY__ 20#ifndef __ASSEMBLY__
21#define io_p2v(x) (void __iomem *)((x) - PKUNITY_MMIO_BASE) 21#define io_p2v(x) (void __iomem *)((x) - PKUNITY_MMIO_BASE)
diff --git a/arch/unicore32/include/mach/uncompress.h b/arch/unicore32/include/mach/uncompress.h
index 142d3e7958a9..9be67c9d3b53 100644
--- a/arch/unicore32/include/mach/uncompress.h
+++ b/arch/unicore32/include/mach/uncompress.h
@@ -13,8 +13,8 @@
13#ifndef __MACH_PUV3_UNCOMPRESS_H__ 13#ifndef __MACH_PUV3_UNCOMPRESS_H__
14#define __MACH_PUV3_UNCOMPRESS_H__ 14#define __MACH_PUV3_UNCOMPRESS_H__
15 15
16#include "hardware.h" 16#include <mach/hardware.h>
17#include "ocd.h" 17#include <mach/ocd.h>
18 18
19extern char input_data[]; 19extern char input_data[];
20extern char input_data_end[]; 20extern char input_data_end[];
diff --git a/arch/unicore32/include/uapi/asm/Kbuild b/arch/unicore32/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/unicore32/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
index f7535bedc33f..ce03476d8c8f 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -37,7 +37,7 @@ setup-y += video-bios.o
37targets += $(setup-y) 37targets += $(setup-y)
38hostprogs-y := mkcpustr tools/build 38hostprogs-y := mkcpustr tools/build
39 39
40HOST_EXTRACFLAGS += -I$(srctree)/tools/include $(LINUXINCLUDE) \ 40HOST_EXTRACFLAGS += -I$(srctree)/tools/include $(USERINCLUDE) \
41 -D__EXPORTED_HEADERS__ 41 -D__EXPORTED_HEADERS__
42 42
43$(obj)/cpu.o: $(obj)/cpustr.h 43$(obj)/cpu.o: $(obj)/cpustr.h
@@ -52,7 +52,7 @@ $(obj)/cpustr.h: $(obj)/mkcpustr FORCE
52 52
53# How to compile the 16-bit code. Note we always compile for -march=i386, 53# How to compile the 16-bit code. Note we always compile for -march=i386,
54# that way we can complain to the user if the CPU is insufficient. 54# that way we can complain to the user if the CPU is insufficient.
55KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ 55KBUILD_CFLAGS := $(USERINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
56 -DDISABLE_BRANCH_PROFILING \ 56 -DDISABLE_BRANCH_PROFILING \
57 -Wall -Wstrict-prototypes \ 57 -Wall -Wstrict-prototypes \
58 -march=i386 -mregparm=3 \ 58 -march=i386 -mregparm=3 \
diff --git a/arch/x86/boot/mkcpustr.c b/arch/x86/boot/mkcpustr.c
index 919257f526f2..4579eff0ef4d 100644
--- a/arch/x86/boot/mkcpustr.c
+++ b/arch/x86/boot/mkcpustr.c
@@ -15,6 +15,8 @@
15 15
16#include <stdio.h> 16#include <stdio.h>
17 17
18#include "../include/asm/required-features.h"
19#include "../include/asm/cpufeature.h"
18#include "../kernel/cpu/capflags.c" 20#include "../kernel/cpu/capflags.c"
19 21
20int main(void) 22int main(void)
diff --git a/arch/x86/include/asm/Kbuild b/arch/x86/include/asm/Kbuild
index f9c0d3ba9e84..1595d6813432 100644
--- a/arch/x86/include/asm/Kbuild
+++ b/arch/x86/include/asm/Kbuild
@@ -22,7 +22,3 @@ header-y += sigcontext32.h
22header-y += ucontext.h 22header-y += ucontext.h
23header-y += vm86.h 23header-y += vm86.h
24header-y += vsyscall.h 24header-y += vsyscall.h
25
26genhdr-y += unistd_32.h
27genhdr-y += unistd_64.h
28genhdr-y += unistd_x32.h
diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h
index 58cb6d4085f7..250b8774c158 100644
--- a/arch/x86/include/asm/atomic.h
+++ b/arch/x86/include/asm/atomic.h
@@ -309,9 +309,9 @@ static inline void atomic_or_long(unsigned long *v1, unsigned long v2)
309#define smp_mb__after_atomic_inc() barrier() 309#define smp_mb__after_atomic_inc() barrier()
310 310
311#ifdef CONFIG_X86_32 311#ifdef CONFIG_X86_32
312# include "atomic64_32.h" 312# include <asm/atomic64_32.h>
313#else 313#else
314# include "atomic64_64.h" 314# include <asm/atomic64_64.h>
315#endif 315#endif
316 316
317#endif /* _ASM_X86_ATOMIC_H */ 317#endif /* _ASM_X86_ATOMIC_H */
diff --git a/arch/x86/include/asm/calling.h b/arch/x86/include/asm/calling.h
index 7f8422a28a46..0fa675033912 100644
--- a/arch/x86/include/asm/calling.h
+++ b/arch/x86/include/asm/calling.h
@@ -46,7 +46,7 @@ For 32-bit we have the following conventions - kernel is built with
46 46
47*/ 47*/
48 48
49#include "dwarf2.h" 49#include <asm/dwarf2.h>
50 50
51/* 51/*
52 * 64-bit system call stack frame layout defines and helpers, 52 * 64-bit system call stack frame layout defines and helpers,
diff --git a/arch/x86/include/asm/checksum.h b/arch/x86/include/asm/checksum.h
index 848850fd7d62..5f5bb0f97361 100644
--- a/arch/x86/include/asm/checksum.h
+++ b/arch/x86/include/asm/checksum.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "checksum_32.h" 2# include <asm/checksum_32.h>
3#else 3#else
4# include "checksum_64.h" 4# include <asm/checksum_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/cmpxchg.h b/arch/x86/include/asm/cmpxchg.h
index 99480e55973d..8d871eaddb66 100644
--- a/arch/x86/include/asm/cmpxchg.h
+++ b/arch/x86/include/asm/cmpxchg.h
@@ -138,9 +138,9 @@ extern void __add_wrong_size(void)
138 __raw_cmpxchg((ptr), (old), (new), (size), "") 138 __raw_cmpxchg((ptr), (old), (new), (size), "")
139 139
140#ifdef CONFIG_X86_32 140#ifdef CONFIG_X86_32
141# include "cmpxchg_32.h" 141# include <asm/cmpxchg_32.h>
142#else 142#else
143# include "cmpxchg_64.h" 143# include <asm/cmpxchg_64.h>
144#endif 144#endif
145 145
146#ifdef __HAVE_ARCH_CMPXCHG 146#ifdef __HAVE_ARCH_CMPXCHG
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
index 16cae425d1f8..8c297aa53eef 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86/include/asm/cpufeature.h
@@ -4,7 +4,9 @@
4#ifndef _ASM_X86_CPUFEATURE_H 4#ifndef _ASM_X86_CPUFEATURE_H
5#define _ASM_X86_CPUFEATURE_H 5#define _ASM_X86_CPUFEATURE_H
6 6
7#ifndef _ASM_X86_REQUIRED_FEATURES_H
7#include <asm/required-features.h> 8#include <asm/required-features.h>
9#endif
8 10
9#define NCAPINTS 10 /* N 32-bit words worth of info */ 11#define NCAPINTS 10 /* N 32-bit words worth of info */
10 12
diff --git a/arch/x86/include/asm/mmzone.h b/arch/x86/include/asm/mmzone.h
index 64217ea16a36..d497bc425cae 100644
--- a/arch/x86/include/asm/mmzone.h
+++ b/arch/x86/include/asm/mmzone.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "mmzone_32.h" 2# include <asm/mmzone_32.h>
3#else 3#else
4# include "mmzone_64.h" 4# include <asm/mmzone_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/mutex.h b/arch/x86/include/asm/mutex.h
index a731b9c573a6..7d3a48275394 100644
--- a/arch/x86/include/asm/mutex.h
+++ b/arch/x86/include/asm/mutex.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "mutex_32.h" 2# include <asm/mutex_32.h>
3#else 3#else
4# include "mutex_64.h" 4# include <asm/mutex_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/numa.h b/arch/x86/include/asm/numa.h
index bfacd2ccf651..49119fcea2dc 100644
--- a/arch/x86/include/asm/numa.h
+++ b/arch/x86/include/asm/numa.h
@@ -53,9 +53,9 @@ static inline int numa_cpu_node(int cpu)
53#endif /* CONFIG_NUMA */ 53#endif /* CONFIG_NUMA */
54 54
55#ifdef CONFIG_X86_32 55#ifdef CONFIG_X86_32
56# include "numa_32.h" 56# include <asm/numa_32.h>
57#else 57#else
58# include "numa_64.h" 58# include <asm/numa_64.h>
59#endif 59#endif
60 60
61#ifdef CONFIG_NUMA 61#ifdef CONFIG_NUMA
diff --git a/arch/x86/include/asm/pci.h b/arch/x86/include/asm/pci.h
index df75d07571ce..6e41b9343928 100644
--- a/arch/x86/include/asm/pci.h
+++ b/arch/x86/include/asm/pci.h
@@ -141,7 +141,7 @@ void default_restore_msi_irqs(struct pci_dev *dev, int irq);
141#endif /* __KERNEL__ */ 141#endif /* __KERNEL__ */
142 142
143#ifdef CONFIG_X86_64 143#ifdef CONFIG_X86_64
144#include "pci_64.h" 144#include <asm/pci_64.h>
145#endif 145#endif
146 146
147/* implement the pci_ DMA API in terms of the generic device dma_ one */ 147/* implement the pci_ DMA API in terms of the generic device dma_ one */
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 49afb3f41eb6..fc9948465293 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -384,9 +384,9 @@ pte_t *populate_extra_pte(unsigned long vaddr);
384#endif /* __ASSEMBLY__ */ 384#endif /* __ASSEMBLY__ */
385 385
386#ifdef CONFIG_X86_32 386#ifdef CONFIG_X86_32
387# include "pgtable_32.h" 387# include <asm/pgtable_32.h>
388#else 388#else
389# include "pgtable_64.h" 389# include <asm/pgtable_64.h>
390#endif 390#endif
391 391
392#ifndef __ASSEMBLY__ 392#ifndef __ASSEMBLY__
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index db8fec6d2953..ec8a1fc9505d 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -174,9 +174,9 @@
174#endif 174#endif
175 175
176#ifdef CONFIG_X86_32 176#ifdef CONFIG_X86_32
177# include "pgtable_32_types.h" 177# include <asm/pgtable_32_types.h>
178#else 178#else
179# include "pgtable_64_types.h" 179# include <asm/pgtable_64_types.h>
180#endif 180#endif
181 181
182#ifndef __ASSEMBLY__ 182#ifndef __ASSEMBLY__
diff --git a/arch/x86/include/asm/posix_types.h b/arch/x86/include/asm/posix_types.h
index 7ef7c3020e5c..bad3665c25fc 100644
--- a/arch/x86/include/asm/posix_types.h
+++ b/arch/x86/include/asm/posix_types.h
@@ -1,15 +1,15 @@
1#ifdef __KERNEL__ 1#ifdef __KERNEL__
2# ifdef CONFIG_X86_32 2# ifdef CONFIG_X86_32
3# include "posix_types_32.h" 3# include <asm/posix_types_32.h>
4# else 4# else
5# include "posix_types_64.h" 5# include <asm/posix_types_64.h>
6# endif 6# endif
7#else 7#else
8# ifdef __i386__ 8# ifdef __i386__
9# include "posix_types_32.h" 9# include <asm/posix_types_32.h>
10# elif defined(__ILP32__) 10# elif defined(__ILP32__)
11# include "posix_types_x32.h" 11# include <asm/posix_types_x32.h>
12# else 12# else
13# include "posix_types_64.h" 13# include <asm/posix_types_64.h>
14# endif 14# endif
15#endif 15#endif
diff --git a/arch/x86/include/asm/seccomp.h b/arch/x86/include/asm/seccomp.h
index c62e58a5a90d..0f3d7f099224 100644
--- a/arch/x86/include/asm/seccomp.h
+++ b/arch/x86/include/asm/seccomp.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "seccomp_32.h" 2# include <asm/seccomp_32.h>
3#else 3#else
4# include "seccomp_64.h" 4# include <asm/seccomp_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/string.h b/arch/x86/include/asm/string.h
index 6dfd6d9373a0..09224d7a5862 100644
--- a/arch/x86/include/asm/string.h
+++ b/arch/x86/include/asm/string.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "string_32.h" 2# include <asm/string_32.h>
3#else 3#else
4# include "string_64.h" 4# include <asm/string_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/suspend.h b/arch/x86/include/asm/suspend.h
index 9bd521fe4570..2fab6c2c3575 100644
--- a/arch/x86/include/asm/suspend.h
+++ b/arch/x86/include/asm/suspend.h
@@ -1,5 +1,5 @@
1#ifdef CONFIG_X86_32 1#ifdef CONFIG_X86_32
2# include "suspend_32.h" 2# include <asm/suspend_32.h>
3#else 3#else
4# include "suspend_64.h" 4# include <asm/suspend_64.h>
5#endif 5#endif
diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h
index a91acfbb1a98..7ccf8d131535 100644
--- a/arch/x86/include/asm/uaccess.h
+++ b/arch/x86/include/asm/uaccess.h
@@ -589,9 +589,9 @@ extern struct movsl_mask {
589#define ARCH_HAS_NOCACHE_UACCESS 1 589#define ARCH_HAS_NOCACHE_UACCESS 1
590 590
591#ifdef CONFIG_X86_32 591#ifdef CONFIG_X86_32
592# include "uaccess_32.h" 592# include <asm/uaccess_32.h>
593#else 593#else
594# include "uaccess_64.h" 594# include <asm/uaccess_64.h>
595#endif 595#endif
596 596
597#endif /* _ASM_X86_UACCESS_H */ 597#endif /* _ASM_X86_UACCESS_H */
diff --git a/arch/x86/include/asm/user.h b/arch/x86/include/asm/user.h
index 24532c7da3d6..ccab4af1646d 100644
--- a/arch/x86/include/asm/user.h
+++ b/arch/x86/include/asm/user.h
@@ -2,9 +2,9 @@
2#define _ASM_X86_USER_H 2#define _ASM_X86_USER_H
3 3
4#ifdef CONFIG_X86_32 4#ifdef CONFIG_X86_32
5# include "user_32.h" 5# include <asm/user_32.h>
6#else 6#else
7# include "user_64.h" 7# include <asm/user_64.h>
8#endif 8#endif
9 9
10#include <asm/types.h> 10#include <asm/types.h>
diff --git a/arch/x86/include/asm/xen/interface.h b/arch/x86/include/asm/xen/interface.h
index 555f94d3637b..1707cfa928fb 100644
--- a/arch/x86/include/asm/xen/interface.h
+++ b/arch/x86/include/asm/xen/interface.h
@@ -121,9 +121,9 @@ struct arch_shared_info {
121#endif /* !__ASSEMBLY__ */ 121#endif /* !__ASSEMBLY__ */
122 122
123#ifdef CONFIG_X86_32 123#ifdef CONFIG_X86_32
124#include "interface_32.h" 124#include <asm/xen/interface_32.h>
125#else 125#else
126#include "interface_64.h" 126#include <asm/xen/interface_64.h>
127#endif 127#endif
128 128
129#include <asm/pvclock-abi.h> 129#include <asm/pvclock-abi.h>
diff --git a/arch/x86/include/asm/xor.h b/arch/x86/include/asm/xor.h
index 7fcf6f3dbcc3..f8fde90bc45e 100644
--- a/arch/x86/include/asm/xor.h
+++ b/arch/x86/include/asm/xor.h
@@ -3,8 +3,8 @@
3# include <asm-generic/xor.h> 3# include <asm-generic/xor.h>
4#else 4#else
5#ifdef CONFIG_X86_32 5#ifdef CONFIG_X86_32
6# include "xor_32.h" 6# include <asm/xor_32.h>
7#else 7#else
8# include "xor_64.h" 8# include <asm/xor_64.h>
9#endif 9#endif
10#endif 10#endif
diff --git a/arch/x86/include/asm/xor_32.h b/arch/x86/include/asm/xor_32.h
index aabd5850bdb9..f79cb7ec0e06 100644
--- a/arch/x86/include/asm/xor_32.h
+++ b/arch/x86/include/asm/xor_32.h
@@ -822,7 +822,7 @@ static struct xor_block_template xor_block_pIII_sse = {
822}; 822};
823 823
824/* Also try the AVX routines */ 824/* Also try the AVX routines */
825#include "xor_avx.h" 825#include <asm/xor_avx.h>
826 826
827/* Also try the generic routines. */ 827/* Also try the generic routines. */
828#include <asm-generic/xor.h> 828#include <asm-generic/xor.h>
diff --git a/arch/x86/include/asm/xor_64.h b/arch/x86/include/asm/xor_64.h
index 5fc06d0b7eb5..87ac522c4af5 100644
--- a/arch/x86/include/asm/xor_64.h
+++ b/arch/x86/include/asm/xor_64.h
@@ -306,7 +306,7 @@ static struct xor_block_template xor_block_sse = {
306 306
307 307
308/* Also try the AVX routines */ 308/* Also try the AVX routines */
309#include "xor_avx.h" 309#include <asm/xor_avx.h>
310 310
311#undef XOR_TRY_TEMPLATES 311#undef XOR_TRY_TEMPLATES
312#define XOR_TRY_TEMPLATES \ 312#define XOR_TRY_TEMPLATES \
diff --git a/arch/x86/include/uapi/asm/Kbuild b/arch/x86/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..83b6e9a0dce4
--- /dev/null
+++ b/arch/x86/include/uapi/asm/Kbuild
@@ -0,0 +1,6 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
4genhdr-y += unistd_32.h
5genhdr-y += unistd_64.h
6genhdr-y += unistd_x32.h
diff --git a/arch/x86/kernel/cpu/mkcapflags.pl b/arch/x86/kernel/cpu/mkcapflags.pl
index c7b3fe2d72e0..091972ef49de 100644
--- a/arch/x86/kernel/cpu/mkcapflags.pl
+++ b/arch/x86/kernel/cpu/mkcapflags.pl
@@ -8,7 +8,10 @@
8open(IN, "< $in\0") or die "$0: cannot open: $in: $!\n"; 8open(IN, "< $in\0") or die "$0: cannot open: $in: $!\n";
9open(OUT, "> $out\0") or die "$0: cannot create: $out: $!\n"; 9open(OUT, "> $out\0") or die "$0: cannot create: $out: $!\n";
10 10
11print OUT "#include <asm/cpufeature.h>\n\n"; 11print OUT "#ifndef _ASM_X86_CPUFEATURE_H\n";
12print OUT "#include <asm/cpufeature.h>\n";
13print OUT "#endif\n";
14print OUT "\n";
12print OUT "const char * const x86_cap_flags[NCAPINTS*32] = {\n"; 15print OUT "const char * const x86_cap_flags[NCAPINTS*32] = {\n";
13 16
14%features = (); 17%features = ();
diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c
index b1e6c4b2e8eb..54fcffed28ed 100644
--- a/arch/x86/lib/insn.c
+++ b/arch/x86/lib/insn.c
@@ -18,7 +18,11 @@
18 * Copyright (C) IBM Corporation, 2002, 2004, 2009 18 * Copyright (C) IBM Corporation, 2002, 2004, 2009
19 */ 19 */
20 20
21#ifdef __KERNEL__
21#include <linux/string.h> 22#include <linux/string.h>
23#else
24#include <string.h>
25#endif
22#include <asm/inat.h> 26#include <asm/inat.h>
23#include <asm/insn.h> 27#include <asm/insn.h>
24 28
diff --git a/arch/x86/syscalls/Makefile b/arch/x86/syscalls/Makefile
index 3236aebc828d..f325af26107c 100644
--- a/arch/x86/syscalls/Makefile
+++ b/arch/x86/syscalls/Makefile
@@ -1,7 +1,9 @@
1out := $(obj)/../include/generated/asm 1out := $(obj)/../include/generated/asm
2uapi := $(obj)/../include/generated/uapi/asm
2 3
3# Create output directory if not already present 4# Create output directory if not already present
4_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 5_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') \
6 $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)')
5 7
6syscall32 := $(srctree)/$(src)/syscall_32.tbl 8syscall32 := $(srctree)/$(src)/syscall_32.tbl
7syscall64 := $(srctree)/$(src)/syscall_64.tbl 9syscall64 := $(srctree)/$(src)/syscall_64.tbl
@@ -18,7 +20,7 @@ quiet_cmd_systbl = SYSTBL $@
18 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' $< $@ 20 cmd_systbl = $(CONFIG_SHELL) '$(systbl)' $< $@
19 21
20syshdr_abi_unistd_32 := i386 22syshdr_abi_unistd_32 := i386
21$(out)/unistd_32.h: $(syscall32) $(syshdr) 23$(uapi)/unistd_32.h: $(syscall32) $(syshdr)
22 $(call if_changed,syshdr) 24 $(call if_changed,syshdr)
23 25
24syshdr_abi_unistd_32_ia32 := i386 26syshdr_abi_unistd_32_ia32 := i386
@@ -28,11 +30,11 @@ $(out)/unistd_32_ia32.h: $(syscall32) $(syshdr)
28 30
29syshdr_abi_unistd_x32 := common,x32 31syshdr_abi_unistd_x32 := common,x32
30syshdr_offset_unistd_x32 := __X32_SYSCALL_BIT 32syshdr_offset_unistd_x32 := __X32_SYSCALL_BIT
31$(out)/unistd_x32.h: $(syscall64) $(syshdr) 33$(uapi)/unistd_x32.h: $(syscall64) $(syshdr)
32 $(call if_changed,syshdr) 34 $(call if_changed,syshdr)
33 35
34syshdr_abi_unistd_64 := common,64 36syshdr_abi_unistd_64 := common,64
35$(out)/unistd_64.h: $(syscall64) $(syshdr) 37$(uapi)/unistd_64.h: $(syscall64) $(syshdr)
36 $(call if_changed,syshdr) 38 $(call if_changed,syshdr)
37 39
38syshdr_abi_unistd_64_x32 := x32 40syshdr_abi_unistd_64_x32 := x32
@@ -45,11 +47,12 @@ $(out)/syscalls_32.h: $(syscall32) $(systbl)
45$(out)/syscalls_64.h: $(syscall64) $(systbl) 47$(out)/syscalls_64.h: $(syscall64) $(systbl)
46 $(call if_changed,systbl) 48 $(call if_changed,systbl)
47 49
48syshdr-y += unistd_32.h unistd_64.h unistd_x32.h 50uapisyshdr-y += unistd_32.h unistd_64.h unistd_x32.h
49syshdr-y += syscalls_32.h 51syshdr-y += syscalls_32.h
50syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h unistd_64_x32.h 52syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h unistd_64_x32.h
51syshdr-$(CONFIG_X86_64) += syscalls_64.h 53syshdr-$(CONFIG_X86_64) += syscalls_64.h
52 54
53targets += $(syshdr-y) 55targets += $(uapisyshdr-y) $(syshdr-y)
54 56
55all: $(addprefix $(out)/,$(targets)) 57all: $(addprefix $(uapi)/,$(uapisyshdr-y))
58all: $(addprefix $(out)/,$(syshdr-y))
diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile
index 733057b435b0..bae601f900ef 100644
--- a/arch/x86/tools/Makefile
+++ b/arch/x86/tools/Makefile
@@ -28,7 +28,7 @@ posttest: $(obj)/test_get_len vmlinux $(obj)/insn_sanity
28hostprogs-y += test_get_len insn_sanity 28hostprogs-y += test_get_len insn_sanity
29 29
30# -I needed for generated C source and C source which in the kernel tree. 30# -I needed for generated C source and C source which in the kernel tree.
31HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/ 31HOSTCFLAGS_test_get_len.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/uapi/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/uapi/
32 32
33HOSTCFLAGS_insn_sanity.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/ 33HOSTCFLAGS_insn_sanity.o := -Wall -I$(objtree)/arch/x86/lib/ -I$(srctree)/arch/x86/include/ -I$(srctree)/arch/x86/lib/ -I$(srctree)/include/
34 34
diff --git a/arch/xtensa/include/uapi/asm/Kbuild b/arch/xtensa/include/uapi/asm/Kbuild
new file mode 100644
index 000000000000..baebb3da1d44
--- /dev/null
+++ b/arch/xtensa/include/uapi/asm/Kbuild
@@ -0,0 +1,3 @@
1# UAPI Header export list
2include include/uapi/asm-generic/Kbuild.asm
3
diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c
index 36164806b9d4..31123b6a0be5 100644
--- a/drivers/gpu/drm/ast/ast_drv.c
+++ b/drivers/gpu/drm/ast/ast_drv.c
@@ -28,9 +28,8 @@
28#include <linux/module.h> 28#include <linux/module.h>
29#include <linux/console.h> 29#include <linux/console.h>
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/drm_crtc_helper.h>
33#include "drm_crtc_helper.h"
34 33
35#include "ast_drv.h" 34#include "ast_drv.h"
36 35
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
index d4af9edcbb97..aea439760b60 100644
--- a/drivers/gpu/drm/ast/ast_drv.h
+++ b/drivers/gpu/drm/ast/ast_drv.h
@@ -28,13 +28,13 @@
28#ifndef __AST_DRV_H__ 28#ifndef __AST_DRV_H__
29#define __AST_DRV_H__ 29#define __AST_DRV_H__
30 30
31#include "drm_fb_helper.h" 31#include <drm/drm_fb_helper.h>
32 32
33#include "ttm/ttm_bo_api.h" 33#include <drm/ttm/ttm_bo_api.h>
34#include "ttm/ttm_bo_driver.h" 34#include <drm/ttm/ttm_bo_driver.h>
35#include "ttm/ttm_placement.h" 35#include <drm/ttm/ttm_placement.h>
36#include "ttm/ttm_memory.h" 36#include <drm/ttm/ttm_memory.h>
37#include "ttm/ttm_module.h" 37#include <drm/ttm/ttm_module.h>
38 38
39#include <linux/i2c.h> 39#include <linux/i2c.h>
40#include <linux/i2c-algo-bit.h> 40#include <linux/i2c-algo-bit.h>
diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c
index 2fc8e9e860b1..d9ec77959dff 100644
--- a/drivers/gpu/drm/ast/ast_fb.c
+++ b/drivers/gpu/drm/ast/ast_fb.c
@@ -37,10 +37,9 @@
37#include <linux/init.h> 37#include <linux/init.h>
38 38
39 39
40#include "drmP.h" 40#include <drm/drmP.h>
41#include "drm.h" 41#include <drm/drm_crtc.h>
42#include "drm_crtc.h" 42#include <drm/drm_fb_helper.h>
43#include "drm_fb_helper.h"
44#include "ast_drv.h" 43#include "ast_drv.h"
45 44
46static void ast_dirty_update(struct ast_fbdev *afbdev, 45static void ast_dirty_update(struct ast_fbdev *afbdev,
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index 95ae55b8214b..f668e6cc0f7a 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -25,12 +25,12 @@
25/* 25/*
26 * Authors: Dave Airlie <airlied@redhat.com> 26 * Authors: Dave Airlie <airlied@redhat.com>
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "ast_drv.h" 29#include "ast_drv.h"
30 30
31 31
32#include "drm_fb_helper.h" 32#include <drm/drm_fb_helper.h>
33#include "drm_crtc_helper.h" 33#include <drm/drm_crtc_helper.h>
34 34
35#include "ast_dram_tables.h" 35#include "ast_dram_tables.h"
36 36
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index a712cafcfa1d..a6982b86df9b 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -28,9 +28,9 @@
28 * Authors: Dave Airlie <airlied@redhat.com> 28 * Authors: Dave Airlie <airlied@redhat.com>
29 */ 29 */
30#include <linux/export.h> 30#include <linux/export.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm_crtc.h" 32#include <drm/drm_crtc.h>
33#include "drm_crtc_helper.h" 33#include <drm/drm_crtc_helper.h>
34#include "ast_drv.h" 34#include "ast_drv.h"
35 35
36#include "ast_tables.h" 36#include "ast_tables.h"
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
index 6edbee63b0cb..977cfb35837a 100644
--- a/drivers/gpu/drm/ast/ast_post.c
+++ b/drivers/gpu/drm/ast/ast_post.c
@@ -26,7 +26,7 @@
26 * Authors: Dave Airlie <airlied@redhat.com> 26 * Authors: Dave Airlie <airlied@redhat.com>
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "ast_drv.h" 30#include "ast_drv.h"
31 31
32#include "ast_dram_tables.h" 32#include "ast_dram_tables.h"
diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c
index 6cf2adea66bc..1a026ac2dfb4 100644
--- a/drivers/gpu/drm/ast/ast_ttm.c
+++ b/drivers/gpu/drm/ast/ast_ttm.c
@@ -25,7 +25,7 @@
25/* 25/*
26 * Authors: Dave Airlie <airlied@redhat.com> 26 * Authors: Dave Airlie <airlied@redhat.com>
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "ast_drv.h" 29#include "ast_drv.h"
30#include <ttm/ttm_page_alloc.h> 30#include <ttm/ttm_page_alloc.h>
31 31
diff --git a/drivers/gpu/drm/ati_pcigart.c b/drivers/gpu/drm/ati_pcigart.c
index 9afe495c12c7..c399dea27a3b 100644
--- a/drivers/gpu/drm/ati_pcigart.c
+++ b/drivers/gpu/drm/ati_pcigart.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#include <linux/export.h> 34#include <linux/export.h>
35#include "drmP.h" 35#include <drm/drmP.h>
36 36
37# define ATI_PCIGART_PAGE_SIZE 4096 /**< PCI GART page size */ 37# define ATI_PCIGART_PAGE_SIZE 4096 /**< PCI GART page size */
38 38
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c
index b83a2d7ddd1a..101e423c8991 100644
--- a/drivers/gpu/drm/cirrus/cirrus_drv.c
+++ b/drivers/gpu/drm/cirrus/cirrus_drv.c
@@ -10,8 +10,7 @@
10 */ 10 */
11#include <linux/module.h> 11#include <linux/module.h>
12#include <linux/console.h> 12#include <linux/console.h>
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "drm.h"
15 14
16#include "cirrus_drv.h" 15#include "cirrus_drv.h"
17 16
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h
index 64ea597cb6d3..7f0d71ffba3f 100644
--- a/drivers/gpu/drm/cirrus/cirrus_drv.h
+++ b/drivers/gpu/drm/cirrus/cirrus_drv.h
@@ -15,11 +15,11 @@
15 15
16#include <drm/drm_fb_helper.h> 16#include <drm/drm_fb_helper.h>
17 17
18#include "ttm/ttm_bo_api.h" 18#include <drm/ttm/ttm_bo_api.h>
19#include "ttm/ttm_bo_driver.h" 19#include <drm/ttm/ttm_bo_driver.h>
20#include "ttm/ttm_placement.h" 20#include <drm/ttm/ttm_placement.h>
21#include "ttm/ttm_memory.h" 21#include <drm/ttm/ttm_memory.h>
22#include "ttm/ttm_module.h" 22#include <drm/ttm/ttm_module.h>
23 23
24#define DRIVER_AUTHOR "Matthew Garrett" 24#define DRIVER_AUTHOR "Matthew Garrett"
25 25
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
index 9a276a536992..6c6b4c87d309 100644
--- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c
+++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c
@@ -9,9 +9,8 @@
9 * Dave Airlie 9 * Dave Airlie
10 */ 10 */
11#include <linux/module.h> 11#include <linux/module.h>
12#include "drmP.h" 12#include <drm/drmP.h>
13#include "drm.h" 13#include <drm/drm_fb_helper.h>
14#include "drm_fb_helper.h"
15 14
16#include <linux/fb.h> 15#include <linux/fb.h>
17 16
diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drivers/gpu/drm/cirrus/cirrus_main.c
index e3c122578417..6a9b12e88d46 100644
--- a/drivers/gpu/drm/cirrus/cirrus_main.c
+++ b/drivers/gpu/drm/cirrus/cirrus_main.c
@@ -8,9 +8,8 @@
8 * Authors: Matthew Garrett 8 * Authors: Matthew Garrett
9 * Dave Airlie 9 * Dave Airlie
10 */ 10 */
11#include "drmP.h" 11#include <drm/drmP.h>
12#include "drm.h" 12#include <drm/drm_crtc_helper.h>
13#include "drm_crtc_helper.h"
14 13
15#include "cirrus_drv.h" 14#include "cirrus_drv.h"
16 15
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c
index a44d31aa4e3c..60685b21cc36 100644
--- a/drivers/gpu/drm/cirrus/cirrus_mode.c
+++ b/drivers/gpu/drm/cirrus/cirrus_mode.c
@@ -14,9 +14,8 @@
14 * 14 *
15 * Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com> 15 * Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com>
16 */ 16 */
17#include "drmP.h" 17#include <drm/drmP.h>
18#include "drm.h" 18#include <drm/drm_crtc_helper.h>
19#include "drm_crtc_helper.h"
20 19
21#include <video/cirrus.h> 20#include <video/cirrus.h>
22 21
diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_ttm.c
index 50e170f879de..bc83f835c830 100644
--- a/drivers/gpu/drm/cirrus/cirrus_ttm.c
+++ b/drivers/gpu/drm/cirrus/cirrus_ttm.c
@@ -25,7 +25,7 @@
25/* 25/*
26 * Authors: Dave Airlie <airlied@redhat.com> 26 * Authors: Dave Airlie <airlied@redhat.com>
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "cirrus_drv.h" 29#include "cirrus_drv.h"
30#include <ttm/ttm_page_alloc.h> 30#include <ttm/ttm_page_alloc.h>
31 31
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c
index 0cb2ba50af53..3d8fed179797 100644
--- a/drivers/gpu/drm/drm_agpsupport.c
+++ b/drivers/gpu/drm/drm_agpsupport.c
@@ -31,7 +31,7 @@
31 * OTHER DEALINGS IN THE SOFTWARE. 31 * OTHER DEALINGS IN THE SOFTWARE.
32 */ 32 */
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include <linux/module.h> 35#include <linux/module.h>
36#include <linux/slab.h> 36#include <linux/slab.h>
37 37
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index ba23790450e9..3cedae12b3c1 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -33,7 +33,7 @@
33 * OTHER DEALINGS IN THE SOFTWARE. 33 * OTHER DEALINGS IN THE SOFTWARE.
34 */ 34 */
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37 37
38/** 38/**
39 * Find the file with the given magic number. 39 * Find the file with the given magic number.
diff --git a/drivers/gpu/drm/drm_buffer.c b/drivers/gpu/drm/drm_buffer.c
index 08ccefedb327..39a718340319 100644
--- a/drivers/gpu/drm/drm_buffer.c
+++ b/drivers/gpu/drm/drm_buffer.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include <linux/export.h> 35#include <linux/export.h>
36#include "drm_buffer.h" 36#include <drm/drm_buffer.h>
37 37
38/** 38/**
39 * Allocate the drm buffer object. 39 * Allocate the drm buffer object.
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c
index b356c719f2f1..0128147265f3 100644
--- a/drivers/gpu/drm/drm_bufs.c
+++ b/drivers/gpu/drm/drm_bufs.c
@@ -38,7 +38,7 @@
38#include <linux/log2.h> 38#include <linux/log2.h>
39#include <linux/export.h> 39#include <linux/export.h>
40#include <asm/shmparam.h> 40#include <asm/shmparam.h>
41#include "drmP.h" 41#include <drm/drmP.h>
42 42
43static struct drm_map_list *drm_find_matching_map(struct drm_device *dev, 43static struct drm_map_list *drm_find_matching_map(struct drm_device *dev,
44 struct drm_local_map *map) 44 struct drm_local_map *map)
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c
index 08758e061478..ec4698246213 100644
--- a/drivers/gpu/drm/drm_cache.c
+++ b/drivers/gpu/drm/drm_cache.c
@@ -29,7 +29,7 @@
29 */ 29 */
30 30
31#include <linux/export.h> 31#include <linux/export.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33 33
34#if defined(CONFIG_X86) 34#if defined(CONFIG_X86)
35static void 35static void
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c
index affa629589ac..45adf97e678f 100644
--- a/drivers/gpu/drm/drm_context.c
+++ b/drivers/gpu/drm/drm_context.c
@@ -40,7 +40,7 @@
40 * needed by SiS driver's memory management. 40 * needed by SiS driver's memory management.
41 */ 41 */
42 42
43#include "drmP.h" 43#include <drm/drmP.h>
44 44
45/******************************************************************/ 45/******************************************************************/
46/** \name Context bitmap support */ 46/** \name Context bitmap support */
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 6fbfc244748f..271ffa4fdb47 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -32,11 +32,10 @@
32#include <linux/list.h> 32#include <linux/list.h>
33#include <linux/slab.h> 33#include <linux/slab.h>
34#include <linux/export.h> 34#include <linux/export.h>
35#include "drm.h" 35#include <drm/drmP.h>
36#include "drmP.h" 36#include <drm/drm_crtc.h>
37#include "drm_crtc.h" 37#include <drm/drm_edid.h>
38#include "drm_edid.h" 38#include <drm/drm_fourcc.h>
39#include "drm_fourcc.h"
40 39
41/* Avoid boilerplate. I'm tired of typing. */ 40/* Avoid boilerplate. I'm tired of typing. */
42#define DRM_ENUM_NAME_FN(fnname, list) \ 41#define DRM_ENUM_NAME_FN(fnname, list) \
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 8fa9d52820d9..1227adf74dbc 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -32,12 +32,12 @@
32#include <linux/export.h> 32#include <linux/export.h>
33#include <linux/moduleparam.h> 33#include <linux/moduleparam.h>
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm_crtc.h" 36#include <drm/drm_crtc.h>
37#include "drm_fourcc.h" 37#include <drm/drm_fourcc.h>
38#include "drm_crtc_helper.h" 38#include <drm/drm_crtc_helper.h>
39#include "drm_fb_helper.h" 39#include <drm/drm_fb_helper.h>
40#include "drm_edid.h" 40#include <drm/drm_edid.h>
41 41
42static bool drm_kms_helper_poll = true; 42static bool drm_kms_helper_poll = true;
43module_param_named(poll, drm_kms_helper_poll, bool, 0600); 43module_param_named(poll, drm_kms_helper_poll, bool, 0600);
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
index 70b13fc19396..a05087cf846d 100644
--- a/drivers/gpu/drm/drm_debugfs.c
+++ b/drivers/gpu/drm/drm_debugfs.c
@@ -34,7 +34,7 @@
34#include <linux/seq_file.h> 34#include <linux/seq_file.h>
35#include <linux/slab.h> 35#include <linux/slab.h>
36#include <linux/export.h> 36#include <linux/export.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38 38
39#if defined(CONFIG_DEBUG_FS) 39#if defined(CONFIG_DEBUG_FS)
40 40
diff --git a/drivers/gpu/drm/drm_dma.c b/drivers/gpu/drm/drm_dma.c
index 08f5e5309b22..495b5fd2787c 100644
--- a/drivers/gpu/drm/drm_dma.c
+++ b/drivers/gpu/drm/drm_dma.c
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#include <linux/export.h> 36#include <linux/export.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38 38
39/** 39/**
40 * Initialize the DMA data. 40 * Initialize the DMA data.
diff --git a/drivers/gpu/drm/drm_dp_i2c_helper.c b/drivers/gpu/drm/drm_dp_i2c_helper.c
index f7eba0a0973a..7f246f212457 100644
--- a/drivers/gpu/drm/drm_dp_i2c_helper.c
+++ b/drivers/gpu/drm/drm_dp_i2c_helper.c
@@ -27,8 +27,8 @@
27#include <linux/errno.h> 27#include <linux/errno.h>
28#include <linux/sched.h> 28#include <linux/sched.h>
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include "drm_dp_helper.h" 30#include <drm/drm_dp_helper.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32 32
33/* Run a single AUX_CH I2C transaction, writing/reading data as necessary */ 33/* Run a single AUX_CH I2C transaction, writing/reading data as necessary */
34static int 34static int
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 9238de4009fa..c8fdf03f32c2 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -49,8 +49,8 @@
49#include <linux/debugfs.h> 49#include <linux/debugfs.h>
50#include <linux/slab.h> 50#include <linux/slab.h>
51#include <linux/export.h> 51#include <linux/export.h>
52#include "drmP.h" 52#include <drm/drmP.h>
53#include "drm_core.h" 53#include <drm/drm_core.h>
54 54
55 55
56static int drm_version(struct drm_device *dev, void *data, 56static int drm_version(struct drm_device *dev, void *data,
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index b7ee230572b7..a2e54769344a 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -31,8 +31,8 @@
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/i2c.h> 32#include <linux/i2c.h>
33#include <linux/module.h> 33#include <linux/module.h>
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm_edid.h" 35#include <drm/drm_edid.h>
36#include "drm_edid_modes.h" 36#include "drm_edid_modes.h"
37 37
38#define version_greater(edid, maj, min) \ 38#define version_greater(edid, maj, min) \
diff --git a/drivers/gpu/drm/drm_edid_load.c b/drivers/gpu/drm/drm_edid_load.c
index 0303935d10e2..9d53e6503f9a 100644
--- a/drivers/gpu/drm/drm_edid_load.c
+++ b/drivers/gpu/drm/drm_edid_load.c
@@ -21,10 +21,10 @@
21 21
22#include <linux/module.h> 22#include <linux/module.h>
23#include <linux/firmware.h> 23#include <linux/firmware.h>
24#include "drmP.h" 24#include <drm/drmP.h>
25#include "drm_crtc.h" 25#include <drm/drm_crtc.h>
26#include "drm_crtc_helper.h" 26#include <drm/drm_crtc_helper.h>
27#include "drm_edid.h" 27#include <drm/drm_edid.h>
28 28
29static char edid_firmware[PATH_MAX]; 29static char edid_firmware[PATH_MAX];
30module_param_string(edid_firmware, edid_firmware, sizeof(edid_firmware), 0644); 30module_param_string(edid_firmware, edid_firmware, sizeof(edid_firmware), 0644);
diff --git a/drivers/gpu/drm/drm_edid_modes.h b/drivers/gpu/drm/drm_edid_modes.h
index ff98a7eb38dd..fbd354c1f1f4 100644
--- a/drivers/gpu/drm/drm_edid_modes.h
+++ b/drivers/gpu/drm/drm_edid_modes.h
@@ -24,8 +24,8 @@
24 */ 24 */
25 25
26#include <linux/kernel.h> 26#include <linux/kernel.h>
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_edid.h" 28#include <drm/drm_edid.h>
29 29
30/* 30/*
31 * Autogenerated from the DMT spec. 31 * Autogenerated from the DMT spec.
diff --git a/drivers/gpu/drm/drm_encoder_slave.c b/drivers/gpu/drm/drm_encoder_slave.c
index fb943551060e..63e733408b6d 100644
--- a/drivers/gpu/drm/drm_encoder_slave.c
+++ b/drivers/gpu/drm/drm_encoder_slave.c
@@ -26,7 +26,7 @@
26 26
27#include <linux/module.h> 27#include <linux/module.h>
28 28
29#include "drm_encoder_slave.h" 29#include <drm/drm_encoder_slave.h>
30 30
31/** 31/**
32 * drm_i2c_encoder_init - Initialize an I2C slave encoder 32 * drm_i2c_encoder_init - Initialize an I2C slave encoder
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index f546d1e8af82..dde5c345e75f 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -32,10 +32,10 @@
32#include <linux/slab.h> 32#include <linux/slab.h>
33#include <linux/fb.h> 33#include <linux/fb.h>
34#include <linux/module.h> 34#include <linux/module.h>
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm_crtc.h" 36#include <drm/drm_crtc.h>
37#include "drm_fb_helper.h" 37#include <drm/drm_fb_helper.h>
38#include "drm_crtc_helper.h" 38#include <drm/drm_crtc_helper.h>
39 39
40MODULE_AUTHOR("David Airlie, Jesse Barnes"); 40MODULE_AUTHOR("David Airlie, Jesse Barnes");
41MODULE_DESCRIPTION("DRM KMS helper"); 41MODULE_DESCRIPTION("DRM KMS helper");
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index 433d2fad1fe6..7ef1b673e1be 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -34,7 +34,7 @@
34 * OTHER DEALINGS IN THE SOFTWARE. 34 * OTHER DEALINGS IN THE SOFTWARE.
35 */ 35 */
36 36
37#include "drmP.h" 37#include <drm/drmP.h>
38#include <linux/poll.h> 38#include <linux/poll.h>
39#include <linux/slab.h> 39#include <linux/slab.h>
40#include <linux/module.h> 40#include <linux/module.h>
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index fbe0842038b5..92177d5aedee 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -36,7 +36,7 @@
36#include <linux/pagemap.h> 36#include <linux/pagemap.h>
37#include <linux/shmem_fs.h> 37#include <linux/shmem_fs.h>
38#include <linux/dma-buf.h> 38#include <linux/dma-buf.h>
39#include "drmP.h" 39#include <drm/drmP.h>
40 40
41/** @file drm_gem.c 41/** @file drm_gem.c
42 * 42 *
diff --git a/drivers/gpu/drm/drm_global.c b/drivers/gpu/drm/drm_global.c
index c87dc96444de..f7311162a61d 100644
--- a/drivers/gpu/drm/drm_global.c
+++ b/drivers/gpu/drm/drm_global.c
@@ -31,7 +31,7 @@
31#include <linux/mutex.h> 31#include <linux/mutex.h>
32#include <linux/slab.h> 32#include <linux/slab.h>
33#include <linux/module.h> 33#include <linux/module.h>
34#include "drm_global.h" 34#include <drm/drm_global.h>
35 35
36struct drm_global_item { 36struct drm_global_item {
37 struct mutex mutex; 37 struct mutex mutex;
diff --git a/drivers/gpu/drm/drm_hashtab.c b/drivers/gpu/drm/drm_hashtab.c
index 68dc8744b630..c3745c4d46d8 100644
--- a/drivers/gpu/drm/drm_hashtab.c
+++ b/drivers/gpu/drm/drm_hashtab.c
@@ -32,8 +32,8 @@
32 * Thomas Hellström <thomas-at-tungstengraphics-dot-com> 32 * Thomas Hellström <thomas-at-tungstengraphics-dot-com>
33 */ 33 */
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm_hashtab.h" 36#include <drm/drm_hashtab.h>
37#include <linux/hash.h> 37#include <linux/hash.h>
38#include <linux/slab.h> 38#include <linux/slab.h>
39#include <linux/export.h> 39#include <linux/export.h>
diff --git a/drivers/gpu/drm/drm_info.c b/drivers/gpu/drm/drm_info.c
index eb0af393e6e2..cdf8b1e7602d 100644
--- a/drivers/gpu/drm/drm_info.c
+++ b/drivers/gpu/drm/drm_info.c
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#include <linux/seq_file.h> 36#include <linux/seq_file.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38 38
39/** 39/**
40 * Called when "/proc/dri/.../name" is read. 40 * Called when "/proc/dri/.../name" is read.
diff --git a/drivers/gpu/drm/drm_ioc32.c b/drivers/gpu/drm/drm_ioc32.c
index 637fcc3766c7..2f4c4343dfa3 100644
--- a/drivers/gpu/drm/drm_ioc32.c
+++ b/drivers/gpu/drm/drm_ioc32.c
@@ -31,8 +31,8 @@
31#include <linux/ratelimit.h> 31#include <linux/ratelimit.h>
32#include <linux/export.h> 32#include <linux/export.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm_core.h" 35#include <drm/drm_core.h>
36 36
37#define DRM_IOCTL_VERSION32 DRM_IOWR(0x00, drm_version32_t) 37#define DRM_IOCTL_VERSION32 DRM_IOWR(0x00, drm_version32_t)
38#define DRM_IOCTL_GET_UNIQUE32 DRM_IOWR(0x01, drm_unique32_t) 38#define DRM_IOCTL_GET_UNIQUE32 DRM_IOWR(0x01, drm_unique32_t)
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index 39a43834cef9..23dd97506f28 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -33,11 +33,11 @@
33 * OTHER DEALINGS IN THE SOFTWARE. 33 * OTHER DEALINGS IN THE SOFTWARE.
34 */ 34 */
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37#include "drm_core.h" 37#include <drm/drm_core.h>
38 38
39#include "linux/pci.h" 39#include <linux/pci.h>
40#include "linux/export.h" 40#include <linux/export.h>
41 41
42/** 42/**
43 * Get the bus id. 43 * Get the bus id.
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index 03f16f352fe2..09975ba1a8f7 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -33,7 +33,7 @@
33 * OTHER DEALINGS IN THE SOFTWARE. 33 * OTHER DEALINGS IN THE SOFTWARE.
34 */ 34 */
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37#include "drm_trace.h" 37#include "drm_trace.h"
38 38
39#include <linux/interrupt.h> /* For task queue support */ 39#include <linux/interrupt.h> /* For task queue support */
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c
index 32039553e172..d752c96d6090 100644
--- a/drivers/gpu/drm/drm_lock.c
+++ b/drivers/gpu/drm/drm_lock.c
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#include <linux/export.h> 36#include <linux/export.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38 38
39static int drm_notifier(void *priv); 39static int drm_notifier(void *priv);
40 40
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c
index c86a0f1a435c..126d50ea181f 100644
--- a/drivers/gpu/drm/drm_memory.c
+++ b/drivers/gpu/drm/drm_memory.c
@@ -35,7 +35,7 @@
35 35
36#include <linux/highmem.h> 36#include <linux/highmem.h>
37#include <linux/export.h> 37#include <linux/export.h>
38#include "drmP.h" 38#include <drm/drmP.h>
39 39
40#if __OS_HAS_AGP 40#if __OS_HAS_AGP
41static void *agp_remap(unsigned long offset, unsigned long size, 41static void *agp_remap(unsigned long offset, unsigned long size,
diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c
index 9bb82f7f0061..0761a03cdbb2 100644
--- a/drivers/gpu/drm/drm_mm.c
+++ b/drivers/gpu/drm/drm_mm.c
@@ -41,8 +41,8 @@
41 * Thomas Hellström <thomas-at-tungstengraphics-dot-com> 41 * Thomas Hellström <thomas-at-tungstengraphics-dot-com>
42 */ 42 */
43 43
44#include "drmP.h" 44#include <drm/drmP.h>
45#include "drm_mm.h" 45#include <drm/drm_mm.h>
46#include <linux/slab.h> 46#include <linux/slab.h>
47#include <linux/seq_file.h> 47#include <linux/seq_file.h>
48#include <linux/export.h> 48#include <linux/export.h>
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index 28637c181b15..59450f39bf96 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -33,9 +33,8 @@
33#include <linux/list.h> 33#include <linux/list.h>
34#include <linux/list_sort.h> 34#include <linux/list_sort.h>
35#include <linux/export.h> 35#include <linux/export.h>
36#include "drmP.h" 36#include <drm/drmP.h>
37#include "drm.h" 37#include <drm/drm_crtc.h>
38#include "drm_crtc.h"
39 38
40/** 39/**
41 * drm_mode_debug_printmodeline - debug print a mode 40 * drm_mode_debug_printmodeline - debug print a mode
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index 5320364582ce..ba33144257e5 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -40,7 +40,7 @@
40#include <linux/slab.h> 40#include <linux/slab.h>
41#include <linux/dma-mapping.h> 41#include <linux/dma-mapping.h>
42#include <linux/export.h> 42#include <linux/export.h>
43#include "drmP.h" 43#include <drm/drmP.h>
44 44
45/**********************************************************************/ 45/**********************************************************************/
46/** \name PCI memory */ 46/** \name PCI memory */
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c
index 82431dcae37b..aaeb6f8d69ce 100644
--- a/drivers/gpu/drm/drm_platform.c
+++ b/drivers/gpu/drm/drm_platform.c
@@ -26,7 +26,7 @@
26 */ 26 */
27 27
28#include <linux/export.h> 28#include <linux/export.h>
29#include "drmP.h" 29#include <drm/drmP.h>
30 30
31/** 31/**
32 * Register. 32 * Register.
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index f546ff98a114..7f125738f44e 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -28,7 +28,7 @@
28 28
29#include <linux/export.h> 29#include <linux/export.h>
30#include <linux/dma-buf.h> 30#include <linux/dma-buf.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32 32
33/* 33/*
34 * DMA-BUF/GEM Object references and lifetime overview: 34 * DMA-BUF/GEM Object references and lifetime overview:
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c
index da457b18eaaf..ff5456b7df72 100644
--- a/drivers/gpu/drm/drm_proc.c
+++ b/drivers/gpu/drm/drm_proc.c
@@ -40,7 +40,7 @@
40#include <linux/seq_file.h> 40#include <linux/seq_file.h>
41#include <linux/slab.h> 41#include <linux/slab.h>
42#include <linux/export.h> 42#include <linux/export.h>
43#include "drmP.h" 43#include <drm/drmP.h>
44 44
45/*************************************************** 45/***************************************************
46 * Initialization, etc. 46 * Initialization, etc.
diff --git a/drivers/gpu/drm/drm_scatter.c b/drivers/gpu/drm/drm_scatter.c
index 7525e0311e59..d87f60bbc330 100644
--- a/drivers/gpu/drm/drm_scatter.c
+++ b/drivers/gpu/drm/drm_scatter.c
@@ -33,7 +33,7 @@
33 33
34#include <linux/vmalloc.h> 34#include <linux/vmalloc.h>
35#include <linux/slab.h> 35#include <linux/slab.h>
36#include "drmP.h" 36#include <drm/drmP.h>
37 37
38#define DEBUG_SCATTER 0 38#define DEBUG_SCATTER 0
39 39
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
index 21bcd4a555d8..c236fd27eba6 100644
--- a/drivers/gpu/drm/drm_stub.c
+++ b/drivers/gpu/drm/drm_stub.c
@@ -34,8 +34,8 @@
34#include <linux/module.h> 34#include <linux/module.h>
35#include <linux/moduleparam.h> 35#include <linux/moduleparam.h>
36#include <linux/slab.h> 36#include <linux/slab.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38#include "drm_core.h" 38#include <drm/drm_core.h>
39 39
40unsigned int drm_debug = 0; /* 1 to enable debug output */ 40unsigned int drm_debug = 0; /* 1 to enable debug output */
41EXPORT_SYMBOL(drm_debug); 41EXPORT_SYMBOL(drm_debug);
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 45ac8d6c92b7..05cd8fe062af 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -18,9 +18,9 @@
18#include <linux/err.h> 18#include <linux/err.h>
19#include <linux/export.h> 19#include <linux/export.h>
20 20
21#include "drm_sysfs.h" 21#include <drm/drm_sysfs.h>
22#include "drm_core.h" 22#include <drm/drm_core.h>
23#include "drmP.h" 23#include <drm/drmP.h>
24 24
25#define to_drm_minor(d) container_of(d, struct drm_minor, kdev) 25#define to_drm_minor(d) container_of(d, struct drm_minor, kdev)
26#define to_drm_connector(d) container_of(d, struct drm_connector, kdev) 26#define to_drm_connector(d) container_of(d, struct drm_connector, kdev)
diff --git a/drivers/gpu/drm/drm_trace_points.c b/drivers/gpu/drm/drm_trace_points.c
index 0d0eb90864ae..3bbc4deb4dbc 100644
--- a/drivers/gpu/drm/drm_trace_points.c
+++ b/drivers/gpu/drm/drm_trace_points.c
@@ -1,4 +1,4 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2 2
3#define CREATE_TRACE_POINTS 3#define CREATE_TRACE_POINTS
4#include "drm_trace.h" 4#include "drm_trace.h"
diff --git a/drivers/gpu/drm/drm_usb.c b/drivers/gpu/drm/drm_usb.c
index 37c9a523dd1c..3cec30611417 100644
--- a/drivers/gpu/drm/drm_usb.c
+++ b/drivers/gpu/drm/drm_usb.c
@@ -1,4 +1,4 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include <linux/usb.h> 2#include <linux/usb.h>
3#include <linux/module.h> 3#include <linux/module.h>
4 4
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c
index 961ee08927fe..85a8fa6e09fe 100644
--- a/drivers/gpu/drm/drm_vm.c
+++ b/drivers/gpu/drm/drm_vm.c
@@ -33,7 +33,7 @@
33 * OTHER DEALINGS IN THE SOFTWARE. 33 * OTHER DEALINGS IN THE SOFTWARE.
34 */ 34 */
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37#include <linux/export.h> 37#include <linux/export.h>
38#if defined(__ia64__) 38#if defined(__ia64__)
39#include <linux/efi.h> 39#include <linux/efi.h>
diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c
index 7e1051d07f1f..961a1806a246 100644
--- a/drivers/gpu/drm/exynos/exynos_ddc.c
+++ b/drivers/gpu/drm/exynos/exynos_ddc.c
@@ -11,7 +11,7 @@
11 * 11 *
12 */ 12 */
13 13
14#include "drmP.h" 14#include <drm/drmP.h>
15 15
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/i2c.h> 17#include <linux/i2c.h>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c
index b3cb0a69fbf2..118c117b3226 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_buf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c
@@ -23,9 +23,8 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h" 27#include <drm/exynos_drm.h>
28#include "exynos_drm.h"
29 28
30#include "exynos_drm_drv.h" 29#include "exynos_drm_drv.h"
31#include "exynos_drm_gem.h" 30#include "exynos_drm_gem.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c
index d9568198c300..ad01d3a09c11 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_connector.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c
@@ -25,8 +25,8 @@
25 * OTHER DEALINGS IN THE SOFTWARE. 25 * OTHER DEALINGS IN THE SOFTWARE.
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm_crtc_helper.h" 29#include <drm/drm_crtc_helper.h>
30 30
31#include <drm/exynos_drm.h> 31#include <drm/exynos_drm.h>
32#include "exynos_drm_drv.h" 32#include "exynos_drm_drv.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_core.c b/drivers/gpu/drm/exynos/exynos_drm_core.c
index 84dd099eae3b..19bdf0a194eb 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_core.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_core.c
@@ -26,7 +26,7 @@
26 * OTHER DEALINGS IN THE SOFTWARE. 26 * OTHER DEALINGS IN THE SOFTWARE.
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "exynos_drm_drv.h" 30#include "exynos_drm_drv.h"
31#include "exynos_drm_encoder.h" 31#include "exynos_drm_encoder.h"
32#include "exynos_drm_connector.h" 32#include "exynos_drm_connector.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index abb1e2f8227f..df1e34f0f091 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -26,8 +26,8 @@
26 * OTHER DEALINGS IN THE SOFTWARE. 26 * OTHER DEALINGS IN THE SOFTWARE.
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_crtc_helper.h" 30#include <drm/drm_crtc_helper.h>
31 31
32#include "exynos_drm_drv.h" 32#include "exynos_drm_drv.h"
33#include "exynos_drm_encoder.h" 33#include "exynos_drm_encoder.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
index ae13febe0eaa..fae1f2ec886c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
@@ -23,9 +23,8 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h" 27#include <drm/exynos_drm.h>
28#include "exynos_drm.h"
29#include "exynos_drm_drv.h" 28#include "exynos_drm_drv.h"
30#include "exynos_drm_gem.h" 29#include "exynos_drm_gem.h"
31 30
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index d07071937453..1de7baafddd0 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -25,9 +25,8 @@
25 * OTHER DEALINGS IN THE SOFTWARE. 25 * OTHER DEALINGS IN THE SOFTWARE.
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/drm_crtc_helper.h>
30#include "drm_crtc_helper.h"
31 30
32#include <drm/exynos_drm.h> 31#include <drm/exynos_drm.h>
33 32
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index e22704b249d7..a4ab98b52dd8 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -30,7 +30,6 @@
30#define _EXYNOS_DRM_DRV_H_ 30#define _EXYNOS_DRM_DRV_H_
31 31
32#include <linux/module.h> 32#include <linux/module.h>
33#include "drm.h"
34 33
35#define MAX_CRTC 3 34#define MAX_CRTC 3
36#define MAX_PLANE 5 35#define MAX_PLANE 5
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
index 2c037cd7d2d4..39bd8abff3f1 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -26,8 +26,8 @@
26 * OTHER DEALINGS IN THE SOFTWARE. 26 * OTHER DEALINGS IN THE SOFTWARE.
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_crtc_helper.h" 30#include <drm/drm_crtc_helper.h>
31 31
32#include "exynos_drm_drv.h" 32#include "exynos_drm_drv.h"
33#include "exynos_drm_encoder.h" 33#include "exynos_drm_encoder.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c
index 4ccfe4328fab..53afcc5f0945 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fb.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c
@@ -26,10 +26,10 @@
26 * OTHER DEALINGS IN THE SOFTWARE. 26 * OTHER DEALINGS IN THE SOFTWARE.
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_crtc.h" 30#include <drm/drm_crtc.h>
31#include "drm_crtc_helper.h" 31#include <drm/drm_crtc_helper.h>
32#include "drm_fb_helper.h" 32#include <drm/drm_fb_helper.h>
33 33
34#include "exynos_drm_drv.h" 34#include "exynos_drm_drv.h"
35#include "exynos_drm_fb.h" 35#include "exynos_drm_fb.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
index d5586cc75163..be879c079346 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
@@ -26,10 +26,10 @@
26 * OTHER DEALINGS IN THE SOFTWARE. 26 * OTHER DEALINGS IN THE SOFTWARE.
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_crtc.h" 30#include <drm/drm_crtc.h>
31#include "drm_fb_helper.h" 31#include <drm/drm_fb_helper.h>
32#include "drm_crtc_helper.h" 32#include <drm/drm_crtc_helper.h>
33 33
34#include "exynos_drm_drv.h" 34#include "exynos_drm_drv.h"
35#include "exynos_drm_fb.h" 35#include "exynos_drm_fb.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index b19cd93e7047..58d50e368a58 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -11,7 +11,7 @@
11 * option) any later version. 11 * option) any later version.
12 * 12 *
13 */ 13 */
14#include "drmP.h" 14#include <drm/drmP.h>
15 15
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/module.h> 17#include <linux/module.h>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
index 2526e82bea32..bc2a2e9be8eb 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
@@ -18,8 +18,8 @@
18#include <linux/slab.h> 18#include <linux/slab.h>
19#include <linux/workqueue.h> 19#include <linux/workqueue.h>
20 20
21#include "drmP.h" 21#include <drm/drmP.h>
22#include "exynos_drm.h" 22#include <drm/exynos_drm.h>
23#include "exynos_drm_drv.h" 23#include "exynos_drm_drv.h"
24#include "exynos_drm_gem.h" 24#include "exynos_drm_gem.h"
25 25
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index a38051c95ec4..fcdbe46914f7 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -23,8 +23,7 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h"
28 27
29#include <linux/shmem_fs.h> 28#include <linux/shmem_fs.h>
30#include <drm/exynos_drm.h> 29#include <drm/exynos_drm.h>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
index 3fdf0b65f47e..c3d3a5e4f109 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
@@ -11,7 +11,7 @@
11 * 11 *
12 */ 12 */
13 13
14#include "drmP.h" 14#include <drm/drmP.h>
15 15
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/wait.h> 17#include <linux/wait.h>
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
index e1f94b746bd7..03b472b43013 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
@@ -9,9 +9,9 @@
9 * 9 *
10 */ 10 */
11 11
12#include "drmP.h" 12#include <drm/drmP.h>
13 13
14#include "exynos_drm.h" 14#include <drm/exynos_drm.h>
15#include "exynos_drm_drv.h" 15#include "exynos_drm_drv.h"
16#include "exynos_drm_encoder.h" 16#include "exynos_drm_encoder.h"
17#include "exynos_drm_fb.h" 17#include "exynos_drm_fb.h"
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 537027a74fd5..3e933c911017 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -10,7 +10,7 @@
10 * option) any later version. 10 * option) any later version.
11 * 11 *
12 */ 12 */
13#include "drmP.h" 13#include <drm/drmP.h>
14 14
15#include <linux/kernel.h> 15#include <linux/kernel.h>
16#include <linux/module.h> 16#include <linux/module.h>
@@ -18,8 +18,8 @@
18 18
19#include <drm/exynos_drm.h> 19#include <drm/exynos_drm.h>
20 20
21#include "drm_edid.h" 21#include <drm/drm_edid.h>
22#include "drm_crtc_helper.h" 22#include <drm/drm_crtc_helper.h>
23 23
24#include "exynos_drm_drv.h" 24#include "exynos_drm_drv.h"
25#include "exynos_drm_crtc.h" 25#include "exynos_drm_crtc.h"
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index a6aea6f3ea1a..e1c53956aa27 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -14,9 +14,9 @@
14 * 14 *
15 */ 15 */
16 16
17#include "drmP.h" 17#include <drm/drmP.h>
18#include "drm_edid.h" 18#include <drm/drm_edid.h>
19#include "drm_crtc_helper.h" 19#include <drm/drm_crtc_helper.h>
20 20
21#include "regs-hdmi.h" 21#include "regs-hdmi.h"
22 22
diff --git a/drivers/gpu/drm/exynos/exynos_hdmiphy.c b/drivers/gpu/drm/exynos/exynos_hdmiphy.c
index 9fe2995ab9f9..0a8162b7de3d 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmiphy.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmiphy.c
@@ -11,7 +11,7 @@
11 * 11 *
12 */ 12 */
13 13
14#include "drmP.h" 14#include <drm/drmP.h>
15 15
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/i2c.h> 17#include <linux/i2c.h>
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 25b97d5e5fcb..e6098f247a5d 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -14,7 +14,7 @@
14 * 14 *
15 */ 15 */
16 16
17#include "drmP.h" 17#include <drm/drmP.h>
18 18
19#include "regs-mixer.h" 19#include "regs-mixer.h"
20#include "regs-vp.h" 20#include "regs-vp.h"
diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c
index b7e7b49d8f62..7db0e3bf5a5b 100644
--- a/drivers/gpu/drm/gma500/cdv_device.c
+++ b/drivers/gpu/drm/gma500/cdv_device.c
@@ -20,7 +20,7 @@
20#include <linux/backlight.h> 20#include <linux/backlight.h>
21#include <drm/drmP.h> 21#include <drm/drmP.h>
22#include <drm/drm.h> 22#include <drm/drm.h>
23#include "gma_drm.h" 23#include <drm/gma_drm.h>
24#include "psb_drv.h" 24#include "psb_drv.h"
25#include "psb_reg.h" 25#include "psb_reg.h"
26#include "psb_intel_reg.h" 26#include "psb_intel_reg.h"
diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c
index fc7d144bc2d3..f3a1ae8eb77b 100644
--- a/drivers/gpu/drm/gma500/gem.c
+++ b/drivers/gpu/drm/gma500/gem.c
@@ -25,7 +25,7 @@
25 25
26#include <drm/drmP.h> 26#include <drm/drmP.h>
27#include <drm/drm.h> 27#include <drm/drm.h>
28#include "gma_drm.h" 28#include <drm/gma_drm.h>
29#include "psb_drv.h" 29#include "psb_drv.h"
30 30
31int psb_gem_init_object(struct drm_gem_object *obj) 31int psb_gem_init_object(struct drm_gem_object *obj)
diff --git a/drivers/gpu/drm/gma500/intel_bios.c b/drivers/gpu/drm/gma500/intel_bios.c
index 8d7caf0f363e..a837ee97787c 100644
--- a/drivers/gpu/drm/gma500/intel_bios.c
+++ b/drivers/gpu/drm/gma500/intel_bios.c
@@ -20,7 +20,7 @@
20 */ 20 */
21#include <drm/drmP.h> 21#include <drm/drmP.h>
22#include <drm/drm.h> 22#include <drm/drm.h>
23#include "gma_drm.h" 23#include <drm/gma_drm.h>
24#include "psb_drv.h" 24#include "psb_drv.h"
25#include "psb_intel_drv.h" 25#include "psb_intel_drv.h"
26#include "psb_intel_reg.h" 26#include "psb_intel_reg.h"
diff --git a/drivers/gpu/drm/gma500/intel_gmbus.c b/drivers/gpu/drm/gma500/intel_gmbus.c
index 9db90527bf0f..62cd42e88f28 100644
--- a/drivers/gpu/drm/gma500/intel_gmbus.c
+++ b/drivers/gpu/drm/gma500/intel_gmbus.c
@@ -29,10 +29,9 @@
29#include <linux/module.h> 29#include <linux/module.h>
30#include <linux/i2c.h> 30#include <linux/i2c.h>
31#include <linux/i2c-algo-bit.h> 31#include <linux/i2c-algo-bit.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h"
34#include "psb_intel_drv.h" 33#include "psb_intel_drv.h"
35#include "gma_drm.h" 34#include <drm/gma_drm.h>
36#include "psb_drv.h" 35#include "psb_drv.h"
37#include "psb_intel_reg.h" 36#include "psb_intel_reg.h"
38 37
diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c
index b2a790bd9899..64d18a37da40 100644
--- a/drivers/gpu/drm/gma500/mid_bios.c
+++ b/drivers/gpu/drm/gma500/mid_bios.c
@@ -25,7 +25,7 @@
25 25
26#include <drm/drmP.h> 26#include <drm/drmP.h>
27#include <drm/drm.h> 27#include <drm/drm.h>
28#include "gma_drm.h" 28#include <drm/gma_drm.h>
29#include "psb_drv.h" 29#include "psb_drv.h"
30#include "mid_bios.h" 30#include "mid_bios.h"
31 31
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c
index cf49ba5a54bf..010b820744a5 100644
--- a/drivers/gpu/drm/gma500/oaktrail_device.c
+++ b/drivers/gpu/drm/gma500/oaktrail_device.c
@@ -22,7 +22,7 @@
22#include <linux/dmi.h> 22#include <linux/dmi.h>
23#include <drm/drmP.h> 23#include <drm/drmP.h>
24#include <drm/drm.h> 24#include <drm/drm.h>
25#include "gma_drm.h" 25#include <drm/gma_drm.h>
26#include "psb_drv.h" 26#include "psb_drv.h"
27#include "psb_reg.h" 27#include "psb_reg.h"
28#include "psb_intel_reg.h" 28#include "psb_intel_reg.h"
diff --git a/drivers/gpu/drm/gma500/psb_device.c b/drivers/gpu/drm/gma500/psb_device.c
index 5971bc82b765..7563cd51851a 100644
--- a/drivers/gpu/drm/gma500/psb_device.c
+++ b/drivers/gpu/drm/gma500/psb_device.c
@@ -20,7 +20,7 @@
20#include <linux/backlight.h> 20#include <linux/backlight.h>
21#include <drm/drmP.h> 21#include <drm/drmP.h>
22#include <drm/drm.h> 22#include <drm/drm.h>
23#include "gma_drm.h" 23#include <drm/gma_drm.h>
24#include "psb_drv.h" 24#include "psb_drv.h"
25#include "psb_reg.h" 25#include "psb_reg.h"
26#include "psb_intel_reg.h" 26#include "psb_intel_reg.h"
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index 0c4737438530..dd1fbfa7e467 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -21,7 +21,7 @@
21 21
22#include <drm/drmP.h> 22#include <drm/drmP.h>
23#include <drm/drm.h> 23#include <drm/drm.h>
24#include "gma_drm.h" 24#include <drm/gma_drm.h>
25#include "psb_drv.h" 25#include "psb_drv.h"
26#include "framebuffer.h" 26#include "framebuffer.h"
27#include "psb_reg.h" 27#include "psb_reg.h"
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h
index 1bd115ecefe1..b15282fdbf97 100644
--- a/drivers/gpu/drm/gma500/psb_drv.h
+++ b/drivers/gpu/drm/gma500/psb_drv.h
@@ -23,9 +23,9 @@
23#include <linux/kref.h> 23#include <linux/kref.h>
24 24
25#include <drm/drmP.h> 25#include <drm/drmP.h>
26#include "drm_global.h" 26#include <drm/drm_global.h>
27#include "gem_glue.h" 27#include "gem_glue.h"
28#include "gma_drm.h" 28#include <drm/gma_drm.h>
29#include "psb_reg.h" 29#include "psb_reg.h"
30#include "psb_intel_drv.h" 30#include "psb_intel_drv.h"
31#include "gtt.h" 31#include "gtt.h"
diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
index 0466c7b985f8..c148d92229fd 100644
--- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c
+++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
@@ -29,12 +29,11 @@
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include <linux/delay.h> 31#include <linux/delay.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/drm_crtc.h>
34#include "drm_crtc.h" 34#include <drm/drm_edid.h>
35#include "drm_edid.h"
36#include "psb_intel_drv.h" 35#include "psb_intel_drv.h"
37#include "gma_drm.h" 36#include <drm/gma_drm.h>
38#include "psb_drv.h" 37#include "psb_drv.h"
39#include "psb_intel_sdvo_regs.h" 38#include "psb_intel_sdvo_regs.h"
40#include "psb_intel_reg.h" 39#include "psb_intel_reg.h"
diff --git a/drivers/gpu/drm/i2c/ch7006_priv.h b/drivers/gpu/drm/i2c/ch7006_priv.h
index 09599f4c0c9a..ce577841f931 100644
--- a/drivers/gpu/drm/i2c/ch7006_priv.h
+++ b/drivers/gpu/drm/i2c/ch7006_priv.h
@@ -27,10 +27,10 @@
27#ifndef __DRM_I2C_CH7006_PRIV_H__ 27#ifndef __DRM_I2C_CH7006_PRIV_H__
28#define __DRM_I2C_CH7006_PRIV_H__ 28#define __DRM_I2C_CH7006_PRIV_H__
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm_crtc_helper.h" 31#include <drm/drm_crtc_helper.h>
32#include "drm_encoder_slave.h" 32#include <drm/drm_encoder_slave.h>
33#include "i2c/ch7006.h" 33#include <drm/i2c/ch7006.h>
34 34
35typedef int64_t fixed; 35typedef int64_t fixed;
36#define fixed1 (1LL << 32) 36#define fixed1 (1LL << 32)
diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c
index 30b8ae5e5c4a..002ce7874332 100644
--- a/drivers/gpu/drm/i2c/sil164_drv.c
+++ b/drivers/gpu/drm/i2c/sil164_drv.c
@@ -26,10 +26,10 @@
26 26
27#include <linux/module.h> 27#include <linux/module.h>
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_crtc_helper.h" 30#include <drm/drm_crtc_helper.h>
31#include "drm_encoder_slave.h" 31#include <drm/drm_encoder_slave.h>
32#include "i2c/sil164.h" 32#include <drm/i2c/sil164.h>
33 33
34struct sil164_priv { 34struct sil164_priv {
35 struct sil164_encoder_params config; 35 struct sil164_encoder_params config;
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c
index 463ec6871fe9..004ecdfe1b55 100644
--- a/drivers/gpu/drm/i810/i810_dma.c
+++ b/drivers/gpu/drm/i810/i810_dma.c
@@ -30,9 +30,8 @@
30 * 30 *
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/i810_drm.h>
35#include "i810_drm.h"
36#include "i810_drv.h" 35#include "i810_drv.h"
37#include <linux/interrupt.h> /* For task queue support */ 36#include <linux/interrupt.h> /* For task queue support */
38#include <linux/delay.h> 37#include <linux/delay.h>
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c
index 48cfcca2b350..2e91fc3580b4 100644
--- a/drivers/gpu/drm/i810/i810_drv.c
+++ b/drivers/gpu/drm/i810/i810_drv.c
@@ -32,12 +32,11 @@
32 32
33#include <linux/module.h> 33#include <linux/module.h>
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm.h" 36#include <drm/i810_drm.h>
37#include "i810_drm.h"
38#include "i810_drv.h" 37#include "i810_drv.h"
39 38
40#include "drm_pciids.h" 39#include <drm/drm_pciids.h>
41 40
42static struct pci_device_id pciidlist[] = { 41static struct pci_device_id pciidlist[] = {
43 i810_PCI_IDS 42 i810_PCI_IDS
diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h
index 58914691a77b..573de82c9f5a 100644
--- a/drivers/gpu/drm/i915/dvo.h
+++ b/drivers/gpu/drm/i915/dvo.h
@@ -24,9 +24,8 @@
24#define _INTEL_DVO_H 24#define _INTEL_DVO_H
25 25
26#include <linux/i2c.h> 26#include <linux/i2c.h>
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h" 28#include <drm/drm_crtc.h>
29#include "drm_crtc.h"
30#include "intel_drv.h" 29#include "intel_drv.h"
31 30
32struct intel_dvo_device { 31struct intel_dvo_device {
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 359f6e8b9b00..63f01e29c1fa 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -30,11 +30,10 @@
30#include <linux/debugfs.h> 30#include <linux/debugfs.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/export.h> 32#include <linux/export.h>
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h"
35#include "intel_drv.h" 34#include "intel_drv.h"
36#include "intel_ringbuffer.h" 35#include "intel_ringbuffer.h"
37#include "i915_drm.h" 36#include <drm/i915_drm.h>
38#include "i915_drv.h" 37#include "i915_drv.h"
39 38
40#define DRM_I915_RING_DEBUG 1 39#define DRM_I915_RING_DEBUG 1
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 914c0dfabe60..804f1c98e279 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -28,12 +28,11 @@
28 28
29#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 29#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/drm_crtc_helper.h>
33#include "drm_crtc_helper.h" 33#include <drm/drm_fb_helper.h>
34#include "drm_fb_helper.h"
35#include "intel_drv.h" 34#include "intel_drv.h"
36#include "i915_drm.h" 35#include <drm/i915_drm.h>
37#include "i915_drv.h" 36#include "i915_drv.h"
38#include "i915_trace.h" 37#include "i915_trace.h"
39#include <linux/pci.h> 38#include <linux/pci.h>
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index a24ffbe97c01..f6825324e72d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -28,16 +28,15 @@
28 */ 28 */
29 29
30#include <linux/device.h> 30#include <linux/device.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/i915_drm.h>
33#include "i915_drm.h"
34#include "i915_drv.h" 33#include "i915_drv.h"
35#include "i915_trace.h" 34#include "i915_trace.h"
36#include "intel_drv.h" 35#include "intel_drv.h"
37 36
38#include <linux/console.h> 37#include <linux/console.h>
39#include <linux/module.h> 38#include <linux/module.h>
40#include "drm_crtc_helper.h" 39#include <drm/drm_crtc_helper.h>
41 40
42static int i915_modeset __read_mostly = -1; 41static int i915_modeset __read_mostly = -1;
43module_param_named(modeset, i915_modeset, int, 0400); 42module_param_named(modeset, i915_modeset, int, 0400);
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 274d25de521e..e2c93f7be8ed 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -25,9 +25,8 @@
25 * 25 *
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/i915_drm.h>
30#include "i915_drm.h"
31#include "i915_drv.h" 30#include "i915_drv.h"
32#include "i915_trace.h" 31#include "i915_trace.h"
33#include "intel_drv.h" 32#include "intel_drv.h"
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index a9d58d72bb4d..a21c3dccf436 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -85,8 +85,8 @@
85 * 85 *
86 */ 86 */
87 87
88#include "drmP.h" 88#include <drm/drmP.h>
89#include "i915_drm.h" 89#include <drm/i915_drm.h>
90#include "i915_drv.h" 90#include "i915_drv.h"
91 91
92/* This is a HW constraint. The value below is the largest known requirement 92/* This is a HW constraint. The value below is the largest known requirement
diff --git a/drivers/gpu/drm/i915/i915_gem_debug.c b/drivers/gpu/drm/i915/i915_gem_debug.c
index bddf7bed183f..582e6a5f3dac 100644
--- a/drivers/gpu/drm/i915/i915_gem_debug.c
+++ b/drivers/gpu/drm/i915/i915_gem_debug.c
@@ -25,9 +25,8 @@
25 * 25 *
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/i915_drm.h>
30#include "i915_drm.h"
31#include "i915_drv.h" 30#include "i915_drv.h"
32 31
33#if WATCH_LISTS 32#if WATCH_LISTS
diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
index aa308e1337db..af199596e792 100644
--- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
@@ -23,7 +23,7 @@
23 * Authors: 23 * Authors:
24 * Dave Airlie <airlied@redhat.com> 24 * Dave Airlie <airlied@redhat.com>
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "i915_drv.h" 27#include "i915_drv.h"
28#include <linux/dma-buf.h> 28#include <linux/dma-buf.h>
29 29
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c
index eba0308f10e3..fd408995a783 100644
--- a/drivers/gpu/drm/i915/i915_gem_evict.c
+++ b/drivers/gpu/drm/i915/i915_gem_evict.c
@@ -26,10 +26,9 @@
26 * 26 *
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm.h"
31#include "i915_drv.h" 30#include "i915_drv.h"
32#include "i915_drm.h" 31#include <drm/i915_drm.h>
33#include "i915_trace.h" 32#include "i915_trace.h"
34 33
35static bool 34static bool
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index ff2819ea0813..8dd9a6f47db8 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -26,9 +26,8 @@
26 * 26 *
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm.h" 30#include <drm/i915_drm.h>
31#include "i915_drm.h"
32#include "i915_drv.h" 31#include "i915_drv.h"
33#include "i915_trace.h" 32#include "i915_trace.h"
34#include "intel_drv.h" 33#include "intel_drv.h"
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 60815b861ec2..69261acb94b3 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -22,9 +22,8 @@
22 * 22 *
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h" 26#include <drm/i915_drm.h>
27#include "i915_drm.h"
28#include "i915_drv.h" 27#include "i915_drv.h"
29#include "i915_trace.h" 28#include "i915_trace.h"
30#include "intel_drv.h" 29#include "intel_drv.h"
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
index ada2e90a2a60..8e91083b126f 100644
--- a/drivers/gpu/drm/i915/i915_gem_stolen.c
+++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
@@ -26,9 +26,8 @@
26 * 26 *
27 */ 27 */
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm.h" 30#include <drm/i915_drm.h>
31#include "i915_drm.h"
32#include "i915_drv.h" 31#include "i915_drv.h"
33 32
34/* 33/*
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index b964df51cec7..c2b7b67e410d 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -25,11 +25,10 @@
25 * 25 *
26 */ 26 */
27 27
28#include "linux/string.h" 28#include <linux/string.h>
29#include "linux/bitops.h" 29#include <linux/bitops.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h" 31#include <drm/i915_drm.h>
32#include "i915_drm.h"
33#include "i915_drv.h" 32#include "i915_drv.h"
34 33
35/** @file i915_gem_tiling.c 34/** @file i915_gem_tiling.c
diff --git a/drivers/gpu/drm/i915/i915_ioc32.c b/drivers/gpu/drm/i915/i915_ioc32.c
index 0e72abb9f701..3c59584161c2 100644
--- a/drivers/gpu/drm/i915/i915_ioc32.c
+++ b/drivers/gpu/drm/i915/i915_ioc32.c
@@ -31,9 +31,8 @@
31 */ 31 */
32#include <linux/compat.h> 32#include <linux/compat.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/i915_drm.h>
36#include "i915_drm.h"
37#include "i915_drv.h" 36#include "i915_drv.h"
38 37
39typedef struct _drm_i915_batchbuffer32 { 38typedef struct _drm_i915_batchbuffer32 {
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 5249640cce13..505357886bbb 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -30,9 +30,8 @@
30 30
31#include <linux/sysrq.h> 31#include <linux/sysrq.h>
32#include <linux/slab.h> 32#include <linux/slab.h>
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/i915_drm.h>
35#include "i915_drm.h"
36#include "i915_drv.h" 35#include "i915_drv.h"
37#include "i915_trace.h" 36#include "i915_trace.h"
38#include "intel_drv.h" 37#include "intel_drv.h"
diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c
index 4776ccf1b3cd..5854bddb1e9f 100644
--- a/drivers/gpu/drm/i915/i915_suspend.c
+++ b/drivers/gpu/drm/i915/i915_suspend.c
@@ -24,9 +24,8 @@
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h" 28#include <drm/i915_drm.h>
29#include "i915_drm.h"
30#include "intel_drv.h" 29#include "intel_drv.h"
31#include "i915_reg.h" 30#include "i915_reg.h"
32 31
diff --git a/drivers/gpu/drm/i915/intel_acpi.c b/drivers/gpu/drm/i915/intel_acpi.c
index f413899475e9..bcbbaea2a78e 100644
--- a/drivers/gpu/drm/i915/intel_acpi.c
+++ b/drivers/gpu/drm/i915/intel_acpi.c
@@ -8,7 +8,7 @@
8#include <linux/vga_switcheroo.h> 8#include <linux/vga_switcheroo.h>
9#include <acpi/acpi_drivers.h> 9#include <acpi/acpi_drivers.h>
10 10
11#include "drmP.h" 11#include <drm/drmP.h>
12#include "i915_drv.h" 12#include "i915_drv.h"
13 13
14#define INTEL_DSM_REVISION_ID 1 /* For Calpella anyway... */ 14#define INTEL_DSM_REVISION_ID 1 /* For Calpella anyway... */
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index 8c6074154bf6..0ed6baff4b0c 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -26,9 +26,8 @@
26 */ 26 */
27#include <linux/dmi.h> 27#include <linux/dmi.h>
28#include <drm/drm_dp_helper.h> 28#include <drm/drm_dp_helper.h>
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm.h" 30#include <drm/i915_drm.h>
31#include "i915_drm.h"
32#include "i915_drv.h" 31#include "i915_drv.h"
33#include "intel_bios.h" 32#include "intel_bios.h"
34 33
diff --git a/drivers/gpu/drm/i915/intel_bios.h b/drivers/gpu/drm/i915/intel_bios.h
index 31c2107e7825..36e57f934373 100644
--- a/drivers/gpu/drm/i915/intel_bios.h
+++ b/drivers/gpu/drm/i915/intel_bios.h
@@ -28,7 +28,7 @@
28#ifndef _I830_BIOS_H_ 28#ifndef _I830_BIOS_H_
29#define _I830_BIOS_H_ 29#define _I830_BIOS_H_
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32 32
33struct vbt_header { 33struct vbt_header {
34 u8 signature[20]; /**< Always starts with 'VBT$' */ 34 u8 signature[20]; /**< Always starts with 'VBT$' */
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
index 23bdc8cd1458..c8f1c0db446d 100644
--- a/drivers/gpu/drm/i915/intel_crt.c
+++ b/drivers/gpu/drm/i915/intel_crt.c
@@ -27,13 +27,12 @@
27#include <linux/dmi.h> 27#include <linux/dmi.h>
28#include <linux/i2c.h> 28#include <linux/i2c.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h" 31#include <drm/drm_crtc.h>
32#include "drm_crtc.h" 32#include <drm/drm_crtc_helper.h>
33#include "drm_crtc_helper.h" 33#include <drm/drm_edid.h>
34#include "drm_edid.h"
35#include "intel_drv.h" 34#include "intel_drv.h"
36#include "i915_drm.h" 35#include <drm/i915_drm.h>
37#include "i915_drv.h" 36#include "i915_drv.h"
38 37
39/* Here's the desired hotplug mode */ 38/* Here's the desired hotplug mode */
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index c040aee1341c..7ea9a3ceb269 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -32,13 +32,13 @@
32#include <linux/slab.h> 32#include <linux/slab.h>
33#include <linux/vgaarb.h> 33#include <linux/vgaarb.h>
34#include <drm/drm_edid.h> 34#include <drm/drm_edid.h>
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "intel_drv.h" 36#include "intel_drv.h"
37#include "i915_drm.h" 37#include <drm/i915_drm.h>
38#include "i915_drv.h" 38#include "i915_drv.h"
39#include "i915_trace.h" 39#include "i915_trace.h"
40#include "drm_dp_helper.h" 40#include <drm/drm_dp_helper.h>
41#include "drm_crtc_helper.h" 41#include <drm/drm_crtc_helper.h>
42#include <linux/dma_remapping.h> 42#include <linux/dma_remapping.h>
43 43
44#define HAS_eDP (intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) 44#define HAS_eDP (intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP))
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index ace757af9133..f1bd4f4cd667 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -28,15 +28,14 @@
28#include <linux/i2c.h> 28#include <linux/i2c.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <linux/export.h> 30#include <linux/export.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/drm_crtc.h>
33#include "drm_crtc.h" 33#include <drm/drm_crtc_helper.h>
34#include "drm_crtc_helper.h" 34#include <drm/drm_edid.h>
35#include "drm_edid.h"
36#include "intel_drv.h" 35#include "intel_drv.h"
37#include "i915_drm.h" 36#include <drm/i915_drm.h>
38#include "i915_drv.h" 37#include "i915_drv.h"
39#include "drm_dp_helper.h" 38#include <drm/drm_dp_helper.h>
40 39
41#define DP_RECEIVER_CAP_SIZE 0xf 40#define DP_RECEIVER_CAP_SIZE 0xf
42#define DP_LINK_STATUS_SIZE 6 41#define DP_LINK_STATUS_SIZE 6
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index cd54cf88a28f..7db849052a98 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -26,11 +26,11 @@
26#define __INTEL_DRV_H__ 26#define __INTEL_DRV_H__
27 27
28#include <linux/i2c.h> 28#include <linux/i2c.h>
29#include "i915_drm.h" 29#include <drm/i915_drm.h>
30#include "i915_drv.h" 30#include "i915_drv.h"
31#include "drm_crtc.h" 31#include <drm/drm_crtc.h>
32#include "drm_crtc_helper.h" 32#include <drm/drm_crtc_helper.h>
33#include "drm_fb_helper.h" 33#include <drm/drm_fb_helper.h>
34 34
35#define _wait_for(COND, MS, W) ({ \ 35#define _wait_for(COND, MS, W) ({ \
36 unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \ 36 unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \
diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c
index 36c542e5036b..ac9f2dd5648a 100644
--- a/drivers/gpu/drm/i915/intel_dvo.c
+++ b/drivers/gpu/drm/i915/intel_dvo.c
@@ -26,11 +26,10 @@
26 */ 26 */
27#include <linux/i2c.h> 27#include <linux/i2c.h>
28#include <linux/slab.h> 28#include <linux/slab.h>
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm.h" 30#include <drm/drm_crtc.h>
31#include "drm_crtc.h"
32#include "intel_drv.h" 31#include "intel_drv.h"
33#include "i915_drm.h" 32#include <drm/i915_drm.h>
34#include "i915_drv.h" 33#include "i915_drv.h"
35#include "dvo.h" 34#include "dvo.h"
36 35
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c
index 97f673523b97..7b30b5c2c4ee 100644
--- a/drivers/gpu/drm/i915/intel_fb.c
+++ b/drivers/gpu/drm/i915/intel_fb.c
@@ -36,12 +36,11 @@
36#include <linux/init.h> 36#include <linux/init.h>
37#include <linux/vga_switcheroo.h> 37#include <linux/vga_switcheroo.h>
38 38
39#include "drmP.h" 39#include <drm/drmP.h>
40#include "drm.h" 40#include <drm/drm_crtc.h>
41#include "drm_crtc.h" 41#include <drm/drm_fb_helper.h>
42#include "drm_fb_helper.h"
43#include "intel_drv.h" 42#include "intel_drv.h"
44#include "i915_drm.h" 43#include <drm/i915_drm.h>
45#include "i915_drv.h" 44#include "i915_drv.h"
46 45
47static struct fb_ops intelfb_ops = { 46static struct fb_ops intelfb_ops = {
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index 12dc3308ab8c..025be7dd2a27 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -29,12 +29,11 @@
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include <linux/delay.h> 31#include <linux/delay.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/drm_crtc.h>
34#include "drm_crtc.h" 34#include <drm/drm_edid.h>
35#include "drm_edid.h"
36#include "intel_drv.h" 35#include "intel_drv.h"
37#include "i915_drm.h" 36#include <drm/i915_drm.h>
38#include "i915_drv.h" 37#include "i915_drv.h"
39 38
40static void 39static void
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c
index b9755f6378d8..c2c6dbc0971c 100644
--- a/drivers/gpu/drm/i915/intel_i2c.c
+++ b/drivers/gpu/drm/i915/intel_i2c.c
@@ -29,10 +29,9 @@
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include <linux/i2c-algo-bit.h> 30#include <linux/i2c-algo-bit.h>
31#include <linux/export.h> 31#include <linux/export.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h"
34#include "intel_drv.h" 33#include "intel_drv.h"
35#include "i915_drm.h" 34#include <drm/i915_drm.h>
36#include "i915_drv.h" 35#include "i915_drv.h"
37 36
38struct gmbus_port { 37struct gmbus_port {
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index e9a6f6aaed85..8552be9f5db1 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -31,12 +31,11 @@
31#include <linux/dmi.h> 31#include <linux/dmi.h>
32#include <linux/i2c.h> 32#include <linux/i2c.h>
33#include <linux/slab.h> 33#include <linux/slab.h>
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/drm_crtc.h>
36#include "drm_crtc.h" 36#include <drm/drm_edid.h>
37#include "drm_edid.h"
38#include "intel_drv.h" 37#include "intel_drv.h"
39#include "i915_drm.h" 38#include <drm/i915_drm.h>
40#include "i915_drv.h" 39#include "i915_drv.h"
41#include <linux/acpi.h> 40#include <linux/acpi.h>
42 41
diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c
index 29b72593fbb2..cc71fd9aaed5 100644
--- a/drivers/gpu/drm/i915/intel_modes.c
+++ b/drivers/gpu/drm/i915/intel_modes.c
@@ -27,8 +27,8 @@
27#include <linux/i2c.h> 27#include <linux/i2c.h>
28#include <linux/fb.h> 28#include <linux/fb.h>
29#include <drm/drm_edid.h> 29#include <drm/drm_edid.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm_edid.h" 31#include <drm/drm_edid.h>
32#include "intel_drv.h" 32#include "intel_drv.h"
33#include "i915_drv.h" 33#include "i915_drv.h"
34 34
diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c
index 18bd0af855dc..5cc624eb6133 100644
--- a/drivers/gpu/drm/i915/intel_opregion.c
+++ b/drivers/gpu/drm/i915/intel_opregion.c
@@ -31,8 +31,8 @@
31#include <linux/acpi_io.h> 31#include <linux/acpi_io.h>
32#include <acpi/video.h> 32#include <acpi/video.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "i915_drm.h" 35#include <drm/i915_drm.h>
36#include "i915_drv.h" 36#include "i915_drv.h"
37#include "intel_drv.h" 37#include "intel_drv.h"
38 38
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 830d0dd610e1..10510221d763 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -25,9 +25,8 @@
25 * 25 *
26 * Derived from Xorg ddx, xf86-video-intel, src/i830_video.c 26 * Derived from Xorg ddx, xf86-video-intel, src/i830_video.c
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/i915_drm.h>
30#include "i915_drm.h"
31#include "i915_drv.h" 30#include "i915_drv.h"
32#include "i915_reg.h" 31#include "i915_reg.h"
33#include "intel_drv.h" 32#include "intel_drv.h"
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e2a73b38abe9..1aef516cc6fa 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -27,10 +27,9 @@
27 * 27 *
28 */ 28 */
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h"
32#include "i915_drv.h" 31#include "i915_drv.h"
33#include "i915_drm.h" 32#include <drm/i915_drm.h>
34#include "i915_trace.h" 33#include "i915_trace.h"
35#include "intel_drv.h" 34#include "intel_drv.h"
36 35
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 123afd357611..d251d9d7a06c 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -29,12 +29,11 @@
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <linux/delay.h> 30#include <linux/delay.h>
31#include <linux/export.h> 31#include <linux/export.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/drm_crtc.h>
34#include "drm_crtc.h" 34#include <drm/drm_edid.h>
35#include "drm_edid.h"
36#include "intel_drv.h" 35#include "intel_drv.h"
37#include "i915_drm.h" 36#include <drm/i915_drm.h>
38#include "i915_drv.h" 37#include "i915_drv.h"
39#include "intel_sdvo_regs.h" 38#include "intel_sdvo_regs.h"
40 39
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 7644f31a3778..82f5e5c7009d 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -29,11 +29,11 @@
29 * registers; newer ones are much simpler and we can use the new DRM plane 29 * registers; newer ones are much simpler and we can use the new DRM plane
30 * support. 30 * support.
31 */ 31 */
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm_crtc.h" 33#include <drm/drm_crtc.h>
34#include "drm_fourcc.h" 34#include <drm/drm_fourcc.h>
35#include "intel_drv.h" 35#include "intel_drv.h"
36#include "i915_drm.h" 36#include <drm/i915_drm.h>
37#include "i915_drv.h" 37#include "i915_drv.h"
38 38
39static void 39static void
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index befce6c49704..ccfb2ff4c31d 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -30,12 +30,11 @@
30 * Integrated TV-out support for the 915GM and 945GM. 30 * Integrated TV-out support for the 915GM and 945GM.
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/drm_crtc.h>
35#include "drm_crtc.h" 35#include <drm/drm_edid.h>
36#include "drm_edid.h"
37#include "intel_drv.h" 36#include "intel_drv.h"
38#include "i915_drm.h" 37#include <drm/i915_drm.h>
39#include "i915_drv.h" 38#include "i915_drv.h"
40 39
41enum tv_margin { 40enum tv_margin {
diff --git a/drivers/gpu/drm/mga/mga_dma.c b/drivers/gpu/drm/mga/mga_dma.c
index 507aa3df0168..cc3166dd445a 100644
--- a/drivers/gpu/drm/mga/mga_dma.c
+++ b/drivers/gpu/drm/mga/mga_dma.c
@@ -35,10 +35,8 @@
35 * \author Gareth Hughes <gareth@valinux.com> 35 * \author Gareth Hughes <gareth@valinux.com>
36 */ 36 */
37 37
38#include "drmP.h" 38#include <drm/drmP.h>
39#include "drm.h" 39#include <drm/mga_drm.h>
40#include "drm_sarea.h"
41#include "mga_drm.h"
42#include "mga_drv.h" 40#include "mga_drv.h"
43 41
44#define MGA_DEFAULT_USEC_TIMEOUT 10000 42#define MGA_DEFAULT_USEC_TIMEOUT 10000
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c
index b1bb46de3f5a..17d0a637e4fb 100644
--- a/drivers/gpu/drm/mga/mga_drv.c
+++ b/drivers/gpu/drm/mga/mga_drv.c
@@ -31,12 +31,11 @@
31 31
32#include <linux/module.h> 32#include <linux/module.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/mga_drm.h>
36#include "mga_drm.h"
37#include "mga_drv.h" 36#include "mga_drv.h"
38 37
39#include "drm_pciids.h" 38#include <drm/drm_pciids.h>
40 39
41static int mga_driver_device_is_agp(struct drm_device *dev); 40static int mga_driver_device_is_agp(struct drm_device *dev);
42 41
diff --git a/drivers/gpu/drm/mga/mga_ioc32.c b/drivers/gpu/drm/mga/mga_ioc32.c
index c1f877b7bac1..709e90db8c40 100644
--- a/drivers/gpu/drm/mga/mga_ioc32.c
+++ b/drivers/gpu/drm/mga/mga_ioc32.c
@@ -32,9 +32,8 @@
32 */ 32 */
33#include <linux/compat.h> 33#include <linux/compat.h>
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm.h" 36#include <drm/mga_drm.h>
37#include "mga_drm.h"
38 37
39typedef struct drm32_mga_init { 38typedef struct drm32_mga_init {
40 int func; 39 int func;
diff --git a/drivers/gpu/drm/mga/mga_irq.c b/drivers/gpu/drm/mga/mga_irq.c
index 2581202297e4..598c281def0a 100644
--- a/drivers/gpu/drm/mga/mga_irq.c
+++ b/drivers/gpu/drm/mga/mga_irq.c
@@ -31,9 +31,8 @@
31 * Eric Anholt <anholt@FreeBSD.org> 31 * Eric Anholt <anholt@FreeBSD.org>
32 */ 32 */
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/mga_drm.h>
36#include "mga_drm.h"
37#include "mga_drv.h" 36#include "mga_drv.h"
38 37
39u32 mga_get_vblank_counter(struct drm_device *dev, int crtc) 38u32 mga_get_vblank_counter(struct drm_device *dev, int crtc)
diff --git a/drivers/gpu/drm/mga/mga_state.c b/drivers/gpu/drm/mga/mga_state.c
index 9ce2827f8c00..9c145143ad0f 100644
--- a/drivers/gpu/drm/mga/mga_state.c
+++ b/drivers/gpu/drm/mga/mga_state.c
@@ -32,9 +32,8 @@
32 * Gareth Hughes <gareth@valinux.com> 32 * Gareth Hughes <gareth@valinux.com>
33 */ 33 */
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm.h" 36#include <drm/mga_drm.h>
37#include "mga_drm.h"
38#include "mga_drv.h" 37#include "mga_drv.h"
39 38
40/* ================================================================ 39/* ================================================================
diff --git a/drivers/gpu/drm/mga/mga_warp.c b/drivers/gpu/drm/mga/mga_warp.c
index 722a91b69b0c..0b76352260a9 100644
--- a/drivers/gpu/drm/mga/mga_warp.c
+++ b/drivers/gpu/drm/mga/mga_warp.c
@@ -32,9 +32,8 @@
32#include <linux/platform_device.h> 32#include <linux/platform_device.h>
33#include <linux/module.h> 33#include <linux/module.h>
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "drm.h" 36#include <drm/mga_drm.h>
37#include "mga_drm.h"
38#include "mga_drv.h" 37#include "mga_drv.h"
39 38
40#define FIRMWARE_G200 "matrox/g200_warp.fw" 39#define FIRMWARE_G200 "matrox/g200_warp.fw"
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c
index e5f145d2cb3b..1e910117b0a2 100644
--- a/drivers/gpu/drm/mgag200/mgag200_drv.c
+++ b/drivers/gpu/drm/mgag200/mgag200_drv.c
@@ -10,12 +10,11 @@
10 */ 10 */
11#include <linux/module.h> 11#include <linux/module.h>
12#include <linux/console.h> 12#include <linux/console.h>
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "drm.h"
15 14
16#include "mgag200_drv.h" 15#include "mgag200_drv.h"
17 16
18#include "drm_pciids.h" 17#include <drm/drm_pciids.h>
19 18
20/* 19/*
21 * This is the generic driver code. This binds the driver to the drm core, 20 * This is the generic driver code. This binds the driver to the drm core,
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h
index 6f13b3563234..73868d0c25ae 100644
--- a/drivers/gpu/drm/mgag200/mgag200_drv.h
+++ b/drivers/gpu/drm/mgag200/mgag200_drv.h
@@ -15,12 +15,12 @@
15 15
16#include <video/vga.h> 16#include <video/vga.h>
17 17
18#include "drm/drm_fb_helper.h" 18#include <drm/drm_fb_helper.h>
19#include "ttm/ttm_bo_api.h" 19#include <drm/ttm/ttm_bo_api.h>
20#include "ttm/ttm_bo_driver.h" 20#include <drm/ttm/ttm_bo_driver.h>
21#include "ttm/ttm_placement.h" 21#include <drm/ttm/ttm_placement.h>
22#include "ttm/ttm_memory.h" 22#include <drm/ttm/ttm_memory.h>
23#include "ttm/ttm_module.h" 23#include <drm/ttm/ttm_module.h>
24 24
25#include <linux/i2c.h> 25#include <linux/i2c.h>
26#include <linux/i2c-algo-bit.h> 26#include <linux/i2c-algo-bit.h>
diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c
index 880d3369760e..2f486481d79a 100644
--- a/drivers/gpu/drm/mgag200/mgag200_fb.c
+++ b/drivers/gpu/drm/mgag200/mgag200_fb.c
@@ -11,9 +11,8 @@
11 * Dave Airlie 11 * Dave Airlie
12 */ 12 */
13#include <linux/module.h> 13#include <linux/module.h>
14#include "drmP.h" 14#include <drm/drmP.h>
15#include "drm.h" 15#include <drm/drm_fb_helper.h>
16#include "drm_fb_helper.h"
17 16
18#include <linux/fb.h> 17#include <linux/fb.h>
19 18
diff --git a/drivers/gpu/drm/mgag200/mgag200_i2c.c b/drivers/gpu/drm/mgag200/mgag200_i2c.c
index dd3568a1b6b0..5a88ec51b513 100644
--- a/drivers/gpu/drm/mgag200/mgag200_i2c.c
+++ b/drivers/gpu/drm/mgag200/mgag200_i2c.c
@@ -28,8 +28,7 @@
28#include <linux/export.h> 28#include <linux/export.h>
29#include <linux/i2c.h> 29#include <linux/i2c.h>
30#include <linux/i2c-algo-bit.h> 30#include <linux/i2c-algo-bit.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h"
33 32
34#include "mgag200_drv.h" 33#include "mgag200_drv.h"
35 34
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c
index 636a81cd2f37..d6a1aae33701 100644
--- a/drivers/gpu/drm/mgag200/mgag200_main.c
+++ b/drivers/gpu/drm/mgag200/mgag200_main.c
@@ -10,9 +10,8 @@
10 * Matt Turner 10 * Matt Turner
11 * Dave Airlie 11 * Dave Airlie
12 */ 12 */
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "drm.h" 14#include <drm/drm_crtc_helper.h>
15#include "drm_crtc_helper.h"
16#include "mgag200_drv.h" 15#include "mgag200_drv.h"
17 16
18static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb) 17static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb)
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
index b69642d5d850..3d429de0771a 100644
--- a/drivers/gpu/drm/mgag200/mgag200_mode.c
+++ b/drivers/gpu/drm/mgag200/mgag200_mode.c
@@ -13,9 +13,8 @@
13 13
14#include <linux/delay.h> 14#include <linux/delay.h>
15 15
16#include "drmP.h" 16#include <drm/drmP.h>
17#include "drm.h" 17#include <drm/drm_crtc_helper.h>
18#include "drm_crtc_helper.h"
19 18
20#include "mgag200_drv.h" 19#include "mgag200_drv.h"
21 20
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c
index b223dcb7a710..1504699666c4 100644
--- a/drivers/gpu/drm/mgag200/mgag200_ttm.c
+++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c
@@ -25,7 +25,7 @@
25/* 25/*
26 * Authors: Dave Airlie <airlied@redhat.com> 26 * Authors: Dave Airlie <airlied@redhat.com>
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "mgag200_drv.h" 29#include "mgag200_drv.h"
30#include <ttm/ttm_page_alloc.h> 30#include <ttm/ttm_page_alloc.h>
31 31
diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c b/drivers/gpu/drm/nouveau/nouveau_abi16.c
index 3ca240b4413d..111d9eba7065 100644
--- a/drivers/gpu/drm/nouveau/nouveau_abi16.c
+++ b/drivers/gpu/drm/nouveau/nouveau_abi16.c
@@ -21,7 +21,7 @@
21 * 21 *
22 */ 22 */
23 23
24#include "drmP.h" 24#include <drm/drmP.h>
25 25
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c
index 26ebffebe710..dea42bc515ec 100644
--- a/drivers/gpu/drm/nouveau/nouveau_acpi.c
+++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -7,12 +7,10 @@
7#include <acpi/acpi.h> 7#include <acpi/acpi.h>
8#include <linux/mxm-wmi.h> 8#include <linux/mxm-wmi.h>
9 9
10#include "drmP.h" 10#include <drm/drmP.h>
11#include "drm.h" 11#include <drm/drm_crtc_helper.h>
12#include "drm_sarea.h"
13#include "drm_crtc_helper.h"
14#include "nouveau_drv.h" 12#include "nouveau_drv.h"
15#include "nouveau_drm.h" 13#include <drm/nouveau_drm.h>
16#include "nv50_display.h" 14#include "nv50_display.h"
17#include "nouveau_connector.h" 15#include "nouveau_connector.h"
18 16
diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c
index fa22b28e8777..2036748e56b4 100644
--- a/drivers/gpu/drm/nouveau/nouveau_backlight.c
+++ b/drivers/gpu/drm/nouveau/nouveau_backlight.c
@@ -33,9 +33,9 @@
33#include <linux/backlight.h> 33#include <linux/backlight.h>
34#include <linux/acpi.h> 34#include <linux/acpi.h>
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37#include "nouveau_drv.h" 37#include "nouveau_drv.h"
38#include "nouveau_drm.h" 38#include <drm/nouveau_drm.h>
39#include "nouveau_reg.h" 39#include "nouveau_reg.h"
40#include "nouveau_encoder.h" 40#include "nouveau_encoder.h"
41 41
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index a0a3fe3c016b..a84290562ca7 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -22,7 +22,7 @@
22 * SOFTWARE. 22 * SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#define NV_DEBUG_NOTRACE 26#define NV_DEBUG_NOTRACE
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_hw.h" 28#include "nouveau_hw.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 7f80ed523562..4ee2e7ff92d2 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -27,10 +27,10 @@
27 * Jeremy Kolb <jkolb@brandeis.edu> 27 * Jeremy Kolb <jkolb@brandeis.edu>
28 */ 28 */
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "ttm/ttm_page_alloc.h" 31#include <drm/ttm/ttm_page_alloc.h>
32 32
33#include "nouveau_drm.h" 33#include <drm/nouveau_drm.h>
34#include "nouveau_drv.h" 34#include "nouveau_drv.h"
35#include "nouveau_dma.h" 35#include "nouveau_dma.h"
36#include "nouveau_mm.h" 36#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_calc.c b/drivers/gpu/drm/nouveau/nouveau_calc.c
index dad96cce5e39..2c5eb5d8d556 100644
--- a/drivers/gpu/drm/nouveau/nouveau_calc.c
+++ b/drivers/gpu/drm/nouveau/nouveau_calc.c
@@ -21,7 +21,7 @@
21 * SOFTWARE. 21 * SOFTWARE.
22 */ 22 */
23 23
24#include "drmP.h" 24#include <drm/drmP.h>
25#include "nouveau_drv.h" 25#include "nouveau_drv.h"
26#include "nouveau_hw.h" 26#include "nouveau_hw.h"
27 27
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c
index debd90225a88..cd180c678c13 100644
--- a/drivers/gpu/drm/nouveau/nouveau_channel.c
+++ b/drivers/gpu/drm/nouveau/nouveau_channel.c
@@ -22,10 +22,9 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h"
27#include "nouveau_drv.h" 26#include "nouveau_drv.h"
28#include "nouveau_drm.h" 27#include <drm/nouveau_drm.h>
29#include "nouveau_dma.h" 28#include "nouveau_dma.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index 7b11edb077d0..abb92de98573 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -26,9 +26,9 @@
26 26
27#include <acpi/button.h> 27#include <acpi/button.h>
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "drm_edid.h" 30#include <drm/drm_edid.h>
31#include "drm_crtc_helper.h" 31#include <drm/drm_crtc_helper.h>
32 32
33#include "nouveau_reg.h" 33#include "nouveau_reg.h"
34#include "nouveau_drv.h" 34#include "nouveau_drv.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.h b/drivers/gpu/drm/nouveau/nouveau_connector.h
index e4857021304c..e1c1567c0c1a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.h
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.h
@@ -27,7 +27,7 @@
27#ifndef __NOUVEAU_CONNECTOR_H__ 27#ifndef __NOUVEAU_CONNECTOR_H__
28#define __NOUVEAU_CONNECTOR_H__ 28#define __NOUVEAU_CONNECTOR_H__
29 29
30#include "drm_edid.h" 30#include <drm/drm_edid.h>
31#include "nouveau_i2c.h" 31#include "nouveau_i2c.h"
32 32
33enum nouveau_underscan_type { 33enum nouveau_underscan_type {
diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
index 188c92b327e2..f68cb5e71893 100644
--- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c
+++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
@@ -30,7 +30,7 @@
30 30
31#include <linux/debugfs.h> 31#include <linux/debugfs.h>
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "nouveau_drv.h" 34#include "nouveau_drv.h"
35 35
36#include <ttm/ttm_page_alloc.h> 36#include <ttm/ttm_page_alloc.h>
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 7e16dc5e6467..e4eeeaf20fdf 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -24,8 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30#include "nouveau_fb.h" 30#include "nouveau_fb.h"
31#include "nouveau_fbcon.h" 31#include "nouveau_fbcon.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c b/drivers/gpu/drm/nouveau/nouveau_dma.c
index 295932e66ac5..47d041269f65 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dma.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_dma.h" 29#include "nouveau_dma.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c
index 7e289d2ad8e4..898e5e32293c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dp.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dp.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_i2c.h" 28#include "nouveau_i2c.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index 9a36f5f39b06..8b5e558d7c73 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -25,9 +25,8 @@
25#include <linux/console.h> 25#include <linux/console.h>
26#include <linux/module.h> 26#include <linux/module.h>
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/drm_crtc_helper.h>
30#include "drm_crtc_helper.h"
31#include "nouveau_drv.h" 30#include "nouveau_drv.h"
32#include "nouveau_abi16.h" 31#include "nouveau_abi16.h"
33#include "nouveau_hw.h" 32#include "nouveau_hw.h"
@@ -37,7 +36,7 @@
37#include "nouveau_fifo.h" 36#include "nouveau_fifo.h"
38#include "nv50_display.h" 37#include "nv50_display.h"
39 38
40#include "drm_pciids.h" 39#include <drm/drm_pciids.h>
41 40
42MODULE_PARM_DESC(agpmode, "AGP mode (0 to disable AGP)"); 41MODULE_PARM_DESC(agpmode, "AGP mode (0 to disable AGP)");
43int nouveau_agpmode = -1; 42int nouveau_agpmode = -1;
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 4f2cc95ce264..543c79bd958c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -39,11 +39,11 @@
39#define NOUVEAU_FAMILY 0x0000FFFF 39#define NOUVEAU_FAMILY 0x0000FFFF
40#define NOUVEAU_FLAGS 0xFFFF0000 40#define NOUVEAU_FLAGS 0xFFFF0000
41 41
42#include "ttm/ttm_bo_api.h" 42#include <drm/ttm/ttm_bo_api.h>
43#include "ttm/ttm_bo_driver.h" 43#include <drm/ttm/ttm_bo_driver.h>
44#include "ttm/ttm_placement.h" 44#include <drm/ttm/ttm_placement.h>
45#include "ttm/ttm_memory.h" 45#include <drm/ttm/ttm_memory.h>
46#include "ttm/ttm_module.h" 46#include <drm/ttm/ttm_module.h>
47 47
48struct nouveau_fpriv { 48struct nouveau_fpriv {
49 spinlock_t lock; 49 spinlock_t lock;
@@ -59,7 +59,7 @@ nouveau_fpriv(struct drm_file *file_priv)
59 59
60#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) 60#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
61 61
62#include "nouveau_drm.h" 62#include <drm/nouveau_drm.h>
63#include "nouveau_reg.h" 63#include "nouveau_reg.h"
64#include "nouveau_bios.h" 64#include "nouveau_bios.h"
65#include "nouveau_util.h" 65#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_encoder.h b/drivers/gpu/drm/nouveau/nouveau_encoder.h
index 3dc14a3dcc4c..db07b978946e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_encoder.h
+++ b/drivers/gpu/drm/nouveau/nouveau_encoder.h
@@ -27,7 +27,7 @@
27#ifndef __NOUVEAU_ENCODER_H__ 27#ifndef __NOUVEAU_ENCODER_H__
28#define __NOUVEAU_ENCODER_H__ 28#define __NOUVEAU_ENCODER_H__
29 29
30#include "drm_encoder_slave.h" 30#include <drm/drm_encoder_slave.h>
31#include "nouveau_drv.h" 31#include "nouveau_drv.h"
32 32
33#define NV_DPMS_CLEARED 0x80 33#define NV_DPMS_CLEARED 0x80
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
index 1074bc5dd418..7e41a4006087 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -38,13 +38,12 @@
38#include <linux/vga_switcheroo.h> 38#include <linux/vga_switcheroo.h>
39#include <linux/console.h> 39#include <linux/console.h>
40 40
41#include "drmP.h" 41#include <drm/drmP.h>
42#include "drm.h" 42#include <drm/drm_crtc.h>
43#include "drm_crtc.h" 43#include <drm/drm_crtc_helper.h>
44#include "drm_crtc_helper.h" 44#include <drm/drm_fb_helper.h>
45#include "drm_fb_helper.h"
46#include "nouveau_drv.h" 45#include "nouveau_drv.h"
47#include "nouveau_drm.h" 46#include <drm/nouveau_drm.h>
48#include "nouveau_crtc.h" 47#include "nouveau_crtc.h"
49#include "nouveau_fb.h" 48#include "nouveau_fb.h"
50#include "nouveau_fbcon.h" 49#include "nouveau_fbcon.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.h b/drivers/gpu/drm/nouveau/nouveau_fbcon.h
index b73c29f87fc3..1f2d27893438 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.h
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.h
@@ -27,7 +27,7 @@
27#ifndef __NOUVEAU_FBCON_H__ 27#ifndef __NOUVEAU_FBCON_H__
28#define __NOUVEAU_FBCON_H__ 28#define __NOUVEAU_FBCON_H__
29 29
30#include "drm_fb_helper.h" 30#include <drm/drm_fb_helper.h>
31 31
32#include "nouveau_fb.h" 32#include "nouveau_fb.h"
33struct nouveau_fbdev { 33struct nouveau_fbdev {
diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c
index 3c180493dab8..614df7b958ca 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fence.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fence.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29 28
30#include <linux/ktime.h> 29#include <linux/ktime.h>
31#include <linux/hrtimer.h> 30#include <linux/hrtimer.h>
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index af7cfb825716..8461a4f5710f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -24,11 +24,10 @@
24 * 24 *
25 */ 25 */
26#include <linux/dma-buf.h> 26#include <linux/dma-buf.h>
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29 28
30#include "nouveau_drv.h" 29#include "nouveau_drv.h"
31#include "nouveau_drm.h" 30#include <drm/nouveau_drm.h>
32#include "nouveau_dma.h" 31#include "nouveau_dma.h"
33#include "nouveau_fence.h" 32#include "nouveau_fence.h"
34 33
diff --git a/drivers/gpu/drm/nouveau/nouveau_gpio.c b/drivers/gpu/drm/nouveau/nouveau_gpio.c
index 0fe4e17c461d..ded74e555e5f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gpio.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gpio.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_i2c.h" 27#include "nouveau_i2c.h"
28#include "nouveau_gpio.h" 28#include "nouveau_gpio.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_gpuobj.c b/drivers/gpu/drm/nouveau/nouveau_gpuobj.c
index bd79fedb7054..1af7a39e0350 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gpuobj.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gpuobj.c
@@ -30,10 +30,9 @@
30 * Ben Skeggs <darktama@iinet.net.au> 30 * Ben Skeggs <darktama@iinet.net.au>
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h"
35#include "nouveau_drv.h" 34#include "nouveau_drv.h"
36#include "nouveau_drm.h" 35#include <drm/nouveau_drm.h>
37#include "nouveau_fifo.h" 36#include "nouveau_fifo.h"
38#include "nouveau_ramht.h" 37#include "nouveau_ramht.h"
39#include "nouveau_software.h" 38#include "nouveau_software.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_hdmi.c b/drivers/gpu/drm/nouveau/nouveau_hdmi.c
index c3de36384522..1e942cfb9644 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hdmi.c
+++ b/drivers/gpu/drm/nouveau/nouveau_hdmi.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_connector.h" 27#include "nouveau_connector.h"
28#include "nouveau_encoder.h" 28#include "nouveau_encoder.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c b/drivers/gpu/drm/nouveau/nouveau_hw.c
index b87ad3bd7739..6eabc2ea0c7d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hw.c
+++ b/drivers/gpu/drm/nouveau/nouveau_hw.c
@@ -22,7 +22,7 @@
22 * SOFTWARE. 22 * SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_hw.h" 27#include "nouveau_hw.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.h b/drivers/gpu/drm/nouveau/nouveau_hw.h
index 2989090b9434..06a66bc84a81 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hw.h
+++ b/drivers/gpu/drm/nouveau/nouveau_hw.h
@@ -23,7 +23,7 @@
23#ifndef __NOUVEAU_HW_H__ 23#ifndef __NOUVEAU_HW_H__
24#define __NOUVEAU_HW_H__ 24#define __NOUVEAU_HW_H__
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28 28
29#define MASK(field) ( \ 29#define MASK(field) ( \
diff --git a/drivers/gpu/drm/nouveau/nouveau_i2c.c b/drivers/gpu/drm/nouveau/nouveau_i2c.c
index 240cf962c999..baf2fa25d077 100644
--- a/drivers/gpu/drm/nouveau/nouveau_i2c.c
+++ b/drivers/gpu/drm/nouveau/nouveau_i2c.c
@@ -24,7 +24,7 @@
24 24
25#include <linux/module.h> 25#include <linux/module.h>
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "nouveau_drv.h" 28#include "nouveau_drv.h"
29#include "nouveau_i2c.h" 29#include "nouveau_i2c.h"
30#include "nouveau_hw.h" 30#include "nouveau_hw.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_i2c.h b/drivers/gpu/drm/nouveau/nouveau_i2c.h
index 1d083893a4d7..326bf5e2035a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_i2c.h
+++ b/drivers/gpu/drm/nouveau/nouveau_i2c.h
@@ -25,7 +25,7 @@
25 25
26#include <linux/i2c.h> 26#include <linux/i2c.h>
27#include <linux/i2c-algo-bit.h> 27#include <linux/i2c-algo-bit.h>
28#include "drm_dp_helper.h" 28#include <drm/drm_dp_helper.h>
29 29
30#define NV_I2C_PORT(n) (0x00 + (n)) 30#define NV_I2C_PORT(n) (0x00 + (n))
31#define NV_I2C_PORT_NUM 0x10 31#define NV_I2C_PORT_NUM 0x10
diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
index 475ba810bba3..aa3a067c707b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
@@ -33,8 +33,7 @@
33 33
34#include <linux/compat.h> 34#include <linux/compat.h>
35 35
36#include "drmP.h" 36#include <drm/drmP.h>
37#include "drm.h"
38 37
39#include "nouveau_drv.h" 38#include "nouveau_drv.h"
40 39
diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c
index b2c2937531a8..6273b7763cd6 100644
--- a/drivers/gpu/drm/nouveau/nouveau_irq.c
+++ b/drivers/gpu/drm/nouveau/nouveau_irq.c
@@ -30,9 +30,8 @@
30 * Ben Skeggs <darktama@iinet.net.au> 30 * Ben Skeggs <darktama@iinet.net.au>
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/nouveau_drm.h>
35#include "nouveau_drm.h"
36#include "nouveau_drv.h" 35#include "nouveau_drv.h"
37#include "nouveau_reg.h" 36#include "nouveau_reg.h"
38#include "nouveau_ramht.h" 37#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c
index 5b498ea32e14..7f0afad13653 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mem.c
@@ -31,9 +31,7 @@
31 */ 31 */
32 32
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h"
36#include "drm_sarea.h"
37 35
38#include "nouveau_drv.h" 36#include "nouveau_drv.h"
39#include "nouveau_pm.h" 37#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_mm.c b/drivers/gpu/drm/nouveau/nouveau_mm.c
index b29ffb3d1408..3e98806dd76f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nouveau_mxm.c b/drivers/gpu/drm/nouveau/nouveau_mxm.c
index 07d0d1e03690..d07f4a3310b9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mxm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mxm.c
@@ -24,7 +24,7 @@
24 24
25#include <linux/acpi.h> 25#include <linux/acpi.h>
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "nouveau_drv.h" 28#include "nouveau_drv.h"
29 29
30#define MXM_DBG(dev, fmt, args...) NV_DEBUG((dev), "MXM: " fmt, ##args) 30#define MXM_DBG(dev, fmt, args...) NV_DEBUG((dev), "MXM: " fmt, ##args)
diff --git a/drivers/gpu/drm/nouveau/nouveau_notifier.c b/drivers/gpu/drm/nouveau/nouveau_notifier.c
index 69c93b864519..1ad3e6c8c432 100644
--- a/drivers/gpu/drm/nouveau/nouveau_notifier.c
+++ b/drivers/gpu/drm/nouveau/nouveau_notifier.c
@@ -25,8 +25,7 @@
25 * 25 *
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h"
30#include "nouveau_drv.h" 29#include "nouveau_drv.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
32 31
diff --git a/drivers/gpu/drm/nouveau/nouveau_perf.c b/drivers/gpu/drm/nouveau/nouveau_perf.c
index ea6acf1c4a78..4946d308a362 100644
--- a/drivers/gpu/drm/nouveau/nouveau_perf.c
+++ b/drivers/gpu/drm/nouveau/nouveau_perf.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c
index da3e7c3abab7..7cf95b20b7a4 100644
--- a/drivers/gpu/drm/nouveau/nouveau_pm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_prime.c b/drivers/gpu/drm/nouveau/nouveau_prime.c
index a25cf2cb931f..aef7181415a8 100644
--- a/drivers/gpu/drm/nouveau/nouveau_prime.c
+++ b/drivers/gpu/drm/nouveau/nouveau_prime.c
@@ -22,11 +22,10 @@
22 * Authors: Dave Airlie 22 * Authors: Dave Airlie
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h"
27 26
28#include "nouveau_drv.h" 27#include "nouveau_drv.h"
29#include "nouveau_drm.h" 28#include <drm/nouveau_drm.h>
30#include "nouveau_dma.h" 29#include "nouveau_dma.h"
31 30
32#include <linux/dma-buf.h> 31#include <linux/dma-buf.h>
diff --git a/drivers/gpu/drm/nouveau/nouveau_ramht.c b/drivers/gpu/drm/nouveau/nouveau_ramht.c
index a24a81f5a89e..0ebb62f1fc80 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ramht.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ramht.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index 38483a042bc2..9d76a82d3c90 100644
--- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@ -1,4 +1,4 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "nouveau_drv.h" 2#include "nouveau_drv.h"
3#include <linux/pagemap.h> 3#include <linux/pagemap.h>
4#include <linux/slab.h> 4#include <linux/slab.h>
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index c61014442aa9..30fe9291d17e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -25,15 +25,13 @@
25 25
26#include <linux/swab.h> 26#include <linux/swab.h>
27#include <linux/slab.h> 27#include <linux/slab.h>
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/drm_crtc_helper.h>
30#include "drm_sarea.h"
31#include "drm_crtc_helper.h"
32#include <linux/vgaarb.h> 30#include <linux/vgaarb.h>
33#include <linux/vga_switcheroo.h> 31#include <linux/vga_switcheroo.h>
34 32
35#include "nouveau_drv.h" 33#include "nouveau_drv.h"
36#include "nouveau_drm.h" 34#include <drm/nouveau_drm.h>
37#include "nouveau_fbcon.h" 35#include "nouveau_fbcon.h"
38#include "nouveau_ramht.h" 36#include "nouveau_ramht.h"
39#include "nouveau_gpio.h" 37#include "nouveau_gpio.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_temp.c b/drivers/gpu/drm/nouveau/nouveau_temp.c
index 0f5a30160556..1ad411dcc57a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_temp.c
+++ b/drivers/gpu/drm/nouveau/nouveau_temp.c
@@ -24,7 +24,7 @@
24 24
25#include <linux/module.h> 25#include <linux/module.h>
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28 28
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30#include "nouveau_pm.h" 30#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c
index bd35f930568c..48de8dd69583 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c
@@ -24,7 +24,7 @@
24 * USE OR OTHER DEALINGS IN THE SOFTWARE. 24 * USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28 28
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30 30
diff --git a/drivers/gpu/drm/nouveau/nouveau_vm.c b/drivers/gpu/drm/nouveau/nouveau_vm.c
index 11edd5e91a0a..4c8d13965dd1 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_vm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_vm.h b/drivers/gpu/drm/nouveau/nouveau_vm.h
index a8246e7e4a89..3cdf6001d635 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vm.h
+++ b/drivers/gpu/drm/nouveau/nouveau_vm.h
@@ -25,7 +25,7 @@
25#ifndef __NOUVEAU_VM_H__ 25#ifndef __NOUVEAU_VM_H__
26#define __NOUVEAU_VM_H__ 26#define __NOUVEAU_VM_H__
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_mm.h" 31#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nouveau_volt.c b/drivers/gpu/drm/nouveau/nouveau_volt.c
index b010cb997b34..fbc3a1efd501 100644
--- a/drivers/gpu/drm/nouveau/nouveau_volt.c
+++ b/drivers/gpu/drm/nouveau/nouveau_volt.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c
index 43accc11102f..37d5b5bf7587 100644
--- a/drivers/gpu/drm/nouveau/nv04_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv04_crtc.c
@@ -23,8 +23,8 @@
23 * DEALINGS IN THE SOFTWARE. 23 * DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm_crtc_helper.h" 27#include <drm/drm_crtc_helper.h>
28 28
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30#include "nouveau_encoder.h" 30#include "nouveau_encoder.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_cursor.c b/drivers/gpu/drm/nouveau/nv04_cursor.c
index aaf3de3bc816..6463870ef19e 100644
--- a/drivers/gpu/drm/nouveau/nv04_cursor.c
+++ b/drivers/gpu/drm/nouveau/nv04_cursor.c
@@ -1,5 +1,4 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm_mode.h"
3#include "nouveau_reg.h" 2#include "nouveau_reg.h"
4#include "nouveau_drv.h" 3#include "nouveau_drv.h"
5#include "nouveau_crtc.h" 4#include "nouveau_crtc.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_dac.c b/drivers/gpu/drm/nouveau/nv04_dac.c
index 38f19479417c..981e6d4f4c76 100644
--- a/drivers/gpu/drm/nouveau/nv04_dac.c
+++ b/drivers/gpu/drm/nouveau/nv04_dac.c
@@ -24,8 +24,8 @@
24 * DEALINGS IN THE SOFTWARE. 24 * DEALINGS IN THE SOFTWARE.
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_encoder.h" 31#include "nouveau_encoder.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c b/drivers/gpu/drm/nouveau/nv04_dfp.c
index c2675623b7cd..55ad2dd653fc 100644
--- a/drivers/gpu/drm/nouveau/nv04_dfp.c
+++ b/drivers/gpu/drm/nouveau/nv04_dfp.c
@@ -24,8 +24,8 @@
24 * DEALINGS IN THE SOFTWARE. 24 * DEALINGS IN THE SOFTWARE.
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_encoder.h" 31#include "nouveau_encoder.h"
@@ -34,7 +34,7 @@
34#include "nouveau_hw.h" 34#include "nouveau_hw.h"
35#include "nvreg.h" 35#include "nvreg.h"
36 36
37#include "i2c/sil164.h" 37#include <drm/i2c/sil164.h>
38 38
39#define FP_TG_CONTROL_ON (NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS | \ 39#define FP_TG_CONTROL_ON (NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS | \
40 NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS | \ 40 NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS | \
diff --git a/drivers/gpu/drm/nouveau/nv04_display.c b/drivers/gpu/drm/nouveau/nv04_display.c
index 44488e3a257d..ea1e47a34ddf 100644
--- a/drivers/gpu/drm/nouveau/nv04_display.c
+++ b/drivers/gpu/drm/nouveau/nv04_display.c
@@ -22,9 +22,8 @@
22 * Author: Ben Skeggs 22 * Author: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h" 26#include <drm/drm_crtc_helper.h>
27#include "drm_crtc_helper.h"
28 27
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fb.h" 29#include "nouveau_fb.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_fb.c b/drivers/gpu/drm/nouveau/nv04_fb.c
index d5eedd67afe5..375f5533c313 100644
--- a/drivers/gpu/drm/nouveau/nv04_fb.c
+++ b/drivers/gpu/drm/nouveau/nv04_fb.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6int 5int
7nv04_fb_vram_init(struct drm_device *dev) 6nv04_fb_vram_init(struct drm_device *dev)
diff --git a/drivers/gpu/drm/nouveau/nv04_fbcon.c b/drivers/gpu/drm/nouveau/nv04_fbcon.c
index 7cd7857347ef..fc53a3922bce 100644
--- a/drivers/gpu/drm/nouveau/nv04_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nv04_fbcon.c
@@ -22,7 +22,7 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_fence.c b/drivers/gpu/drm/nouveau/nv04_fence.c
index abe89db6de24..aa6859270662 100644
--- a/drivers/gpu/drm/nouveau/nv04_fence.c
+++ b/drivers/gpu/drm/nouveau/nv04_fence.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_fifo.c b/drivers/gpu/drm/nouveau/nv04_fifo.c
index a6295cd00ec7..65f966deeee6 100644
--- a/drivers/gpu/drm/nouveau/nv04_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv04_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_util.h" 30#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_graph.c b/drivers/gpu/drm/nouveau/nv04_graph.c
index 72f1a62903b3..68cce6023461 100644
--- a/drivers/gpu/drm/nouveau/nv04_graph.c
+++ b/drivers/gpu/drm/nouveau/nv04_graph.c
@@ -22,9 +22,8 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h" 26#include <drm/nouveau_drm.h>
27#include "nouveau_drm.h"
28#include "nouveau_drv.h" 27#include "nouveau_drv.h"
29#include "nouveau_hw.h" 28#include "nouveau_hw.h"
30#include "nouveau_util.h" 29#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_instmem.c b/drivers/gpu/drm/nouveau/nv04_instmem.c
index ef7a934a499a..a9e380040fea 100644
--- a/drivers/gpu/drm/nouveau/nv04_instmem.c
+++ b/drivers/gpu/drm/nouveau/nv04_instmem.c
@@ -1,5 +1,4 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3 2
4#include "nouveau_drv.h" 3#include "nouveau_drv.h"
5#include "nouveau_fifo.h" 4#include "nouveau_fifo.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_mc.c b/drivers/gpu/drm/nouveau/nv04_mc.c
index 2af43a1cb2ec..83751e7a3309 100644
--- a/drivers/gpu/drm/nouveau/nv04_mc.c
+++ b/drivers/gpu/drm/nouveau/nv04_mc.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6int 5int
7nv04_mc_init(struct drm_device *dev) 6nv04_mc_init(struct drm_device *dev)
diff --git a/drivers/gpu/drm/nouveau/nv04_pm.c b/drivers/gpu/drm/nouveau/nv04_pm.c
index 6e7589918fa9..435b5a832da3 100644
--- a/drivers/gpu/drm/nouveau/nv04_pm.c
+++ b/drivers/gpu/drm/nouveau/nv04_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_hw.h" 27#include "nouveau_hw.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_software.c b/drivers/gpu/drm/nouveau/nv04_software.c
index 0c41abf48774..02509e715693 100644
--- a/drivers/gpu/drm/nouveau/nv04_software.c
+++ b/drivers/gpu/drm/nouveau/nv04_software.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv04_timer.c b/drivers/gpu/drm/nouveau/nv04_timer.c
index 55c945290e52..71ad319affcb 100644
--- a/drivers/gpu/drm/nouveau/nv04_timer.c
+++ b/drivers/gpu/drm/nouveau/nv04_timer.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5#include "nouveau_hw.h" 4#include "nouveau_hw.h"
6 5
7int 6int
diff --git a/drivers/gpu/drm/nouveau/nv04_tv.c b/drivers/gpu/drm/nouveau/nv04_tv.c
index 3eb605ddfd03..7157d403ed59 100644
--- a/drivers/gpu/drm/nouveau/nv04_tv.c
+++ b/drivers/gpu/drm/nouveau/nv04_tv.c
@@ -24,15 +24,15 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "nouveau_drv.h" 28#include "nouveau_drv.h"
29#include "nouveau_encoder.h" 29#include "nouveau_encoder.h"
30#include "nouveau_connector.h" 30#include "nouveau_connector.h"
31#include "nouveau_crtc.h" 31#include "nouveau_crtc.h"
32#include "nouveau_hw.h" 32#include "nouveau_hw.h"
33#include "drm_crtc_helper.h" 33#include <drm/drm_crtc_helper.h>
34 34
35#include "i2c/ch7006.h" 35#include <drm/i2c/ch7006.h>
36 36
37static struct i2c_board_info nv04_tv_encoder_info[] = { 37static struct i2c_board_info nv04_tv_encoder_info[] = {
38 { 38 {
diff --git a/drivers/gpu/drm/nouveau/nv10_fb.c b/drivers/gpu/drm/nouveau/nv10_fb.c
index 420b1608536d..510e90f34482 100644
--- a/drivers/gpu/drm/nouveau/nv10_fb.c
+++ b/drivers/gpu/drm/nouveau/nv10_fb.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6void 5void
7nv10_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr, 6nv10_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr,
diff --git a/drivers/gpu/drm/nouveau/nv10_fence.c b/drivers/gpu/drm/nouveau/nv10_fence.c
index 8a1b75009185..d30f752464ef 100644
--- a/drivers/gpu/drm/nouveau/nv10_fence.c
+++ b/drivers/gpu/drm/nouveau/nv10_fence.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs <bskeggs@redhat.com> 22 * Authors: Ben Skeggs <bskeggs@redhat.com>
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv10_fifo.c b/drivers/gpu/drm/nouveau/nv10_fifo.c
index f1fe7d758241..05a2499b7a4d 100644
--- a/drivers/gpu/drm/nouveau/nv10_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv10_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_util.h" 30#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv10_gpio.c b/drivers/gpu/drm/nouveau/nv10_gpio.c
index 9d79180069df..ecc1b62dd751 100644
--- a/drivers/gpu/drm/nouveau/nv10_gpio.c
+++ b/drivers/gpu/drm/nouveau/nv10_gpio.c
@@ -24,7 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "nouveau_drv.h" 28#include "nouveau_drv.h"
29#include "nouveau_hw.h" 29#include "nouveau_hw.h"
30#include "nouveau_gpio.h" 30#include "nouveau_gpio.h"
diff --git a/drivers/gpu/drm/nouveau/nv10_graph.c b/drivers/gpu/drm/nouveau/nv10_graph.c
index fb1d88a951de..75dd51bbe64d 100644
--- a/drivers/gpu/drm/nouveau/nv10_graph.c
+++ b/drivers/gpu/drm/nouveau/nv10_graph.c
@@ -22,9 +22,8 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h" 26#include <drm/nouveau_drm.h>
27#include "nouveau_drm.h"
28#include "nouveau_drv.h" 27#include "nouveau_drv.h"
29#include "nouveau_util.h" 28#include "nouveau_util.h"
30 29
diff --git a/drivers/gpu/drm/nouveau/nv17_fifo.c b/drivers/gpu/drm/nouveau/nv17_fifo.c
index d9e482e4abee..4ae61aeea741 100644
--- a/drivers/gpu/drm/nouveau/nv17_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv17_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_util.h" 30#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c b/drivers/gpu/drm/nouveau/nv17_tv.c
index 67be5db021f5..6331e79b0124 100644
--- a/drivers/gpu/drm/nouveau/nv17_tv.c
+++ b/drivers/gpu/drm/nouveau/nv17_tv.c
@@ -24,8 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30#include "nouveau_encoder.h" 30#include "nouveau_encoder.h"
31#include "nouveau_connector.h" 31#include "nouveau_connector.h"
diff --git a/drivers/gpu/drm/nouveau/nv17_tv_modes.c b/drivers/gpu/drm/nouveau/nv17_tv_modes.c
index 4d1d29f60307..96e428641672 100644
--- a/drivers/gpu/drm/nouveau/nv17_tv_modes.c
+++ b/drivers/gpu/drm/nouveau/nv17_tv_modes.c
@@ -24,8 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29#include "nouveau_drv.h" 29#include "nouveau_drv.h"
30#include "nouveau_encoder.h" 30#include "nouveau_encoder.h"
31#include "nouveau_crtc.h" 31#include "nouveau_crtc.h"
diff --git a/drivers/gpu/drm/nouveau/nv20_fb.c b/drivers/gpu/drm/nouveau/nv20_fb.c
index 19bd64059a66..5fffc2150b8e 100644
--- a/drivers/gpu/drm/nouveau/nv20_fb.c
+++ b/drivers/gpu/drm/nouveau/nv20_fb.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6static struct drm_mm_node * 5static struct drm_mm_node *
7nv20_fb_alloc_tag(struct drm_device *dev, uint32_t size) 6nv20_fb_alloc_tag(struct drm_device *dev, uint32_t size)
diff --git a/drivers/gpu/drm/nouveau/nv20_graph.c b/drivers/gpu/drm/nouveau/nv20_graph.c
index e34ea30758f6..ffaab0ba76b9 100644
--- a/drivers/gpu/drm/nouveau/nv20_graph.c
+++ b/drivers/gpu/drm/nouveau/nv20_graph.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6/* 5/*
7 * NV20 6 * NV20
diff --git a/drivers/gpu/drm/nouveau/nv30_fb.c b/drivers/gpu/drm/nouveau/nv30_fb.c
index e0135f0e2144..9cc4de8de5ca 100644
--- a/drivers/gpu/drm/nouveau/nv30_fb.c
+++ b/drivers/gpu/drm/nouveau/nv30_fb.c
@@ -24,10 +24,9 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_drm.h" 29#include <drm/nouveau_drm.h>
31 30
32void 31void
33nv30_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr, 32nv30_fb_init_tile_region(struct drm_device *dev, int i, uint32_t addr,
diff --git a/drivers/gpu/drm/nouveau/nv31_mpeg.c b/drivers/gpu/drm/nouveau/nv31_mpeg.c
index 5f239bf658c4..818deb67588e 100644
--- a/drivers/gpu/drm/nouveau/nv31_mpeg.c
+++ b/drivers/gpu/drm/nouveau/nv31_mpeg.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_fifo.h" 27#include "nouveau_fifo.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv40_fb.c b/drivers/gpu/drm/nouveau/nv40_fb.c
index 7fbcb334c096..88b4f7c43992 100644
--- a/drivers/gpu/drm/nouveau/nv40_fb.c
+++ b/drivers/gpu/drm/nouveau/nv40_fb.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6void 5void
7nv40_fb_set_tile_region(struct drm_device *dev, int i) 6nv40_fb_set_tile_region(struct drm_device *dev, int i)
diff --git a/drivers/gpu/drm/nouveau/nv40_fifo.c b/drivers/gpu/drm/nouveau/nv40_fifo.c
index cdc818479b0a..cf952d2048ed 100644
--- a/drivers/gpu/drm/nouveau/nv40_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv40_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_util.h" 30#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv40_graph.c b/drivers/gpu/drm/nouveau/nv40_graph.c
index aa9e2df64a26..5489201bec0b 100644
--- a/drivers/gpu/drm/nouveau/nv40_graph.c
+++ b/drivers/gpu/drm/nouveau/nv40_graph.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv40_grctx.c b/drivers/gpu/drm/nouveau/nv40_grctx.c
index be0a74750fb1..cf115ad4dad1 100644
--- a/drivers/gpu/drm/nouveau/nv40_grctx.c
+++ b/drivers/gpu/drm/nouveau/nv40_grctx.c
@@ -109,7 +109,7 @@
109#define CP_LOAD_MAGIC_NV44TCL 0x00800029 /* per-vs state (0x4497) */ 109#define CP_LOAD_MAGIC_NV44TCL 0x00800029 /* per-vs state (0x4497) */
110#define CP_LOAD_MAGIC_NV40TCL 0x00800041 /* per-vs state (0x4097) */ 110#define CP_LOAD_MAGIC_NV40TCL 0x00800041 /* per-vs state (0x4097) */
111 111
112#include "drmP.h" 112#include <drm/drmP.h>
113#include "nouveau_drv.h" 113#include "nouveau_drv.h"
114#include "nouveau_grctx.h" 114#include "nouveau_grctx.h"
115 115
diff --git a/drivers/gpu/drm/nouveau/nv40_mc.c b/drivers/gpu/drm/nouveau/nv40_mc.c
index 03c0d4c3f355..788584364853 100644
--- a/drivers/gpu/drm/nouveau/nv40_mc.c
+++ b/drivers/gpu/drm/nouveau/nv40_mc.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5 4
6int 5int
7nv40_mc_init(struct drm_device *dev) 6nv40_mc_init(struct drm_device *dev)
diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c b/drivers/gpu/drm/nouveau/nv40_pm.c
index e66273aff493..b94dd87d592c 100644
--- a/drivers/gpu/drm/nouveau/nv40_pm.c
+++ b/drivers/gpu/drm/nouveau/nv40_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_bios.h" 27#include "nouveau_bios.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_calc.c b/drivers/gpu/drm/nouveau/nv50_calc.c
index 8cf63a8b30cd..4d019eb76f7d 100644
--- a/drivers/gpu/drm/nouveau/nv50_calc.c
+++ b/drivers/gpu/drm/nouveau/nv50_calc.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_hw.h" 27#include "nouveau_hw.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index 22cebd5dd694..7f3ae75032d6 100644
--- a/drivers/gpu/drm/nouveau/nv50_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv50_crtc.c
@@ -24,9 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_mode.h" 28#include <drm/drm_crtc_helper.h>
29#include "drm_crtc_helper.h"
30 29
31#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) 30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO)
32#include "nouveau_reg.h" 31#include "nouveau_reg.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_cursor.c b/drivers/gpu/drm/nouveau/nv50_cursor.c
index af4ec7bf3670..b290b7b1f65d 100644
--- a/drivers/gpu/drm/nouveau/nv50_cursor.c
+++ b/drivers/gpu/drm/nouveau/nv50_cursor.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_mode.h"
29 28
30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) 29#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO)
31#include "nouveau_reg.h" 30#include "nouveau_reg.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_dac.c b/drivers/gpu/drm/nouveau/nv50_dac.c
index 2c36a6b92c53..2bff2e588d87 100644
--- a/drivers/gpu/drm/nouveau/nv50_dac.c
+++ b/drivers/gpu/drm/nouveau/nv50_dac.c
@@ -24,8 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29 29
30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) 30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO)
31#include "nouveau_reg.h" 31#include "nouveau_reg.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index b244d9968c5d..f868a13e5c2d 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -33,7 +33,7 @@
33#include "nouveau_fbcon.h" 33#include "nouveau_fbcon.h"
34#include "nouveau_ramht.h" 34#include "nouveau_ramht.h"
35#include "nouveau_software.h" 35#include "nouveau_software.h"
36#include "drm_crtc_helper.h" 36#include <drm/drm_crtc_helper.h>
37 37
38static void nv50_display_isr(struct drm_device *); 38static void nv50_display_isr(struct drm_device *);
39static void nv50_display_bh(unsigned long); 39static void nv50_display_bh(unsigned long);
diff --git a/drivers/gpu/drm/nouveau/nv50_display.h b/drivers/gpu/drm/nouveau/nv50_display.h
index e9db9b97f041..009ec2a811c4 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.h
+++ b/drivers/gpu/drm/nouveau/nv50_display.h
@@ -27,8 +27,7 @@
27#ifndef __NV50_DISPLAY_H__ 27#ifndef __NV50_DISPLAY_H__
28#define __NV50_DISPLAY_H__ 28#define __NV50_DISPLAY_H__
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h"
32#include "nouveau_drv.h" 31#include "nouveau_drv.h"
33#include "nouveau_dma.h" 32#include "nouveau_dma.h"
34#include "nouveau_reg.h" 33#include "nouveau_reg.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_evo.c b/drivers/gpu/drm/nouveau/nv50_evo.c
index ddcd55595824..dabcd8787176 100644
--- a/drivers/gpu/drm/nouveau/nv50_evo.c
+++ b/drivers/gpu/drm/nouveau/nv50_evo.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_dma.h" 28#include "nouveau_dma.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_fb.c b/drivers/gpu/drm/nouveau/nv50_fb.c
index f1e4b9e07d14..befd5fb7155f 100644
--- a/drivers/gpu/drm/nouveau/nv50_fb.c
+++ b/drivers/gpu/drm/nouveau/nv50_fb.c
@@ -1,7 +1,6 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm.h"
3#include "nouveau_drv.h" 2#include "nouveau_drv.h"
4#include "nouveau_drm.h" 3#include <drm/nouveau_drm.h>
5#include "nouveau_fifo.h" 4#include "nouveau_fifo.h"
6 5
7struct nv50_fb_priv { 6struct nv50_fb_priv {
diff --git a/drivers/gpu/drm/nouveau/nv50_fbcon.c b/drivers/gpu/drm/nouveau/nv50_fbcon.c
index e3c8b05dcae4..ec24959e67a2 100644
--- a/drivers/gpu/drm/nouveau/nv50_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nv50_fbcon.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_fifo.c b/drivers/gpu/drm/nouveau/nv50_fifo.c
index 55383b85db0b..5a440e89e918 100644
--- a/drivers/gpu/drm/nouveau/nv50_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv50_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_gpio.c b/drivers/gpu/drm/nouveau/nv50_gpio.c
index c399d510b27a..c86a5fcc5e69 100644
--- a/drivers/gpu/drm/nouveau/nv50_gpio.c
+++ b/drivers/gpu/drm/nouveau/nv50_gpio.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include <linux/dmi.h> 25#include <linux/dmi.h>
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_hw.h" 28#include "nouveau_hw.h"
29#include "nouveau_gpio.h" 29#include "nouveau_gpio.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_graph.c b/drivers/gpu/drm/nouveau/nv50_graph.c
index 437608d1dfe7..f8a9c8095297 100644
--- a/drivers/gpu/drm/nouveau/nv50_graph.c
+++ b/drivers/gpu/drm/nouveau/nv50_graph.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_grctx.c b/drivers/gpu/drm/nouveau/nv50_grctx.c
index 881e22b249fc..3bb96a029d66 100644
--- a/drivers/gpu/drm/nouveau/nv50_grctx.c
+++ b/drivers/gpu/drm/nouveau/nv50_grctx.c
@@ -105,7 +105,7 @@
105#define CP_SEEK_1 0x00c000ff 105#define CP_SEEK_1 0x00c000ff
106#define CP_SEEK_2 0x00c800ff 106#define CP_SEEK_2 0x00c800ff
107 107
108#include "drmP.h" 108#include <drm/drmP.h>
109#include "nouveau_drv.h" 109#include "nouveau_drv.h"
110#include "nouveau_grctx.h" 110#include "nouveau_grctx.h"
111 111
diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c
index 0bba54f11800..05eff577f053 100644
--- a/drivers/gpu/drm/nouveau/nv50_instmem.c
+++ b/drivers/gpu/drm/nouveau/nv50_instmem.c
@@ -25,8 +25,7 @@
25 * 25 *
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h"
30 29
31#include "nouveau_drv.h" 30#include "nouveau_drv.h"
32#include "nouveau_vm.h" 31#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_mc.c b/drivers/gpu/drm/nouveau/nv50_mc.c
index e0a9c3faa202..a739c2afae90 100644
--- a/drivers/gpu/drm/nouveau/nv50_mc.c
+++ b/drivers/gpu/drm/nouveau/nv50_mc.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30 29
31int 30int
diff --git a/drivers/gpu/drm/nouveau/nv50_mpeg.c b/drivers/gpu/drm/nouveau/nv50_mpeg.c
index 90e8ed22cfcb..e11bb540727b 100644
--- a/drivers/gpu/drm/nouveau/nv50_mpeg.c
+++ b/drivers/gpu/drm/nouveau/nv50_mpeg.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_ramht.h" 27#include "nouveau_ramht.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nv50_pm.c b/drivers/gpu/drm/nouveau/nv50_pm.c
index d020ed4979b4..07593fd73af3 100644
--- a/drivers/gpu/drm/nouveau/nv50_pm.c
+++ b/drivers/gpu/drm/nouveau/nv50_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_bios.h" 27#include "nouveau_bios.h"
28#include "nouveau_hw.h" 28#include "nouveau_hw.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_software.c b/drivers/gpu/drm/nouveau/nv50_software.c
index df554d9dacb8..5497a6ce25b4 100644
--- a/drivers/gpu/drm/nouveau/nv50_software.c
+++ b/drivers/gpu/drm/nouveau/nv50_software.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_sor.c b/drivers/gpu/drm/nouveau/nv50_sor.c
index 93240bde891b..63ece8503a11 100644
--- a/drivers/gpu/drm/nouveau/nv50_sor.c
+++ b/drivers/gpu/drm/nouveau/nv50_sor.c
@@ -24,8 +24,8 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29 29
30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) 30#define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO)
31#include "nouveau_reg.h" 31#include "nouveau_reg.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_vm.c b/drivers/gpu/drm/nouveau/nv50_vm.c
index 179bb42a635c..c9fdfb48270b 100644
--- a/drivers/gpu/drm/nouveau/nv50_vm.c
+++ b/drivers/gpu/drm/nouveau/nv50_vm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nv50_vram.c b/drivers/gpu/drm/nouveau/nv50_vram.c
index 9ed9ae397d75..e2a1af7b9eef 100644
--- a/drivers/gpu/drm/nouveau/nv50_vram.c
+++ b/drivers/gpu/drm/nouveau/nv50_vram.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nv84_bsp.c b/drivers/gpu/drm/nouveau/nv84_bsp.c
index 74875739bcc0..a4f4d4a0a755 100644
--- a/drivers/gpu/drm/nouveau/nv84_bsp.c
+++ b/drivers/gpu/drm/nouveau/nv84_bsp.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_util.h" 27#include "nouveau_util.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nv84_crypt.c b/drivers/gpu/drm/nouveau/nv84_crypt.c
index bbfcc73b6708..dc2bc5cc536d 100644
--- a/drivers/gpu/drm/nouveau/nv84_crypt.c
+++ b/drivers/gpu/drm/nouveau/nv84_crypt.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_util.h" 27#include "nouveau_util.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nv84_fence.c b/drivers/gpu/drm/nouveau/nv84_fence.c
index c2f889b0d340..60dd73d532e7 100644
--- a/drivers/gpu/drm/nouveau/nv84_fence.c
+++ b/drivers/gpu/drm/nouveau/nv84_fence.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_fifo.h" 28#include "nouveau_fifo.h"
diff --git a/drivers/gpu/drm/nouveau/nv84_fifo.c b/drivers/gpu/drm/nouveau/nv84_fifo.c
index c564c5e4c30a..9844a65491c3 100644
--- a/drivers/gpu/drm/nouveau/nv84_fifo.c
+++ b/drivers/gpu/drm/nouveau/nv84_fifo.c
@@ -24,8 +24,7 @@
24 * 24 *
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "nouveau_drv.h" 28#include "nouveau_drv.h"
30#include "nouveau_fifo.h" 29#include "nouveau_fifo.h"
31#include "nouveau_ramht.h" 30#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nv84_vp.c b/drivers/gpu/drm/nouveau/nv84_vp.c
index 6570d300ab85..0dec4958eb5f 100644
--- a/drivers/gpu/drm/nouveau/nv84_vp.c
+++ b/drivers/gpu/drm/nouveau/nv84_vp.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_util.h" 27#include "nouveau_util.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nv98_crypt.c b/drivers/gpu/drm/nouveau/nv98_crypt.c
index e25e13fb894e..6f4c15345b9b 100644
--- a/drivers/gpu/drm/nouveau/nv98_crypt.c
+++ b/drivers/gpu/drm/nouveau/nv98_crypt.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_util.h" 28#include "nouveau_util.h"
diff --git a/drivers/gpu/drm/nouveau/nv98_ppp.c b/drivers/gpu/drm/nouveau/nv98_ppp.c
index a987dd6e0036..1847963e27f3 100644
--- a/drivers/gpu/drm/nouveau/nv98_ppp.c
+++ b/drivers/gpu/drm/nouveau/nv98_ppp.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_util.h" 27#include "nouveau_util.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nva3_copy.c b/drivers/gpu/drm/nouveau/nva3_copy.c
index 0387dc7f4f42..7801cbd057fa 100644
--- a/drivers/gpu/drm/nouveau/nva3_copy.c
+++ b/drivers/gpu/drm/nouveau/nva3_copy.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include <linux/firmware.h> 25#include <linux/firmware.h>
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_util.h" 28#include "nouveau_util.h"
29#include "nouveau_vm.h" 29#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nva3_pm.c b/drivers/gpu/drm/nouveau/nva3_pm.c
index 798829353fb6..9258524e4c80 100644
--- a/drivers/gpu/drm/nouveau/nva3_pm.c
+++ b/drivers/gpu/drm/nouveau/nva3_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_bios.h" 27#include "nouveau_bios.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_copy.c b/drivers/gpu/drm/nouveau/nvc0_copy.c
index dddf006f6d88..88a922d60822 100644
--- a/drivers/gpu/drm/nouveau/nvc0_copy.c
+++ b/drivers/gpu/drm/nouveau/nvc0_copy.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include <linux/firmware.h> 25#include <linux/firmware.h>
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_util.h" 28#include "nouveau_util.h"
29#include "nouveau_vm.h" 29#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_fb.c b/drivers/gpu/drm/nouveau/nvc0_fb.c
index f376c39310df..7da32a9ef08e 100644
--- a/drivers/gpu/drm/nouveau/nvc0_fb.c
+++ b/drivers/gpu/drm/nouveau/nvc0_fb.c
@@ -22,10 +22,9 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "drm.h"
27#include "nouveau_drv.h" 26#include "nouveau_drv.h"
28#include "nouveau_drm.h" 27#include <drm/nouveau_drm.h>
29 28
30struct nvc0_fb_priv { 29struct nvc0_fb_priv {
31 struct page *r100c10_page; 30 struct page *r100c10_page;
diff --git a/drivers/gpu/drm/nouveau/nvc0_fbcon.c b/drivers/gpu/drm/nouveau/nvc0_fbcon.c
index 797159e7b7a6..ade005fa9de1 100644
--- a/drivers/gpu/drm/nouveau/nvc0_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nvc0_fbcon.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_fence.c b/drivers/gpu/drm/nouveau/nvc0_fence.c
index 47ab388a606e..2e666d0c4048 100644
--- a/drivers/gpu/drm/nouveau/nvc0_fence.c
+++ b/drivers/gpu/drm/nouveau/nvc0_fence.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_dma.h" 27#include "nouveau_dma.h"
28#include "nouveau_fifo.h" 28#include "nouveau_fifo.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_fifo.c b/drivers/gpu/drm/nouveau/nvc0_fifo.c
index cd39eb99f5b1..d03ba8631a69 100644
--- a/drivers/gpu/drm/nouveau/nvc0_fifo.c
+++ b/drivers/gpu/drm/nouveau/nvc0_fifo.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_mm.h" 28#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.c b/drivers/gpu/drm/nouveau/nvc0_graph.c
index 2a01e6e47724..59670acad7b9 100644
--- a/drivers/gpu/drm/nouveau/nvc0_graph.c
+++ b/drivers/gpu/drm/nouveau/nvc0_graph.c
@@ -25,7 +25,7 @@
25#include <linux/firmware.h> 25#include <linux/firmware.h>
26#include <linux/module.h> 26#include <linux/module.h>
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_mm.h" 31#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_grctx.c b/drivers/gpu/drm/nouveau/nvc0_grctx.c
index de77842b31c0..2f17654e79a6 100644
--- a/drivers/gpu/drm/nouveau/nvc0_grctx.c
+++ b/drivers/gpu/drm/nouveau/nvc0_grctx.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28#include "nvc0_graph.h" 28#include "nvc0_graph.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_instmem.c b/drivers/gpu/drm/nouveau/nvc0_instmem.c
index b701c439c92e..f5fac7cbb78d 100644
--- a/drivers/gpu/drm/nouveau/nvc0_instmem.c
+++ b/drivers/gpu/drm/nouveau/nvc0_instmem.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_pm.c b/drivers/gpu/drm/nouveau/nvc0_pm.c
index 4e712b10ebdb..51cee2103544 100644
--- a/drivers/gpu/drm/nouveau/nvc0_pm.c
+++ b/drivers/gpu/drm/nouveau/nvc0_pm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_bios.h" 27#include "nouveau_bios.h"
28#include "nouveau_pm.h" 28#include "nouveau_pm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_software.c b/drivers/gpu/drm/nouveau/nvc0_software.c
index 93e8c164fec6..940652e7fafa 100644
--- a/drivers/gpu/drm/nouveau/nvc0_software.c
+++ b/drivers/gpu/drm/nouveau/nvc0_software.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_ramht.h" 28#include "nouveau_ramht.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_vm.c b/drivers/gpu/drm/nouveau/nvc0_vm.c
index 30d2bd58828f..fad338314881 100644
--- a/drivers/gpu/drm/nouveau/nvc0_vm.c
+++ b/drivers/gpu/drm/nouveau/nvc0_vm.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_vm.h" 28#include "nouveau_vm.h"
diff --git a/drivers/gpu/drm/nouveau/nvc0_vram.c b/drivers/gpu/drm/nouveau/nvc0_vram.c
index a7eef8934c07..4d62a1d95782 100644
--- a/drivers/gpu/drm/nouveau/nvc0_vram.c
+++ b/drivers/gpu/drm/nouveau/nvc0_vram.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28 28
diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c
index 8a2fc89b7763..4b44a3250d4b 100644
--- a/drivers/gpu/drm/nouveau/nvd0_display.c
+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
@@ -24,8 +24,8 @@
24 24
25#include <linux/dma-mapping.h> 25#include <linux/dma-mapping.h>
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_connector.h" 31#include "nouveau_connector.h"
diff --git a/drivers/gpu/drm/nouveau/nve0_fifo.c b/drivers/gpu/drm/nouveau/nve0_fifo.c
index 281bece751b6..0eba15b2201a 100644
--- a/drivers/gpu/drm/nouveau/nve0_fifo.c
+++ b/drivers/gpu/drm/nouveau/nve0_fifo.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26 26
27#include "nouveau_drv.h" 27#include "nouveau_drv.h"
28#include "nouveau_mm.h" 28#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nve0_graph.c b/drivers/gpu/drm/nouveau/nve0_graph.c
index 8a8051b68f10..b784a8b32458 100644
--- a/drivers/gpu/drm/nouveau/nve0_graph.c
+++ b/drivers/gpu/drm/nouveau/nve0_graph.c
@@ -25,7 +25,7 @@
25#include <linux/firmware.h> 25#include <linux/firmware.h>
26#include <linux/module.h> 26#include <linux/module.h>
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29 29
30#include "nouveau_drv.h" 30#include "nouveau_drv.h"
31#include "nouveau_mm.h" 31#include "nouveau_mm.h"
diff --git a/drivers/gpu/drm/nouveau/nve0_grctx.c b/drivers/gpu/drm/nouveau/nve0_grctx.c
index d8cb360e92c1..d3a802987972 100644
--- a/drivers/gpu/drm/nouveau/nve0_grctx.c
+++ b/drivers/gpu/drm/nouveau/nve0_grctx.c
@@ -22,7 +22,7 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "nouveau_drv.h" 26#include "nouveau_drv.h"
27#include "nouveau_mm.h" 27#include "nouveau_mm.h"
28#include "nve0_graph.h" 28#include "nve0_graph.h"
diff --git a/drivers/gpu/drm/r128/r128_cce.c b/drivers/gpu/drm/r128/r128_cce.c
index bcac90b543ad..d4660cf942a5 100644
--- a/drivers/gpu/drm/r128/r128_cce.c
+++ b/drivers/gpu/drm/r128/r128_cce.c
@@ -34,9 +34,8 @@
34#include <linux/slab.h> 34#include <linux/slab.h>
35#include <linux/module.h> 35#include <linux/module.h>
36 36
37#include "drmP.h" 37#include <drm/drmP.h>
38#include "drm.h" 38#include <drm/r128_drm.h>
39#include "r128_drm.h"
40#include "r128_drv.h" 39#include "r128_drv.h"
41 40
42#define R128_FIFO_DEBUG 0 41#define R128_FIFO_DEBUG 0
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c
index 2666a5308ab9..472c38fe123f 100644
--- a/drivers/gpu/drm/r128/r128_drv.c
+++ b/drivers/gpu/drm/r128/r128_drv.c
@@ -31,12 +31,11 @@
31 31
32#include <linux/module.h> 32#include <linux/module.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/r128_drm.h>
36#include "r128_drm.h"
37#include "r128_drv.h" 36#include "r128_drv.h"
38 37
39#include "drm_pciids.h" 38#include <drm/drm_pciids.h>
40 39
41static struct pci_device_id pciidlist[] = { 40static struct pci_device_id pciidlist[] = {
42 r128_PCI_IDS 41 r128_PCI_IDS
diff --git a/drivers/gpu/drm/r128/r128_ioc32.c b/drivers/gpu/drm/r128/r128_ioc32.c
index 51c99fc4dd38..a954c548201e 100644
--- a/drivers/gpu/drm/r128/r128_ioc32.c
+++ b/drivers/gpu/drm/r128/r128_ioc32.c
@@ -31,9 +31,8 @@
31 */ 31 */
32#include <linux/compat.h> 32#include <linux/compat.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/r128_drm.h>
36#include "r128_drm.h"
37 36
38typedef struct drm_r128_init32 { 37typedef struct drm_r128_init32 {
39 int func; 38 int func;
diff --git a/drivers/gpu/drm/r128/r128_irq.c b/drivers/gpu/drm/r128/r128_irq.c
index 429d5a02695f..2ea4f09d2691 100644
--- a/drivers/gpu/drm/r128/r128_irq.c
+++ b/drivers/gpu/drm/r128/r128_irq.c
@@ -30,9 +30,8 @@
30 * Eric Anholt <anholt@FreeBSD.org> 30 * Eric Anholt <anholt@FreeBSD.org>
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/r128_drm.h>
35#include "r128_drm.h"
36#include "r128_drv.h" 35#include "r128_drv.h"
37 36
38u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) 37u32 r128_get_vblank_counter(struct drm_device *dev, int crtc)
diff --git a/drivers/gpu/drm/r128/r128_state.c b/drivers/gpu/drm/r128/r128_state.c
index a9e33ce65918..19bb7e6f3d9a 100644
--- a/drivers/gpu/drm/r128/r128_state.c
+++ b/drivers/gpu/drm/r128/r128_state.c
@@ -28,9 +28,8 @@
28 * Gareth Hughes <gareth@valinux.com> 28 * Gareth Hughes <gareth@valinux.com>
29 */ 29 */
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/r128_drm.h>
33#include "r128_drm.h"
34#include "r128_drv.h" 33#include "r128_drv.h"
35 34
36/* ================================================================ 35/* ================================================================
diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h
index 25fea631dad2..feba6b8d36b3 100644
--- a/drivers/gpu/drm/radeon/atom.h
+++ b/drivers/gpu/drm/radeon/atom.h
@@ -26,7 +26,7 @@
26#define ATOM_H 26#define ATOM_H
27 27
28#include <linux/types.h> 28#include <linux/types.h>
29#include "drmP.h" 29#include <drm/drmP.h>
30 30
31#define ATOM_BIOS_MAGIC 0xAA55 31#define ATOM_BIOS_MAGIC 0xAA55
32#define ATOM_ATI_MAGIC_PTR 0x30 32#define ATOM_ATI_MAGIC_PTR 0x30
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c
index 3623b98ed3fe..ea8e2d471c35 100644
--- a/drivers/gpu/drm/radeon/atombios_dp.c
+++ b/drivers/gpu/drm/radeon/atombios_dp.c
@@ -24,13 +24,13 @@
24 * Alex Deucher 24 * Alex Deucher
25 * Jerome Glisse 25 * Jerome Glisse
26 */ 26 */
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30 30
31#include "atom.h" 31#include "atom.h"
32#include "atom-bits.h" 32#include "atom-bits.h"
33#include "drm_dp_helper.h" 33#include <drm/drm_dp_helper.h>
34 34
35/* move these to drm_dp_helper.c/h */ 35/* move these to drm_dp_helper.c/h */
36#define DP_LINK_CONFIGURATION_SIZE 9 36#define DP_LINK_CONFIGURATION_SIZE 9
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c
index 6e8803a1170c..8e2ee98e69d2 100644
--- a/drivers/gpu/drm/radeon/atombios_encoders.c
+++ b/drivers/gpu/drm/radeon/atombios_encoders.c
@@ -23,9 +23,9 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm_crtc_helper.h" 27#include <drm/drm_crtc_helper.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "atom.h" 30#include "atom.h"
31 31
diff --git a/drivers/gpu/drm/radeon/atombios_i2c.c b/drivers/gpu/drm/radeon/atombios_i2c.c
index 44d87b6b4220..082338df708a 100644
--- a/drivers/gpu/drm/radeon/atombios_i2c.c
+++ b/drivers/gpu/drm/radeon/atombios_i2c.c
@@ -22,8 +22,8 @@
22 * Authors: Alex Deucher 22 * Authors: Alex Deucher
23 * 23 *
24 */ 24 */
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "radeon_drm.h" 26#include <drm/radeon_drm.h>
27#include "radeon.h" 27#include "radeon.h"
28#include "atom.h" 28#include "atom.h"
29 29
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index ed3340adeb6f..c548dd75ca8b 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -24,10 +24,10 @@
24#include <linux/firmware.h> 24#include <linux/firmware.h>
25#include <linux/platform_device.h> 25#include <linux/platform_device.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "radeon.h" 28#include "radeon.h"
29#include "radeon_asic.h" 29#include "radeon_asic.h"
30#include "radeon_drm.h" 30#include <drm/radeon_drm.h>
31#include "evergreend.h" 31#include "evergreend.h"
32#include "atom.h" 32#include "atom.h"
33#include "avivod.h" 33#include "avivod.h"
diff --git a/drivers/gpu/drm/radeon/evergreen_blit_kms.c b/drivers/gpu/drm/radeon/evergreen_blit_kms.c
index 89cb9feb5653..057c87b6515a 100644
--- a/drivers/gpu/drm/radeon/evergreen_blit_kms.c
+++ b/drivers/gpu/drm/radeon/evergreen_blit_kms.c
@@ -24,9 +24,8 @@
24 * Alex Deucher <alexander.deucher@amd.com> 24 * Alex Deucher <alexander.deucher@amd.com>
25 */ 25 */
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon_drm.h"
30#include "radeon.h" 29#include "radeon.h"
31 30
32#include "evergreend.h" 31#include "evergreend.h"
diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c
index e44a62a07fe3..101acd618f67 100644
--- a/drivers/gpu/drm/radeon/evergreen_cs.c
+++ b/drivers/gpu/drm/radeon/evergreen_cs.c
@@ -25,7 +25,7 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "evergreend.h" 30#include "evergreend.h"
31#include "evergreen_reg_safe.h" 31#include "evergreen_reg_safe.h"
diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c
index 65c54160028b..327c08b54180 100644
--- a/drivers/gpu/drm/radeon/evergreen_hdmi.c
+++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c
@@ -24,8 +24,8 @@
24 * Authors: Christian König 24 * Authors: Christian König
25 * Rafał Miłecki 25 * Rafał Miłecki
26 */ 26 */
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "radeon_asic.h" 30#include "radeon_asic.h"
31#include "evergreend.h" 31#include "evergreend.h"
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index 853800e8582f..174462519f15 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -25,10 +25,10 @@
25#include <linux/platform_device.h> 25#include <linux/platform_device.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include <linux/module.h> 27#include <linux/module.h>
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "radeon_asic.h" 30#include "radeon_asic.h"
31#include "radeon_drm.h" 31#include <drm/radeon_drm.h>
32#include "nid.h" 32#include "nid.h"
33#include "atom.h" 33#include "atom.h"
34#include "ni_reg.h" 34#include "ni_reg.h"
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 8d7e33a0b243..3183a815f71c 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -27,9 +27,8 @@
27 */ 27 */
28#include <linux/seq_file.h> 28#include <linux/seq_file.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h" 31#include <drm/radeon_drm.h>
32#include "radeon_drm.h"
33#include "radeon_reg.h" 32#include "radeon_reg.h"
34#include "radeon.h" 33#include "radeon.h"
35#include "radeon_asic.h" 34#include "radeon_asic.h"
diff --git a/drivers/gpu/drm/radeon/r200.c b/drivers/gpu/drm/radeon/r200.c
index f0889259eb08..98143a5c5b73 100644
--- a/drivers/gpu/drm/radeon/r200.c
+++ b/drivers/gpu/drm/radeon/r200.c
@@ -25,9 +25,8 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/radeon_drm.h>
30#include "radeon_drm.h"
31#include "radeon_reg.h" 30#include "radeon_reg.h"
32#include "radeon.h" 31#include "radeon.h"
33#include "radeon_asic.h" 32#include "radeon_asic.h"
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c
index 646a1927dda7..1e10df214271 100644
--- a/drivers/gpu/drm/radeon/r300.c
+++ b/drivers/gpu/drm/radeon/r300.c
@@ -33,7 +33,7 @@
33#include "radeon_reg.h" 33#include "radeon_reg.h"
34#include "radeon.h" 34#include "radeon.h"
35#include "radeon_asic.h" 35#include "radeon_asic.h"
36#include "radeon_drm.h" 36#include <drm/radeon_drm.h>
37#include "r100_track.h" 37#include "r100_track.h"
38#include "r300d.h" 38#include "r300d.h"
39#include "rv350d.h" 39#include "rv350d.h"
diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c b/drivers/gpu/drm/radeon/r300_cmdbuf.c
index 1fe98b421c9b..002ab038d2ab 100644
--- a/drivers/gpu/drm/radeon/r300_cmdbuf.c
+++ b/drivers/gpu/drm/radeon/r300_cmdbuf.c
@@ -31,10 +31,9 @@
31 * Nicolai Haehnle <prefect_@gmx.net> 31 * Nicolai Haehnle <prefect_@gmx.net>
32 */ 32 */
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/drm_buffer.h>
36#include "drm_buffer.h" 36#include <drm/radeon_drm.h>
37#include "radeon_drm.h"
38#include "radeon_drv.h" 37#include "radeon_drv.h"
39#include "r300_reg.h" 38#include "r300_reg.h"
40 39
diff --git a/drivers/gpu/drm/radeon/r420.c b/drivers/gpu/drm/radeon/r420.c
index f2f5bf6d339f..6fce2eb4dd16 100644
--- a/drivers/gpu/drm/radeon/r420.c
+++ b/drivers/gpu/drm/radeon/r420.c
@@ -27,7 +27,7 @@
27 */ 27 */
28#include <linux/seq_file.h> 28#include <linux/seq_file.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "radeon_reg.h" 31#include "radeon_reg.h"
32#include "radeon.h" 32#include "radeon.h"
33#include "radeon_asic.h" 33#include "radeon_asic.h"
diff --git a/drivers/gpu/drm/radeon/r520.c b/drivers/gpu/drm/radeon/r520.c
index 079d3c52c08a..90703d539e04 100644
--- a/drivers/gpu/drm/radeon/r520.c
+++ b/drivers/gpu/drm/radeon/r520.c
@@ -25,7 +25,7 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "radeon_asic.h" 30#include "radeon_asic.h"
31#include "atom.h" 31#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index d79c639ae739..9f2cafd10f4a 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -30,8 +30,8 @@
30#include <linux/firmware.h> 30#include <linux/firmware.h>
31#include <linux/platform_device.h> 31#include <linux/platform_device.h>
32#include <linux/module.h> 32#include <linux/module.h>
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "radeon_drm.h" 34#include <drm/radeon_drm.h>
35#include "radeon.h" 35#include "radeon.h"
36#include "radeon_asic.h" 36#include "radeon_asic.h"
37#include "radeon_mode.h" 37#include "radeon_mode.h"
diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c
index 79b55916cf90..cb03fe22b0ab 100644
--- a/drivers/gpu/drm/radeon/r600_audio.c
+++ b/drivers/gpu/drm/radeon/r600_audio.c
@@ -23,7 +23,7 @@
23 * 23 *
24 * Authors: Christian König 24 * Authors: Christian König
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "radeon.h" 27#include "radeon.h"
28#include "radeon_reg.h" 28#include "radeon_reg.h"
29#include "radeon_asic.h" 29#include "radeon_asic.h"
diff --git a/drivers/gpu/drm/radeon/r600_blit.c b/drivers/gpu/drm/radeon/r600_blit.c
index 3c031a48205d..26ace5623dc7 100644
--- a/drivers/gpu/drm/radeon/r600_blit.c
+++ b/drivers/gpu/drm/radeon/r600_blit.c
@@ -23,9 +23,8 @@
23 * Authors: 23 * Authors:
24 * Alex Deucher <alexander.deucher@amd.com> 24 * Alex Deucher <alexander.deucher@amd.com>
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon_drm.h"
29#include "radeon_drv.h" 28#include "radeon_drv.h"
30 29
31#include "r600_blit_shaders.h" 30#include "r600_blit_shaders.h"
diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c
index 2bef8549ddfe..aec8487662c4 100644
--- a/drivers/gpu/drm/radeon/r600_blit_kms.c
+++ b/drivers/gpu/drm/radeon/r600_blit_kms.c
@@ -23,9 +23,8 @@
23 * 23 *
24 */ 24 */
25 25
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon_drm.h"
29#include "radeon.h" 28#include "radeon.h"
30 29
31#include "r600d.h" 30#include "r600d.h"
diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c
index 75ed17c96115..2514123d2d00 100644
--- a/drivers/gpu/drm/radeon/r600_cp.c
+++ b/drivers/gpu/drm/radeon/r600_cp.c
@@ -28,9 +28,8 @@
28 28
29#include <linux/module.h> 29#include <linux/module.h>
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm.h" 32#include <drm/radeon_drm.h>
33#include "radeon_drm.h"
34#include "radeon_drv.h" 33#include "radeon_drv.h"
35 34
36#define PFP_UCODE_SIZE 576 35#define PFP_UCODE_SIZE 576
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c
index f37676d7f217..cb92646a5e55 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -26,7 +26,7 @@
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include <linux/kernel.h> 28#include <linux/kernel.h>
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "radeon.h" 30#include "radeon.h"
31#include "r600d.h" 31#include "r600d.h"
32#include "r600_reg_safe.h" 32#include "r600_reg_safe.h"
diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c
index e3558c3ef24a..23be9319c729 100644
--- a/drivers/gpu/drm/radeon/r600_hdmi.c
+++ b/drivers/gpu/drm/radeon/r600_hdmi.c
@@ -23,8 +23,8 @@
23 * 23 *
24 * Authors: Christian König 24 * Authors: Christian König
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "radeon_drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon.h" 28#include "radeon.h"
29#include "radeon_asic.h" 29#include "radeon_asic.h"
30#include "r600d.h" 30#include "r600d.h"
diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeon/radeon_acpi.c
index 3516a6081dcf..215063e1a292 100644
--- a/drivers/gpu/drm/radeon/radeon_acpi.c
+++ b/drivers/gpu/drm/radeon/radeon_acpi.c
@@ -4,10 +4,8 @@
4#include <acpi/acpi_drivers.h> 4#include <acpi/acpi_drivers.h>
5#include <acpi/acpi_bus.h> 5#include <acpi/acpi_bus.h>
6 6
7#include "drmP.h" 7#include <drm/drmP.h>
8#include "drm.h" 8#include <drm/drm_crtc_helper.h>
9#include "drm_sarea.h"
10#include "drm_crtc_helper.h"
11#include "radeon.h" 9#include "radeon.h"
12 10
13#include <linux/vga_switcheroo.h> 11#include <linux/vga_switcheroo.h>
diff --git a/drivers/gpu/drm/radeon/radeon_agp.c b/drivers/gpu/drm/radeon/radeon_agp.c
index bd2f33e5c91a..10ea17a6b2a6 100644
--- a/drivers/gpu/drm/radeon/radeon_agp.c
+++ b/drivers/gpu/drm/radeon/radeon_agp.c
@@ -24,10 +24,9 @@
24 * Dave Airlie 24 * Dave Airlie
25 * Jerome Glisse <glisse@freedesktop.org> 25 * Jerome Glisse <glisse@freedesktop.org>
26 */ 26 */
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "drm.h"
29#include "radeon.h" 28#include "radeon.h"
30#include "radeon_drm.h" 29#include <drm/radeon_drm.h>
31 30
32#if __OS_HAS_AGP 31#if __OS_HAS_AGP
33 32
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index d67d4f3eb6f4..c4b5d0542ee2 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -23,8 +23,8 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "radeon_drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon.h" 28#include "radeon.h"
29 29
30#include "atom.h" 30#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c
index d306cc8fdeaa..b8015913d382 100644
--- a/drivers/gpu/drm/radeon/radeon_bios.c
+++ b/drivers/gpu/drm/radeon/radeon_bios.c
@@ -25,7 +25,7 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon_reg.h" 29#include "radeon_reg.h"
30#include "radeon.h" 30#include "radeon.h"
31#include "atom.h" 31#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_clocks.c b/drivers/gpu/drm/radeon/radeon_clocks.c
index 9c6b29a41927..38e396dae0a9 100644
--- a/drivers/gpu/drm/radeon/radeon_clocks.c
+++ b/drivers/gpu/drm/radeon/radeon_clocks.c
@@ -25,8 +25,8 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon_drm.h" 29#include <drm/radeon_drm.h>
30#include "radeon_reg.h" 30#include "radeon_reg.h"
31#include "radeon.h" 31#include "radeon.h"
32#include "atom.h" 32#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c
index f75247d42ffd..a3900e7bd77b 100644
--- a/drivers/gpu/drm/radeon/radeon_combios.c
+++ b/drivers/gpu/drm/radeon/radeon_combios.c
@@ -24,8 +24,8 @@
24 * Authors: Dave Airlie 24 * Authors: Dave Airlie
25 * Alex Deucher 25 * Alex Deucher
26 */ 26 */
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "atom.h" 30#include "atom.h"
31 31
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index 895e628b60f8..3bc22e341719 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -23,11 +23,11 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm_edid.h" 27#include <drm/drm_edid.h>
28#include "drm_crtc_helper.h" 28#include <drm/drm_crtc_helper.h>
29#include "drm_fb_helper.h" 29#include <drm/drm_fb_helper.h>
30#include "radeon_drm.h" 30#include <drm/radeon_drm.h>
31#include "radeon.h" 31#include "radeon.h"
32#include "atom.h" 32#include "atom.h"
33 33
diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c
index ef67e181377b..8b2797dc7b64 100644
--- a/drivers/gpu/drm/radeon/radeon_cp.c
+++ b/drivers/gpu/drm/radeon/radeon_cp.c
@@ -31,10 +31,8 @@
31 31
32#include <linux/module.h> 32#include <linux/module.h>
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "drm.h" 35#include <drm/radeon_drm.h>
36#include "drm_sarea.h"
37#include "radeon_drm.h"
38#include "radeon_drv.h" 36#include "radeon_drv.h"
39#include "r300_reg.h" 37#include "r300_reg.h"
40 38
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
index b4a0db24f4dd..891fff52ab65 100644
--- a/drivers/gpu/drm/radeon/radeon_cs.c
+++ b/drivers/gpu/drm/radeon/radeon_cs.c
@@ -24,8 +24,8 @@
24 * Authors: 24 * Authors:
25 * Jerome Glisse <glisse@freedesktop.org> 25 * Jerome Glisse <glisse@freedesktop.org>
26 */ 26 */
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon_reg.h" 29#include "radeon_reg.h"
30#include "radeon.h" 30#include "radeon.h"
31 31
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c
index 8794744cdf1a..0fe56c9f64bd 100644
--- a/drivers/gpu/drm/radeon/radeon_cursor.c
+++ b/drivers/gpu/drm/radeon/radeon_cursor.c
@@ -23,8 +23,8 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "radeon_drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon.h" 28#include "radeon.h"
29 29
30#define CURSOR_WIDTH 64 30#define CURSOR_WIDTH 64
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 7ddef8f30d0e..bfa2a6015727 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -23,15 +23,15 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "radeon_drm.h" 27#include <drm/radeon_drm.h>
28#include "radeon.h" 28#include "radeon.h"
29 29
30#include "atom.h" 30#include "atom.h"
31#include <asm/div64.h> 31#include <asm/div64.h>
32 32
33#include "drm_crtc_helper.h" 33#include <drm/drm_crtc_helper.h>
34#include "drm_edid.h" 34#include <drm/drm_edid.h>
35 35
36static void avivo_crtc_load_lut(struct drm_crtc *crtc) 36static void avivo_crtc_load_lut(struct drm_crtc *crtc)
37{ 37{
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 8c593ea82c41..97f3fe7dd040 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -29,12 +29,11 @@
29 * OTHER DEALINGS IN THE SOFTWARE. 29 * OTHER DEALINGS IN THE SOFTWARE.
30 */ 30 */
31 31
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/radeon_drm.h>
34#include "radeon_drm.h"
35#include "radeon_drv.h" 34#include "radeon_drv.h"
36 35
37#include "drm_pciids.h" 36#include <drm/drm_pciids.h>
38#include <linux/console.h> 37#include <linux/console.h>
39#include <linux/module.h> 38#include <linux/module.h>
40 39
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c
index 74670696277d..5a1bae3a2426 100644
--- a/drivers/gpu/drm/radeon/radeon_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_encoders.c
@@ -23,9 +23,9 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm_crtc_helper.h" 27#include <drm/drm_crtc_helper.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "atom.h" 30#include "atom.h"
31 31
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c
index 5906914a78bc..fae493710ebf 100644
--- a/drivers/gpu/drm/radeon/radeon_fb.c
+++ b/drivers/gpu/drm/radeon/radeon_fb.c
@@ -27,14 +27,13 @@
27#include <linux/slab.h> 27#include <linux/slab.h>
28#include <linux/fb.h> 28#include <linux/fb.h>
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h" 31#include <drm/drm_crtc.h>
32#include "drm_crtc.h" 32#include <drm/drm_crtc_helper.h>
33#include "drm_crtc_helper.h" 33#include <drm/radeon_drm.h>
34#include "radeon_drm.h"
35#include "radeon.h" 34#include "radeon.h"
36 35
37#include "drm_fb_helper.h" 36#include <drm/drm_fb_helper.h>
38 37
39#include <linux/vga_switcheroo.h> 38#include <linux/vga_switcheroo.h>
40 39
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c
index 2a59375dbe52..5cd47ff03e48 100644
--- a/drivers/gpu/drm/radeon/radeon_fence.c
+++ b/drivers/gpu/drm/radeon/radeon_fence.c
@@ -34,8 +34,7 @@
34#include <linux/list.h> 34#include <linux/list.h>
35#include <linux/kref.h> 35#include <linux/kref.h>
36#include <linux/slab.h> 36#include <linux/slab.h>
37#include "drmP.h" 37#include <drm/drmP.h>
38#include "drm.h"
39#include "radeon_reg.h" 38#include "radeon_reg.h"
40#include "radeon.h" 39#include "radeon.h"
41#include "radeon_trace.h" 40#include "radeon_trace.h"
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index bb3b7fe05ccd..33cc03e310fd 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -25,8 +25,8 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon_drm.h" 29#include <drm/radeon_drm.h>
30#include "radeon.h" 30#include "radeon.h"
31#include "radeon_reg.h" 31#include "radeon_reg.h"
32 32
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c
index 1b57b0058ad6..04c212da6f65 100644
--- a/drivers/gpu/drm/radeon/radeon_gem.c
+++ b/drivers/gpu/drm/radeon/radeon_gem.c
@@ -25,9 +25,8 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm.h" 29#include <drm/radeon_drm.h>
30#include "radeon_drm.h"
31#include "radeon.h" 30#include "radeon.h"
32 31
33int radeon_gem_object_init(struct drm_gem_object *obj) 32int radeon_gem_object_init(struct drm_gem_object *obj)
diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c
index 3edec1c198e3..c5bddd630eb9 100644
--- a/drivers/gpu/drm/radeon/radeon_i2c.c
+++ b/drivers/gpu/drm/radeon/radeon_i2c.c
@@ -25,9 +25,9 @@
25 */ 25 */
26#include <linux/export.h> 26#include <linux/export.h>
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm_edid.h" 29#include <drm/drm_edid.h>
30#include "radeon_drm.h" 30#include <drm/radeon_drm.h>
31#include "radeon.h" 31#include "radeon.h"
32#include "atom.h" 32#include "atom.h"
33 33
diff --git a/drivers/gpu/drm/radeon/radeon_ioc32.c b/drivers/gpu/drm/radeon/radeon_ioc32.c
index 48b7cea31e08..8fc81a26438a 100644
--- a/drivers/gpu/drm/radeon/radeon_ioc32.c
+++ b/drivers/gpu/drm/radeon/radeon_ioc32.c
@@ -29,9 +29,8 @@
29 */ 29 */
30#include <linux/compat.h> 30#include <linux/compat.h>
31 31
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/radeon_drm.h>
34#include "radeon_drm.h"
35#include "radeon_drv.h" 34#include "radeon_drv.h"
36 35
37typedef struct drm_radeon_init32 { 36typedef struct drm_radeon_init32 {
diff --git a/drivers/gpu/drm/radeon/radeon_irq.c b/drivers/gpu/drm/radeon/radeon_irq.c
index 00da38424dfc..e7710339a6a7 100644
--- a/drivers/gpu/drm/radeon/radeon_irq.c
+++ b/drivers/gpu/drm/radeon/radeon_irq.c
@@ -30,9 +30,8 @@
30 * Michel D�zer <michel@daenzer.net> 30 * Michel D�zer <michel@daenzer.net>
31 */ 31 */
32 32
33#include "drmP.h" 33#include <drm/drmP.h>
34#include "drm.h" 34#include <drm/radeon_drm.h>
35#include "radeon_drm.h"
36#include "radeon_drv.h" 35#include "radeon_drv.h"
37 36
38void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state) 37void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state)
diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c
index 50b596ec7b7e..9201992cee12 100644
--- a/drivers/gpu/drm/radeon/radeon_irq_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c
@@ -25,9 +25,9 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm_crtc_helper.h" 29#include <drm/drm_crtc_helper.h>
30#include "radeon_drm.h" 30#include <drm/radeon_drm.h>
31#include "radeon_reg.h" 31#include "radeon_reg.h"
32#include "radeon.h" 32#include "radeon.h"
33#include "atom.h" 33#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index 414b4acf6947..8a7f87f17c13 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -25,10 +25,9 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "drm_sarea.h"
30#include "radeon.h" 29#include "radeon.h"
31#include "radeon_drm.h" 30#include <drm/radeon_drm.h>
32#include "radeon_asic.h" 31#include "radeon_asic.h"
33 32
34#include <linux/vga_switcheroo.h> 33#include <linux/vga_switcheroo.h>
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
index 670e9910f869..757b08f07195 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
@@ -23,9 +23,9 @@
23 * Authors: Dave Airlie 23 * Authors: Dave Airlie
24 * Alex Deucher 24 * Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm_crtc_helper.h" 27#include <drm/drm_crtc_helper.h>
28#include "radeon_drm.h" 28#include <drm/radeon_drm.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "atom.h" 30#include "atom.h"
31#include <linux/backlight.h> 31#include <linux/backlight.h>
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_tv.c b/drivers/gpu/drm/radeon/radeon_legacy_tv.c
index b37ec0f1413a..49750d07ab7d 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_tv.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_tv.c
@@ -1,5 +1,5 @@
1#include "drmP.h" 1#include <drm/drmP.h>
2#include "drm_crtc_helper.h" 2#include <drm/drm_crtc_helper.h>
3#include "radeon.h" 3#include "radeon.h"
4 4
5/* 5/*
diff --git a/drivers/gpu/drm/radeon/radeon_mem.c b/drivers/gpu/drm/radeon/radeon_mem.c
index 988548efea92..b9f067241633 100644
--- a/drivers/gpu/drm/radeon/radeon_mem.c
+++ b/drivers/gpu/drm/radeon/radeon_mem.c
@@ -29,9 +29,8 @@
29 * Keith Whitwell <keith@tungstengraphics.com> 29 * Keith Whitwell <keith@tungstengraphics.com>
30 */ 30 */
31 31
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/radeon_drm.h>
34#include "radeon_drm.h"
35#include "radeon_drv.h" 34#include "radeon_drv.h"
36 35
37/* Very simple allocator for GART memory, working on a static range 36/* Very simple allocator for GART memory, working on a static range
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index d56978949f34..0c28ca3964b1 100644
--- a/drivers/gpu/drm/radeon/radeon_mode.h
+++ b/drivers/gpu/drm/radeon/radeon_mode.h
@@ -30,12 +30,11 @@
30#ifndef RADEON_MODE_H 30#ifndef RADEON_MODE_H
31#define RADEON_MODE_H 31#define RADEON_MODE_H
32 32
33#include <drm_crtc.h> 33#include <drm/drm_crtc.h>
34#include <drm_mode.h> 34#include <drm/drm_edid.h>
35#include <drm_edid.h> 35#include <drm/drm_dp_helper.h>
36#include <drm_dp_helper.h> 36#include <drm/drm_fixed.h>
37#include <drm_fixed.h> 37#include <drm/drm_crtc_helper.h>
38#include <drm_crtc_helper.h>
39#include <linux/i2c.h> 38#include <linux/i2c.h>
40#include <linux/i2c-algo-bit.h> 39#include <linux/i2c-algo-bit.h>
41 40
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c
index 9024e7222839..56ed724b398d 100644
--- a/drivers/gpu/drm/radeon/radeon_object.c
+++ b/drivers/gpu/drm/radeon/radeon_object.c
@@ -32,7 +32,7 @@
32#include <linux/list.h> 32#include <linux/list.h>
33#include <linux/slab.h> 33#include <linux/slab.h>
34#include <drm/drmP.h> 34#include <drm/drmP.h>
35#include "radeon_drm.h" 35#include <drm/radeon_drm.h>
36#include "radeon.h" 36#include "radeon.h"
37#include "radeon_trace.h" 37#include "radeon_trace.h"
38 38
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index 7ae606600107..3ef0319981d3 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -20,7 +20,7 @@
20 * Authors: Rafał Miłecki <zajec5@gmail.com> 20 * Authors: Rafał Miłecki <zajec5@gmail.com>
21 * Alex Deucher <alexdeucher@gmail.com> 21 * Alex Deucher <alexdeucher@gmail.com>
22 */ 22 */
23#include "drmP.h" 23#include <drm/drmP.h>
24#include "radeon.h" 24#include "radeon.h"
25#include "avivod.h" 25#include "avivod.h"
26#include "atom.h" 26#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c
index 6bef46ace831..e09521858f64 100644
--- a/drivers/gpu/drm/radeon/radeon_prime.c
+++ b/drivers/gpu/drm/radeon/radeon_prime.c
@@ -23,11 +23,10 @@
23 * 23 *
24 * Authors: Alex Deucher 24 * Authors: Alex Deucher
25 */ 25 */
26#include "drmP.h" 26#include <drm/drmP.h>
27#include "drm.h"
28 27
29#include "radeon.h" 28#include "radeon.h"
30#include "radeon_drm.h" 29#include <drm/radeon_drm.h>
31 30
32#include <linux/dma-buf.h> 31#include <linux/dma-buf.h>
33 32
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c
index 43c431a2686d..fc209c8b8666 100644
--- a/drivers/gpu/drm/radeon/radeon_ring.c
+++ b/drivers/gpu/drm/radeon/radeon_ring.c
@@ -28,8 +28,8 @@
28 */ 28 */
29#include <linux/seq_file.h> 29#include <linux/seq_file.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "radeon_drm.h" 32#include <drm/radeon_drm.h>
33#include "radeon_reg.h" 33#include "radeon_reg.h"
34#include "radeon.h" 34#include "radeon.h"
35#include "atom.h" 35#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/radeon_sa.c b/drivers/gpu/drm/radeon/radeon_sa.c
index 4e771240fdd0..83e889b9420b 100644
--- a/drivers/gpu/drm/radeon/radeon_sa.c
+++ b/drivers/gpu/drm/radeon/radeon_sa.c
@@ -41,8 +41,7 @@
41 * If we are asked to block we wait on all the oldest fence of all 41 * If we are asked to block we wait on all the oldest fence of all
42 * rings. We just wait for any of those fence to complete. 42 * rings. We just wait for any of those fence to complete.
43 */ 43 */
44#include "drmP.h" 44#include <drm/drmP.h>
45#include "drm.h"
46#include "radeon.h" 45#include "radeon.h"
47 46
48static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo); 47static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo);
diff --git a/drivers/gpu/drm/radeon/radeon_semaphore.c b/drivers/gpu/drm/radeon/radeon_semaphore.c
index 7cc78de6ddc3..97f3ece81cd2 100644
--- a/drivers/gpu/drm/radeon/radeon_semaphore.c
+++ b/drivers/gpu/drm/radeon/radeon_semaphore.c
@@ -27,8 +27,7 @@
27 * Authors: 27 * Authors:
28 * Christian König <deathsimple@vodafone.de> 28 * Christian König <deathsimple@vodafone.de>
29 */ 29 */
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h"
32#include "radeon.h" 31#include "radeon.h"
33 32
34 33
diff --git a/drivers/gpu/drm/radeon/radeon_state.c b/drivers/gpu/drm/radeon/radeon_state.c
index e8422ae7fe74..8e9057b6a365 100644
--- a/drivers/gpu/drm/radeon/radeon_state.c
+++ b/drivers/gpu/drm/radeon/radeon_state.c
@@ -27,11 +27,9 @@
27 * Kevin E. Martin <martin@valinux.com> 27 * Kevin E. Martin <martin@valinux.com>
28 */ 28 */
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm.h" 31#include <drm/drm_buffer.h>
32#include "drm_buffer.h" 32#include <drm/radeon_drm.h>
33#include "drm_sarea.h"
34#include "radeon_drm.h"
35#include "radeon_drv.h" 33#include "radeon_drv.h"
36 34
37/* ================================================================ 35/* ================================================================
diff --git a/drivers/gpu/drm/radeon/radeon_trace_points.c b/drivers/gpu/drm/radeon/radeon_trace_points.c
index 8175993df84d..e51d3575976b 100644
--- a/drivers/gpu/drm/radeon/radeon_trace_points.c
+++ b/drivers/gpu/drm/radeon/radeon_trace_points.c
@@ -2,7 +2,7 @@
2 * Author : Dave Airlie <airlied@redhat.com> 2 * Author : Dave Airlie <airlied@redhat.com>
3 */ 3 */
4#include <drm/drmP.h> 4#include <drm/drmP.h>
5#include "radeon_drm.h" 5#include <drm/radeon_drm.h>
6#include "radeon.h" 6#include "radeon.h"
7 7
8#define CREATE_TRACE_POINTS 8#define CREATE_TRACE_POINTS
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c
index 5301b3df8466..6590cc128f36 100644
--- a/drivers/gpu/drm/radeon/rs600.c
+++ b/drivers/gpu/drm/radeon/rs600.c
@@ -35,7 +35,7 @@
35 * close to the one of the R600 family (R600 likely being an evolution 35 * close to the one of the R600 family (R600 likely being an evolution
36 * of the RS600 GART block). 36 * of the RS600 GART block).
37 */ 37 */
38#include "drmP.h" 38#include <drm/drmP.h>
39#include "radeon.h" 39#include "radeon.h"
40#include "radeon_asic.h" 40#include "radeon_asic.h"
41#include "atom.h" 41#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c
index 3b663fcfe061..dfb9f0fe6f38 100644
--- a/drivers/gpu/drm/radeon/rs690.c
+++ b/drivers/gpu/drm/radeon/rs690.c
@@ -25,7 +25,7 @@
25 * Alex Deucher 25 * Alex Deucher
26 * Jerome Glisse 26 * Jerome Glisse
27 */ 27 */
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "radeon_asic.h" 30#include "radeon_asic.h"
31#include "atom.h" 31#include "atom.h"
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c
index aa8ef491ef3c..ae4f93e2f135 100644
--- a/drivers/gpu/drm/radeon/rv515.c
+++ b/drivers/gpu/drm/radeon/rv515.c
@@ -27,7 +27,7 @@
27 */ 27 */
28#include <linux/seq_file.h> 28#include <linux/seq_file.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "rv515d.h" 31#include "rv515d.h"
32#include "radeon.h" 32#include "radeon.h"
33#include "radeon_asic.h" 33#include "radeon_asic.h"
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
index ca8ffec10ff6..35a4152bb1ad 100644
--- a/drivers/gpu/drm/radeon/rv770.c
+++ b/drivers/gpu/drm/radeon/rv770.c
@@ -28,10 +28,10 @@
28#include <linux/firmware.h> 28#include <linux/firmware.h>
29#include <linux/platform_device.h> 29#include <linux/platform_device.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "radeon.h" 32#include "radeon.h"
33#include "radeon_asic.h" 33#include "radeon_asic.h"
34#include "radeon_drm.h" 34#include <drm/radeon_drm.h>
35#include "rv770d.h" 35#include "rv770d.h"
36#include "atom.h" 36#include "atom.h"
37#include "avivod.h" 37#include "avivod.h"
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c
index 0139e227e3c7..d883cae56378 100644
--- a/drivers/gpu/drm/radeon/si.c
+++ b/drivers/gpu/drm/radeon/si.c
@@ -25,10 +25,10 @@
25#include <linux/platform_device.h> 25#include <linux/platform_device.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include <linux/module.h> 27#include <linux/module.h>
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "radeon.h" 29#include "radeon.h"
30#include "radeon_asic.h" 30#include "radeon_asic.h"
31#include "radeon_drm.h" 31#include <drm/radeon_drm.h>
32#include "sid.h" 32#include "sid.h"
33#include "atom.h" 33#include "atom.h"
34#include "si_blit_shaders.h" 34#include "si_blit_shaders.h"
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index 1efbb9075837..b88a42154e16 100644
--- a/drivers/gpu/drm/savage/savage_bci.c
+++ b/drivers/gpu/drm/savage/savage_bci.c
@@ -22,8 +22,8 @@
22 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "savage_drm.h" 26#include <drm/savage_drm.h>
27#include "savage_drv.h" 27#include "savage_drv.h"
28 28
29/* Need a long timeout for shadow status updates can take a while 29/* Need a long timeout for shadow status updates can take a while
diff --git a/drivers/gpu/drm/savage/savage_drv.c b/drivers/gpu/drm/savage/savage_drv.c
index c5a164337bd5..71b2081e7835 100644
--- a/drivers/gpu/drm/savage/savage_drv.c
+++ b/drivers/gpu/drm/savage/savage_drv.c
@@ -25,11 +25,11 @@
25 25
26#include <linux/module.h> 26#include <linux/module.h>
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "savage_drm.h" 29#include <drm/savage_drm.h>
30#include "savage_drv.h" 30#include "savage_drv.h"
31 31
32#include "drm_pciids.h" 32#include <drm/drm_pciids.h>
33 33
34static struct pci_device_id pciidlist[] = { 34static struct pci_device_id pciidlist[] = {
35 savage_PCI_IDS 35 savage_PCI_IDS
diff --git a/drivers/gpu/drm/savage/savage_state.c b/drivers/gpu/drm/savage/savage_state.c
index b6d8608375cd..b35e75ed890c 100644
--- a/drivers/gpu/drm/savage/savage_state.c
+++ b/drivers/gpu/drm/savage/savage_state.c
@@ -22,8 +22,8 @@
22 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25#include "drmP.h" 25#include <drm/drmP.h>
26#include "savage_drm.h" 26#include <drm/savage_drm.h>
27#include "savage_drv.h" 27#include "savage_drv.h"
28 28
29void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv, 29void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv,
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c
index 867dc03000e6..841065b998a1 100644
--- a/drivers/gpu/drm/sis/sis_drv.c
+++ b/drivers/gpu/drm/sis/sis_drv.c
@@ -27,11 +27,11 @@
27 27
28#include <linux/module.h> 28#include <linux/module.h>
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "sis_drm.h" 31#include <drm/sis_drm.h>
32#include "sis_drv.h" 32#include "sis_drv.h"
33 33
34#include "drm_pciids.h" 34#include <drm/drm_pciids.h>
35 35
36static struct pci_device_id pciidlist[] = { 36static struct pci_device_id pciidlist[] = {
37 sisdrv_PCI_IDS 37 sisdrv_PCI_IDS
diff --git a/drivers/gpu/drm/sis/sis_drv.h b/drivers/gpu/drm/sis/sis_drv.h
index 573758b2d2d6..13b527bb83be 100644
--- a/drivers/gpu/drm/sis/sis_drv.h
+++ b/drivers/gpu/drm/sis/sis_drv.h
@@ -44,7 +44,7 @@ enum sis_family {
44 SIS_CHIP_315 = 1, 44 SIS_CHIP_315 = 1,
45}; 45};
46 46
47#include "drm_mm.h" 47#include <drm/drm_mm.h>
48 48
49 49
50#define SIS_BASE (dev_priv->mmio) 50#define SIS_BASE (dev_priv->mmio)
diff --git a/drivers/gpu/drm/sis/sis_mm.c b/drivers/gpu/drm/sis/sis_mm.c
index 2c231070d250..2b2f78c428af 100644
--- a/drivers/gpu/drm/sis/sis_mm.c
+++ b/drivers/gpu/drm/sis/sis_mm.c
@@ -31,8 +31,8 @@
31 * Thomas Hellström <thomas-at-tungstengraphics-dot-com> 31 * Thomas Hellström <thomas-at-tungstengraphics-dot-com>
32 */ 32 */
33 33
34#include "drmP.h" 34#include <drm/drmP.h>
35#include "sis_drm.h" 35#include <drm/sis_drm.h>
36#include "sis_drv.h" 36#include "sis_drv.h"
37 37
38#include <video/sisfb.h> 38#include <video/sisfb.h>
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c
index a7f4d6bd1330..ddfa743459d0 100644
--- a/drivers/gpu/drm/tdfx/tdfx_drv.c
+++ b/drivers/gpu/drm/tdfx/tdfx_drv.c
@@ -32,10 +32,10 @@
32 32
33#include <linux/module.h> 33#include <linux/module.h>
34 34
35#include "drmP.h" 35#include <drm/drmP.h>
36#include "tdfx_drv.h" 36#include "tdfx_drv.h"
37 37
38#include "drm_pciids.h" 38#include <drm/drm_pciids.h>
39 39
40static struct pci_device_id pciidlist[] = { 40static struct pci_device_id pciidlist[] = {
41 tdfx_PCI_IDS 41 tdfx_PCI_IDS
diff --git a/drivers/gpu/drm/ttm/ttm_agp_backend.c b/drivers/gpu/drm/ttm/ttm_agp_backend.c
index 4a8728291361..3302f99e7497 100644
--- a/drivers/gpu/drm/ttm/ttm_agp_backend.c
+++ b/drivers/gpu/drm/ttm/ttm_agp_backend.c
@@ -31,11 +31,11 @@
31 31
32#define pr_fmt(fmt) "[TTM] " fmt 32#define pr_fmt(fmt) "[TTM] " fmt
33 33
34#include "ttm/ttm_module.h" 34#include <drm/ttm/ttm_module.h>
35#include "ttm/ttm_bo_driver.h" 35#include <drm/ttm/ttm_bo_driver.h>
36#include "ttm/ttm_page_alloc.h" 36#include <drm/ttm/ttm_page_alloc.h>
37#ifdef TTM_HAS_AGP 37#ifdef TTM_HAS_AGP
38#include "ttm/ttm_placement.h" 38#include <drm/ttm/ttm_placement.h>
39#include <linux/agp_backend.h> 39#include <linux/agp_backend.h>
40#include <linux/module.h> 40#include <linux/module.h>
41#include <linux/slab.h> 41#include <linux/slab.h>
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 36f4b28c1b90..402ab69f9f99 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -30,9 +30,9 @@
30 30
31#define pr_fmt(fmt) "[TTM] " fmt 31#define pr_fmt(fmt) "[TTM] " fmt
32 32
33#include "ttm/ttm_module.h" 33#include <drm/ttm/ttm_module.h>
34#include "ttm/ttm_bo_driver.h" 34#include <drm/ttm/ttm_bo_driver.h>
35#include "ttm/ttm_placement.h" 35#include <drm/ttm/ttm_placement.h>
36#include <linux/jiffies.h> 36#include <linux/jiffies.h>
37#include <linux/slab.h> 37#include <linux/slab.h>
38#include <linux/sched.h> 38#include <linux/sched.h>
diff --git a/drivers/gpu/drm/ttm/ttm_bo_manager.c b/drivers/gpu/drm/ttm/ttm_bo_manager.c
index 038e947d00f9..9212494e9072 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_manager.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_manager.c
@@ -28,10 +28,10 @@
28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
29 */ 29 */
30 30
31#include "ttm/ttm_module.h" 31#include <drm/ttm/ttm_module.h>
32#include "ttm/ttm_bo_driver.h" 32#include <drm/ttm/ttm_bo_driver.h>
33#include "ttm/ttm_placement.h" 33#include <drm/ttm/ttm_placement.h>
34#include "drm_mm.h" 34#include <drm/drm_mm.h>
35#include <linux/slab.h> 35#include <linux/slab.h>
36#include <linux/spinlock.h> 36#include <linux/spinlock.h>
37#include <linux/module.h> 37#include <linux/module.h>
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index f8187ead7b37..2a4aa57779e7 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -28,8 +28,8 @@
28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
29 */ 29 */
30 30
31#include "ttm/ttm_bo_driver.h" 31#include <drm/ttm/ttm_bo_driver.h>
32#include "ttm/ttm_placement.h" 32#include <drm/ttm/ttm_placement.h>
33#include <linux/io.h> 33#include <linux/io.h>
34#include <linux/highmem.h> 34#include <linux/highmem.h>
35#include <linux/wait.h> 35#include <linux/wait.h>
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
index 3832fe10b4df..1937069432c5 100644
--- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c
+++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
@@ -25,9 +25,9 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "ttm/ttm_execbuf_util.h" 28#include <drm/ttm/ttm_execbuf_util.h>
29#include "ttm/ttm_bo_driver.h" 29#include <drm/ttm/ttm_bo_driver.h>
30#include "ttm/ttm_placement.h" 30#include <drm/ttm/ttm_placement.h>
31#include <linux/wait.h> 31#include <linux/wait.h>
32#include <linux/sched.h> 32#include <linux/sched.h>
33#include <linux/module.h> 33#include <linux/module.h>
diff --git a/drivers/gpu/drm/ttm/ttm_lock.c b/drivers/gpu/drm/ttm/ttm_lock.c
index 075daf44bce4..3daa9a3930b8 100644
--- a/drivers/gpu/drm/ttm/ttm_lock.c
+++ b/drivers/gpu/drm/ttm/ttm_lock.c
@@ -28,8 +28,8 @@
28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
29 */ 29 */
30 30
31#include "ttm/ttm_lock.h" 31#include <drm/ttm/ttm_lock.h>
32#include "ttm/ttm_module.h" 32#include <drm/ttm/ttm_module.h>
33#include <linux/atomic.h> 33#include <linux/atomic.h>
34#include <linux/errno.h> 34#include <linux/errno.h>
35#include <linux/wait.h> 35#include <linux/wait.h>
diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
index 23d2ecbaed59..479c6b0467ca 100644
--- a/drivers/gpu/drm/ttm/ttm_memory.c
+++ b/drivers/gpu/drm/ttm/ttm_memory.c
@@ -27,9 +27,9 @@
27 27
28#define pr_fmt(fmt) "[TTM] " fmt 28#define pr_fmt(fmt) "[TTM] " fmt
29 29
30#include "ttm/ttm_memory.h" 30#include <drm/ttm/ttm_memory.h>
31#include "ttm/ttm_module.h" 31#include <drm/ttm/ttm_module.h>
32#include "ttm/ttm_page_alloc.h" 32#include <drm/ttm/ttm_page_alloc.h>
33#include <linux/spinlock.h> 33#include <linux/spinlock.h>
34#include <linux/sched.h> 34#include <linux/sched.h>
35#include <linux/wait.h> 35#include <linux/wait.h>
diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c
index 902d7cf9fb4e..d7f92fe9d904 100644
--- a/drivers/gpu/drm/ttm/ttm_module.c
+++ b/drivers/gpu/drm/ttm/ttm_module.c
@@ -31,8 +31,8 @@
31#include <linux/module.h> 31#include <linux/module.h>
32#include <linux/device.h> 32#include <linux/device.h>
33#include <linux/sched.h> 33#include <linux/sched.h>
34#include "ttm/ttm_module.h" 34#include <drm/ttm/ttm_module.h>
35#include "drm_sysfs.h" 35#include <drm/drm_sysfs.h>
36 36
37static DECLARE_WAIT_QUEUE_HEAD(exit_q); 37static DECLARE_WAIT_QUEUE_HEAD(exit_q);
38atomic_t device_released; 38atomic_t device_released;
diff --git a/drivers/gpu/drm/ttm/ttm_object.c b/drivers/gpu/drm/ttm/ttm_object.c
index 68daca412cbd..c7857874956a 100644
--- a/drivers/gpu/drm/ttm/ttm_object.c
+++ b/drivers/gpu/drm/ttm/ttm_object.c
@@ -51,8 +51,8 @@
51 51
52#define pr_fmt(fmt) "[TTM] " fmt 52#define pr_fmt(fmt) "[TTM] " fmt
53 53
54#include "ttm/ttm_object.h" 54#include <drm/ttm/ttm_object.h>
55#include "ttm/ttm_module.h" 55#include <drm/ttm/ttm_module.h>
56#include <linux/list.h> 56#include <linux/list.h>
57#include <linux/spinlock.h> 57#include <linux/spinlock.h>
58#include <linux/slab.h> 58#include <linux/slab.h>
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index ebc6fac96e36..860dc4813e99 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
@@ -45,8 +45,8 @@
45 45
46#include <linux/atomic.h> 46#include <linux/atomic.h>
47 47
48#include "ttm/ttm_bo_driver.h" 48#include <drm/ttm/ttm_bo_driver.h>
49#include "ttm/ttm_page_alloc.h" 49#include <drm/ttm/ttm_page_alloc.h>
50 50
51#ifdef TTM_HAS_AGP 51#ifdef TTM_HAS_AGP
52#include <asm/agp.h> 52#include <asm/agp.h>
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
index 4f9e548b2eec..d4aa5a82ab1b 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
@@ -47,8 +47,8 @@
47#include <linux/atomic.h> 47#include <linux/atomic.h>
48#include <linux/device.h> 48#include <linux/device.h>
49#include <linux/kthread.h> 49#include <linux/kthread.h>
50#include "ttm/ttm_bo_driver.h" 50#include <drm/ttm/ttm_bo_driver.h>
51#include "ttm/ttm_page_alloc.h" 51#include <drm/ttm/ttm_page_alloc.h>
52#ifdef TTM_HAS_AGP 52#ifdef TTM_HAS_AGP
53#include <asm/agp.h> 53#include <asm/agp.h>
54#endif 54#endif
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c
index fa09daf9a50c..82a529e45afe 100644
--- a/drivers/gpu/drm/ttm/ttm_tt.c
+++ b/drivers/gpu/drm/ttm/ttm_tt.c
@@ -38,12 +38,12 @@
38#include <linux/swap.h> 38#include <linux/swap.h>
39#include <linux/slab.h> 39#include <linux/slab.h>
40#include <linux/export.h> 40#include <linux/export.h>
41#include "drm_cache.h" 41#include <drm/drm_cache.h>
42#include "drm_mem_util.h" 42#include <drm/drm_mem_util.h>
43#include "ttm/ttm_module.h" 43#include <drm/ttm/ttm_module.h>
44#include "ttm/ttm_bo_driver.h" 44#include <drm/ttm/ttm_bo_driver.h>
45#include "ttm/ttm_placement.h" 45#include <drm/ttm/ttm_placement.h>
46#include "ttm/ttm_page_alloc.h" 46#include <drm/ttm/ttm_page_alloc.h>
47 47
48/** 48/**
49 * Allocates storage for pointers to the pages that back the ttm. 49 * Allocates storage for pointers to the pages that back the ttm.
diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c
index 8d9dc44f1f94..627cd85521b1 100644
--- a/drivers/gpu/drm/udl/udl_connector.c
+++ b/drivers/gpu/drm/udl/udl_connector.c
@@ -10,10 +10,10 @@
10 * more details. 10 * more details.
11 */ 11 */
12 12
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "drm_crtc.h" 14#include <drm/drm_crtc.h>
15#include "drm_edid.h" 15#include <drm/drm_edid.h>
16#include "drm_crtc_helper.h" 16#include <drm/drm_crtc_helper.h>
17#include "udl_drv.h" 17#include "udl_drv.h"
18 18
19/* dummy connector to just get EDID, 19/* dummy connector to just get EDID,
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
index 9f84128505bb..c0770dbba74a 100644
--- a/drivers/gpu/drm/udl/udl_drv.c
+++ b/drivers/gpu/drm/udl/udl_drv.c
@@ -7,8 +7,8 @@
7 */ 7 */
8 8
9#include <linux/module.h> 9#include <linux/module.h>
10#include "drm_usb.h" 10#include <drm/drm_usb.h>
11#include "drm_crtc_helper.h" 11#include <drm/drm_crtc_helper.h>
12#include "udl_drv.h" 12#include "udl_drv.h"
13 13
14static struct drm_driver driver; 14static struct drm_driver driver;
diff --git a/drivers/gpu/drm/udl/udl_encoder.c b/drivers/gpu/drm/udl/udl_encoder.c
index 0731ab2e6c06..610538308f19 100644
--- a/drivers/gpu/drm/udl/udl_encoder.c
+++ b/drivers/gpu/drm/udl/udl_encoder.c
@@ -10,9 +10,9 @@
10 * more details. 10 * more details.
11 */ 11 */
12 12
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "drm_crtc.h" 14#include <drm/drm_crtc.h>
15#include "drm_crtc_helper.h" 15#include <drm/drm_crtc_helper.h>
16#include "udl_drv.h" 16#include "udl_drv.h"
17 17
18/* dummy encoder */ 18/* dummy encoder */
diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c
index ce9a61179925..877df059a76f 100644
--- a/drivers/gpu/drm/udl/udl_fb.c
+++ b/drivers/gpu/drm/udl/udl_fb.c
@@ -14,13 +14,12 @@
14#include <linux/slab.h> 14#include <linux/slab.h>
15#include <linux/fb.h> 15#include <linux/fb.h>
16 16
17#include "drmP.h" 17#include <drm/drmP.h>
18#include "drm.h" 18#include <drm/drm_crtc.h>
19#include "drm_crtc.h" 19#include <drm/drm_crtc_helper.h>
20#include "drm_crtc_helper.h"
21#include "udl_drv.h" 20#include "udl_drv.h"
22 21
23#include "drm_fb_helper.h" 22#include <drm/drm_fb_helper.h>
24 23
25#define DL_DEFIO_WRITE_DELAY 5 /* fb_deferred_io.delay in jiffies */ 24#define DL_DEFIO_WRITE_DELAY 5 /* fb_deferred_io.delay in jiffies */
26 25
diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c
index 291ecc145585..4acc8c7431cd 100644
--- a/drivers/gpu/drm/udl/udl_gem.c
+++ b/drivers/gpu/drm/udl/udl_gem.c
@@ -6,7 +6,7 @@
6 * more details. 6 * more details.
7 */ 7 */
8 8
9#include "drmP.h" 9#include <drm/drmP.h>
10#include "udl_drv.h" 10#include "udl_drv.h"
11#include <linux/shmem_fs.h> 11#include <linux/shmem_fs.h>
12#include <linux/dma-buf.h> 12#include <linux/dma-buf.h>
diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c
index 4c2d836a0893..1f6dbfd62c2a 100644
--- a/drivers/gpu/drm/udl/udl_main.c
+++ b/drivers/gpu/drm/udl/udl_main.c
@@ -10,7 +10,7 @@
10 * License v2. See the file COPYING in the main directory of this archive for 10 * License v2. See the file COPYING in the main directory of this archive for
11 * more details. 11 * more details.
12 */ 12 */
13#include "drmP.h" 13#include <drm/drmP.h>
14#include "udl_drv.h" 14#include "udl_drv.h"
15 15
16/* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */ 16/* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */
diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c
index 9159d48d1dfd..52ac2b2d9b73 100644
--- a/drivers/gpu/drm/udl/udl_modeset.c
+++ b/drivers/gpu/drm/udl/udl_modeset.c
@@ -11,9 +11,9 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include "drmP.h" 14#include <drm/drmP.h>
15#include "drm_crtc.h" 15#include <drm/drm_crtc.h>
16#include "drm_crtc_helper.h" 16#include <drm/drm_crtc_helper.h>
17#include "udl_drv.h" 17#include "udl_drv.h"
18 18
19/* 19/*
diff --git a/drivers/gpu/drm/udl/udl_transfer.c b/drivers/gpu/drm/udl/udl_transfer.c
index b9320e2608dd..e96348143a4e 100644
--- a/drivers/gpu/drm/udl/udl_transfer.c
+++ b/drivers/gpu/drm/udl/udl_transfer.c
@@ -15,7 +15,7 @@
15#include <linux/fb.h> 15#include <linux/fb.h>
16#include <linux/prefetch.h> 16#include <linux/prefetch.h>
17 17
18#include "drmP.h" 18#include <drm/drmP.h>
19#include "udl_drv.h" 19#include "udl_drv.h"
20 20
21#define MAX_CMD_PIXELS 255 21#define MAX_CMD_PIXELS 255
diff --git a/drivers/gpu/drm/via/via_dma.c b/drivers/gpu/drm/via/via_dma.c
index cc0ffa9abd00..13558f5a2422 100644
--- a/drivers/gpu/drm/via/via_dma.c
+++ b/drivers/gpu/drm/via/via_dma.c
@@ -34,9 +34,8 @@
34 * Thomas Hellstrom. 34 * Thomas Hellstrom.
35 */ 35 */
36 36
37#include "drmP.h" 37#include <drm/drmP.h>
38#include "drm.h" 38#include <drm/via_drm.h>
39#include "via_drm.h"
40#include "via_drv.h" 39#include "via_drv.h"
41#include "via_3d_reg.h" 40#include "via_3d_reg.h"
42 41
diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c
index 3e038a394c51..8b0f25904e6d 100644
--- a/drivers/gpu/drm/via/via_dmablit.c
+++ b/drivers/gpu/drm/via/via_dmablit.c
@@ -34,8 +34,8 @@
34 * the same DMA mappings? 34 * the same DMA mappings?
35 */ 35 */
36 36
37#include "drmP.h" 37#include <drm/drmP.h>
38#include "via_drm.h" 38#include <drm/via_drm.h>
39#include "via_drv.h" 39#include "via_drv.h"
40#include "via_dmablit.h" 40#include "via_dmablit.h"
41 41
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c
index af1b914b17e3..f4ae20327941 100644
--- a/drivers/gpu/drm/via/via_drv.c
+++ b/drivers/gpu/drm/via/via_drv.c
@@ -24,11 +24,11 @@
24 24
25#include <linux/module.h> 25#include <linux/module.h>
26 26
27#include "drmP.h" 27#include <drm/drmP.h>
28#include "via_drm.h" 28#include <drm/via_drm.h>
29#include "via_drv.h" 29#include "via_drv.h"
30 30
31#include "drm_pciids.h" 31#include <drm/drm_pciids.h>
32 32
33static int via_driver_open(struct drm_device *dev, struct drm_file *file) 33static int via_driver_open(struct drm_device *dev, struct drm_file *file)
34{ 34{
diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h
index 88edacc93006..893a65090c36 100644
--- a/drivers/gpu/drm/via/via_drv.h
+++ b/drivers/gpu/drm/via/via_drv.h
@@ -24,7 +24,7 @@
24#ifndef _VIA_DRV_H_ 24#ifndef _VIA_DRV_H_
25#define _VIA_DRV_H_ 25#define _VIA_DRV_H_
26 26
27#include "drm_mm.h" 27#include <drm/drm_mm.h>
28#define DRIVER_AUTHOR "Various" 28#define DRIVER_AUTHOR "Various"
29 29
30#define DRIVER_NAME "via" 30#define DRIVER_NAME "via"
diff --git a/drivers/gpu/drm/via/via_irq.c b/drivers/gpu/drm/via/via_irq.c
index d391f48ef87a..ac98964297cf 100644
--- a/drivers/gpu/drm/via/via_irq.c
+++ b/drivers/gpu/drm/via/via_irq.c
@@ -35,9 +35,8 @@
35 * The refresh rate is also calculated for video playback sync purposes. 35 * The refresh rate is also calculated for video playback sync purposes.
36 */ 36 */
37 37
38#include "drmP.h" 38#include <drm/drmP.h>
39#include "drm.h" 39#include <drm/via_drm.h>
40#include "via_drm.h"
41#include "via_drv.h" 40#include "via_drv.h"
42 41
43#define VIA_REG_INTERRUPT 0x200 42#define VIA_REG_INTERRUPT 0x200
diff --git a/drivers/gpu/drm/via/via_map.c b/drivers/gpu/drm/via/via_map.c
index c126182ac07e..c0f1cc7f5ca9 100644
--- a/drivers/gpu/drm/via/via_map.c
+++ b/drivers/gpu/drm/via/via_map.c
@@ -21,8 +21,8 @@
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24#include "drmP.h" 24#include <drm/drmP.h>
25#include "via_drm.h" 25#include <drm/via_drm.h>
26#include "via_drv.h" 26#include "via_drv.h"
27 27
28static int via_do_init_map(struct drm_device *dev, drm_via_init_t *init) 28static int via_do_init_map(struct drm_device *dev, drm_via_init_t *init)
diff --git a/drivers/gpu/drm/via/via_mm.c b/drivers/gpu/drm/via/via_mm.c
index acfcb358e7b7..0d55432e02a2 100644
--- a/drivers/gpu/drm/via/via_mm.c
+++ b/drivers/gpu/drm/via/via_mm.c
@@ -25,8 +25,8 @@
25 * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com> 25 * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com>
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "via_drm.h" 29#include <drm/via_drm.h>
30#include "via_drv.h" 30#include "via_drv.h"
31 31
32#define VIA_MM_ALIGN_SHIFT 4 32#define VIA_MM_ALIGN_SHIFT 4
diff --git a/drivers/gpu/drm/via/via_verifier.c b/drivers/gpu/drm/via/via_verifier.c
index 48957b856d41..9dbc92bd1512 100644
--- a/drivers/gpu/drm/via/via_verifier.c
+++ b/drivers/gpu/drm/via/via_verifier.c
@@ -29,9 +29,8 @@
29 */ 29 */
30 30
31#include "via_3d_reg.h" 31#include "via_3d_reg.h"
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "drm.h" 33#include <drm/via_drm.h>
34#include "via_drm.h"
35#include "via_verifier.h" 34#include "via_verifier.h"
36#include "via_drv.h" 35#include "via_drv.h"
37 36
diff --git a/drivers/gpu/drm/via/via_video.c b/drivers/gpu/drm/via/via_video.c
index 675d311f038f..6569efa2ff6e 100644
--- a/drivers/gpu/drm/via/via_video.c
+++ b/drivers/gpu/drm/via/via_video.c
@@ -25,8 +25,8 @@
25 * Video and XvMC related functions. 25 * Video and XvMC related functions.
26 */ 26 */
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "via_drm.h" 29#include <drm/via_drm.h>
30#include "via_drv.h" 30#include "via_drv.h"
31 31
32void via_init_futex(drm_via_private_t *dev_priv) 32void via_init_futex(drm_via_private_t *dev_priv)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
index 1e2c0fb7f786..9826fbc88154 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
@@ -26,9 +26,9 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "ttm/ttm_bo_driver.h" 29#include <drm/ttm/ttm_bo_driver.h>
30#include "ttm/ttm_placement.h" 30#include <drm/ttm/ttm_placement.h>
31#include "ttm/ttm_page_alloc.h" 31#include <drm/ttm/ttm_page_alloc.h>
32 32
33static uint32_t vram_placement_flags = TTM_PL_FLAG_VRAM | 33static uint32_t vram_placement_flags = TTM_PL_FLAG_VRAM |
34 TTM_PL_FLAG_CACHED; 34 TTM_PL_FLAG_CACHED;
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
index 3fa884db08ab..3ce68a2e312d 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -25,9 +25,9 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "ttm/ttm_placement.h" 28#include <drm/ttm/ttm_placement.h>
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "vmwgfx_drv.h" 31#include "vmwgfx_drv.h"
32 32
33 33
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index ba2c35dbf10e..c84d9ba66f3b 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -26,12 +26,12 @@
26 **************************************************************************/ 26 **************************************************************************/
27#include <linux/module.h> 27#include <linux/module.h>
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "vmwgfx_drv.h" 30#include "vmwgfx_drv.h"
31#include "ttm/ttm_placement.h" 31#include <drm/ttm/ttm_placement.h>
32#include "ttm/ttm_bo_driver.h" 32#include <drm/ttm/ttm_bo_driver.h>
33#include "ttm/ttm_object.h" 33#include <drm/ttm/ttm_object.h>
34#include "ttm/ttm_module.h" 34#include <drm/ttm/ttm_module.h>
35 35
36#define VMWGFX_DRIVER_NAME "vmwgfx" 36#define VMWGFX_DRIVER_NAME "vmwgfx"
37#define VMWGFX_DRIVER_DESC "Linux drm driver for VMware graphics devices" 37#define VMWGFX_DRIVER_DESC "Linux drm driver for VMware graphics devices"
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
index 29c984ff7f23..88a179e26de9 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
@@ -29,15 +29,15 @@
29#define _VMWGFX_DRV_H_ 29#define _VMWGFX_DRV_H_
30 30
31#include "vmwgfx_reg.h" 31#include "vmwgfx_reg.h"
32#include "drmP.h" 32#include <drm/drmP.h>
33#include "vmwgfx_drm.h" 33#include <drm/vmwgfx_drm.h>
34#include "drm_hashtab.h" 34#include <drm/drm_hashtab.h>
35#include "linux/suspend.h" 35#include <linux/suspend.h>
36#include "ttm/ttm_bo_driver.h" 36#include <drm/ttm/ttm_bo_driver.h>
37#include "ttm/ttm_object.h" 37#include <drm/ttm/ttm_object.h>
38#include "ttm/ttm_lock.h" 38#include <drm/ttm/ttm_lock.h>
39#include "ttm/ttm_execbuf_util.h" 39#include <drm/ttm/ttm_execbuf_util.h>
40#include "ttm/ttm_module.h" 40#include <drm/ttm/ttm_module.h>
41#include "vmwgfx_fence.h" 41#include "vmwgfx_fence.h"
42 42
43#define VMWGFX_DRIVER_DATE "20120209" 43#define VMWGFX_DRIVER_DATE "20120209"
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index 4acced44a623..30654b4cc972 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@ -27,8 +27,8 @@
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "vmwgfx_reg.h" 29#include "vmwgfx_reg.h"
30#include "ttm/ttm_bo_api.h" 30#include <drm/ttm/ttm_bo_api.h>
31#include "ttm/ttm_placement.h" 31#include <drm/ttm/ttm_placement.h>
32 32
33static int vmw_cmd_invalid(struct vmw_private *dev_priv, 33static int vmw_cmd_invalid(struct vmw_private *dev_priv,
34 struct vmw_sw_context *sw_context, 34 struct vmw_sw_context *sw_context,
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
index a32f2e96dd02..ed5ce2a41bbf 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
@@ -28,10 +28,10 @@
28 28
29#include <linux/export.h> 29#include <linux/export.h>
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "vmwgfx_drv.h" 32#include "vmwgfx_drv.h"
33 33
34#include "ttm/ttm_placement.h" 34#include <drm/ttm/ttm_placement.h>
35 35
36#define VMW_DIRTY_DELAY (HZ / 30) 36#define VMW_DIRTY_DELAY (HZ / 30)
37 37
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
index 7e0743358dff..bc187fafd58c 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
@@ -25,7 +25,7 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "vmwgfx_drv.h" 29#include "vmwgfx_drv.h"
30 30
31#define VMW_FENCE_WRAP (1 << 31) 31#define VMW_FENCE_WRAP (1 << 31)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
index a0c2f12b1e1b..3eb148667d63 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
@@ -26,8 +26,8 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "ttm/ttm_placement.h" 30#include <drm/ttm/ttm_placement.h>
31 31
32bool vmw_fifo_have_3d(struct vmw_private *dev_priv) 32bool vmw_fifo_have_3d(struct vmw_private *dev_priv)
33{ 33{
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
index 21ee78226560..3751730764a5 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
@@ -26,8 +26,8 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "ttm/ttm_bo_driver.h" 30#include <drm/ttm/ttm_bo_driver.h>
31 31
32#define VMW_PPN_SIZE sizeof(unsigned long) 32#define VMW_PPN_SIZE sizeof(unsigned long)
33 33
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
index 5f717152cff5..c5c054ae9056 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
@@ -29,9 +29,9 @@
29 */ 29 */
30 30
31#include "vmwgfx_drv.h" 31#include "vmwgfx_drv.h"
32#include "ttm/ttm_module.h" 32#include <drm/ttm/ttm_module.h>
33#include "ttm/ttm_bo_driver.h" 33#include <drm/ttm/ttm_bo_driver.h>
34#include "ttm/ttm_placement.h" 34#include <drm/ttm/ttm_placement.h>
35#include <linux/idr.h> 35#include <linux/idr.h>
36#include <linux/spinlock.h> 36#include <linux/spinlock.h>
37#include <linux/kernel.h> 37#include <linux/kernel.h>
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
index 66917c6c3813..b07ca2e4d04b 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
@@ -26,7 +26,7 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "vmwgfx_drm.h" 29#include <drm/vmwgfx_drm.h>
30#include "vmwgfx_kms.h" 30#include "vmwgfx_kms.h"
31 31
32int vmw_getparam_ioctl(struct drm_device *dev, void *data, 32int vmw_getparam_ioctl(struct drm_device *dev, void *data,
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c b/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c
index cabc95f7517e..4640adbcaf91 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c
@@ -25,7 +25,7 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "vmwgfx_drv.h" 29#include "vmwgfx_drv.h"
30 30
31#define VMW_FENCE_WRAP (1 << 24) 31#define VMW_FENCE_WRAP (1 << 24)
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
index 8184bc5b1730..6fa89c9d6214 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
@@ -28,8 +28,8 @@
28#ifndef VMWGFX_KMS_H_ 28#ifndef VMWGFX_KMS_H_
29#define VMWGFX_KMS_H_ 29#define VMWGFX_KMS_H_
30 30
31#include "drmP.h" 31#include <drm/drmP.h>
32#include "drm_crtc_helper.h" 32#include <drm/drm_crtc_helper.h>
33#include "vmwgfx_drv.h" 33#include "vmwgfx_drv.h"
34 34
35#define VMWGFX_NUM_DISPLAY_UNITS 8 35#define VMWGFX_NUM_DISPLAY_UNITS 8
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
index 14399eec9c3c..cb55b7b66377 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
@@ -26,10 +26,10 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#include "drmP.h" 29#include <drm/drmP.h>
30#include "vmwgfx_drv.h" 30#include "vmwgfx_drv.h"
31 31
32#include "ttm/ttm_placement.h" 32#include <drm/ttm/ttm_placement.h>
33 33
34#include "svga_overlay.h" 34#include "svga_overlay.h"
35#include "svga_escape.h" 35#include "svga_escape.h"
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 2c6ffe0e2c07..da3c6b5b98a1 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -26,10 +26,10 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "vmwgfx_drv.h" 28#include "vmwgfx_drv.h"
29#include "vmwgfx_drm.h" 29#include <drm/vmwgfx_drm.h>
30#include "ttm/ttm_object.h" 30#include <drm/ttm/ttm_object.h>
31#include "ttm/ttm_placement.h" 31#include <drm/ttm/ttm_placement.h>
32#include "drmP.h" 32#include <drm/drmP.h>
33 33
34struct vmw_user_context { 34struct vmw_user_context {
35 struct ttm_base_object base; 35 struct ttm_base_object base;
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
index d3c11f5184f3..98d6bfb3a997 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
@@ -25,7 +25,7 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27 27
28#include "drmP.h" 28#include <drm/drmP.h>
29#include "vmwgfx_drv.h" 29#include "vmwgfx_drv.h"
30 30
31int vmw_mmap(struct file *filp, struct vm_area_struct *vma) 31int vmw_mmap(struct file *filp, struct vm_area_struct *vma)
diff --git a/include/acpi/acpi.h b/include/acpi/acpi.h
index c433d5e27679..c1ea8436961f 100644
--- a/include/acpi/acpi.h
+++ b/include/acpi/acpi.h
@@ -53,14 +53,14 @@
53 * 53 *
54 * Note: The order of these include files is important. 54 * Note: The order of these include files is important.
55 */ 55 */
56#include "platform/acenv.h" /* Environment-specific items */ 56#include <acpi/platform/acenv.h> /* Environment-specific items */
57#include "acnames.h" /* Common ACPI names and strings */ 57#include <acpi/acnames.h> /* Common ACPI names and strings */
58#include "actypes.h" /* ACPICA data types and structures */ 58#include <acpi/actypes.h> /* ACPICA data types and structures */
59#include "acexcep.h" /* ACPICA exceptions */ 59#include <acpi/acexcep.h> /* ACPICA exceptions */
60#include "actbl.h" /* ACPI table definitions */ 60#include <acpi/actbl.h> /* ACPI table definitions */
61#include "acoutput.h" /* Error output and Debug macros */ 61#include <acpi/acoutput.h> /* Error output and Debug macros */
62#include "acrestyp.h" /* Resource Descriptor structs */ 62#include <acpi/acrestyp.h> /* Resource Descriptor structs */
63#include "acpiosxf.h" /* OSL interfaces (ACPICA-to-OS) */ 63#include <acpi/acpiosxf.h> /* OSL interfaces (ACPICA-to-OS) */
64#include "acpixf.h" /* ACPI core subsystem external interfaces */ 64#include <acpi/acpixf.h> /* ACPI core subsystem external interfaces */
65 65
66#endif /* __ACPI_H__ */ 66#endif /* __ACPI_H__ */
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index 0650f5fa7ce9..1222ba93d80a 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -47,8 +47,8 @@
47#ifndef __ACPIOSXF_H__ 47#ifndef __ACPIOSXF_H__
48#define __ACPIOSXF_H__ 48#define __ACPIOSXF_H__
49 49
50#include "platform/acenv.h" 50#include <acpi/platform/acenv.h>
51#include "actypes.h" 51#include <acpi/actypes.h>
52 52
53/* Types for acpi_os_execute */ 53/* Types for acpi_os_execute */
54 54
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 26a92fc28a59..51405d32ac64 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -49,9 +49,9 @@
49 49
50#define ACPI_CA_VERSION 0x20120711 50#define ACPI_CA_VERSION 0x20120711
51 51
52#include "acconfig.h" 52#include <acpi/acconfig.h>
53#include "actypes.h" 53#include <acpi/actypes.h>
54#include "actbl.h" 54#include <acpi/actbl.h>
55 55
56extern u8 acpi_gbl_permanent_mmap; 56extern u8 acpi_gbl_permanent_mmap;
57 57
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index 560a9f272f34..89cee88dd2a5 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -138,7 +138,7 @@
138/*! [Begin] no source code translation */ 138/*! [Begin] no source code translation */
139 139
140#if defined(_LINUX) || defined(__linux__) 140#if defined(_LINUX) || defined(__linux__)
141#include "aclinux.h" 141#include <acpi/platform/aclinux.h>
142 142
143#elif defined(_AED_EFI) 143#elif defined(_AED_EFI)
144#include "acefi.h" 144#include "acefi.h"
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 7509be30ca01..85d5d8f38452 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -106,7 +106,7 @@
106 106
107/* Linux uses GCC */ 107/* Linux uses GCC */
108 108
109#include "acgcc.h" 109#include <acpi/platform/acgcc.h>
110 110
111 111
112#ifdef __KERNEL__ 112#ifdef __KERNEL__
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm
index c5d2e5dd871b..d2ee86b4c091 100644
--- a/include/asm-generic/Kbuild.asm
+++ b/include/asm-generic/Kbuild.asm
@@ -1,45 +1 @@
1ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ include include/uapi/asm-generic/Kbuild.asm
2 $(srctree)/include/asm-$(SRCARCH)/kvm.h),)
3header-y += kvm.h
4endif
5
6ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
7 $(srctree)/include/asm-$(SRCARCH)/kvm_para.h),)
8header-y += kvm_para.h
9endif
10
11ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
12 $(srctree)/include/asm-$(SRCARCH)/a.out.h),)
13header-y += a.out.h
14endif
15
16header-y += auxvec.h
17header-y += bitsperlong.h
18header-y += byteorder.h
19header-y += errno.h
20header-y += fcntl.h
21header-y += ioctl.h
22header-y += ioctls.h
23header-y += ipcbuf.h
24header-y += mman.h
25header-y += msgbuf.h
26header-y += param.h
27header-y += poll.h
28header-y += posix_types.h
29header-y += ptrace.h
30header-y += resource.h
31header-y += sembuf.h
32header-y += setup.h
33header-y += shmbuf.h
34header-y += sigcontext.h
35header-y += siginfo.h
36header-y += signal.h
37header-y += socket.h
38header-y += sockios.h
39header-y += stat.h
40header-y += statfs.h
41header-y += swab.h
42header-y += termbits.h
43header-y += termios.h
44header-y += types.h
45header-y += unistd.h
diff --git a/include/drm/drm.h b/include/drm/drm.h
index e51035a3757f..1e3481edf062 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -628,7 +628,7 @@ struct drm_prime_handle {
628 __s32 fd; 628 __s32 fd;
629}; 629};
630 630
631#include "drm_mode.h" 631#include <drm/drm_mode.h>
632 632
633#define DRM_IOCTL_BASE 'd' 633#define DRM_IOCTL_BASE 'd'
634#define DRM_IO(nr) _IO(DRM_IOCTL_BASE,nr) 634#define DRM_IO(nr) _IO(DRM_IOCTL_BASE,nr)
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,
diff --git a/include/drm/drm_buffer.h b/include/drm/drm_buffer.h
index 322dbff3f861..c80d3a340b94 100644
--- a/include/drm/drm_buffer.h
+++ b/include/drm/drm_buffer.h
@@ -35,7 +35,7 @@
35#ifndef _DRM_BUFFER_H_ 35#ifndef _DRM_BUFFER_H_
36#define _DRM_BUFFER_H_ 36#define _DRM_BUFFER_H_
37 37
38#include "drmP.h" 38#include <drm/drmP.h>
39 39
40struct drm_buffer { 40struct drm_buffer {
41 int iterator; 41 int iterator;
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index bfacf0d5a225..86a0da4635a6 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -30,6 +30,7 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/idr.h> 31#include <linux/idr.h>
32#include <linux/fb.h> 32#include <linux/fb.h>
33#include <drm/drm_mode.h>
33 34
34#include <drm/drm_fourcc.h> 35#include <drm/drm_fourcc.h>
35 36
diff --git a/include/drm/drm_encoder_slave.h b/include/drm/drm_encoder_slave.h
index 7dc385233805..b0c11a7809bb 100644
--- a/include/drm/drm_encoder_slave.h
+++ b/include/drm/drm_encoder_slave.h
@@ -27,8 +27,8 @@
27#ifndef __DRM_ENCODER_SLAVE_H__ 27#ifndef __DRM_ENCODER_SLAVE_H__
28#define __DRM_ENCODER_SLAVE_H__ 28#define __DRM_ENCODER_SLAVE_H__
29 29
30#include "drmP.h" 30#include <drm/drmP.h>
31#include "drm_crtc.h" 31#include <drm/drm_crtc.h>
32 32
33/** 33/**
34 * struct drm_encoder_slave_funcs - Entry points exposed by a slave encoder driver 34 * struct drm_encoder_slave_funcs - Entry points exposed by a slave encoder driver
diff --git a/include/drm/drm_memory.h b/include/drm/drm_memory.h
index 15af9b32ae42..4baf57a207e7 100644
--- a/include/drm/drm_memory.h
+++ b/include/drm/drm_memory.h
@@ -35,7 +35,7 @@
35 35
36#include <linux/highmem.h> 36#include <linux/highmem.h>
37#include <linux/vmalloc.h> 37#include <linux/vmalloc.h>
38#include "drmP.h" 38#include <drm/drmP.h>
39 39
40/** 40/**
41 * Cut down version of drm_memory_debug.h, which used to be called 41 * Cut down version of drm_memory_debug.h, which used to be called
diff --git a/include/drm/drm_sarea.h b/include/drm/drm_sarea.h
index ee5389d22c64..d3aedc90b9fd 100644
--- a/include/drm/drm_sarea.h
+++ b/include/drm/drm_sarea.h
@@ -32,7 +32,7 @@
32#ifndef _DRM_SAREA_H_ 32#ifndef _DRM_SAREA_H_
33#define _DRM_SAREA_H_ 33#define _DRM_SAREA_H_
34 34
35#include "drm.h" 35#include <drm/drm.h>
36 36
37/* SAREA area needs to be at least a page */ 37/* SAREA area needs to be at least a page */
38#if defined(__alpha__) 38#if defined(__alpha__)
diff --git a/include/drm/exynos_drm.h b/include/drm/exynos_drm.h
index c20b00181530..1f2acdfbfd6d 100644
--- a/include/drm/exynos_drm.h
+++ b/include/drm/exynos_drm.h
@@ -29,7 +29,7 @@
29#ifndef _EXYNOS_DRM_H_ 29#ifndef _EXYNOS_DRM_H_
30#define _EXYNOS_DRM_H_ 30#define _EXYNOS_DRM_H_
31 31
32#include "drm.h" 32#include <drm/drm.h>
33 33
34/** 34/**
35 * User-desired buffer creation information structure. 35 * User-desired buffer creation information structure.
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index 8cc70837f929..814a42c89422 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -27,7 +27,7 @@
27#ifndef _I915_DRM_H_ 27#ifndef _I915_DRM_H_
28#define _I915_DRM_H_ 28#define _I915_DRM_H_
29 29
30#include "drm.h" 30#include <drm/drm.h>
31 31
32/* Please note that modifications to all structs defined here are 32/* Please note that modifications to all structs defined here are
33 * subject to backwards-compatibility constraints. 33 * subject to backwards-compatibility constraints.
diff --git a/include/drm/mga_drm.h b/include/drm/mga_drm.h
index fca817009e13..2375bfd6e5e9 100644
--- a/include/drm/mga_drm.h
+++ b/include/drm/mga_drm.h
@@ -35,7 +35,7 @@
35#ifndef __MGA_DRM_H__ 35#ifndef __MGA_DRM_H__
36#define __MGA_DRM_H__ 36#define __MGA_DRM_H__
37 37
38#include "drm.h" 38#include <drm/drm.h>
39 39
40/* WARNING: If you change any of these defines, make sure to change the 40/* WARNING: If you change any of these defines, make sure to change the
41 * defines in the Xserver file (mga_sarea.h) 41 * defines in the Xserver file (mga_sarea.h)
diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h
index dc3a8cd7db8a..4766c0f6a838 100644
--- a/include/drm/radeon_drm.h
+++ b/include/drm/radeon_drm.h
@@ -33,7 +33,7 @@
33#ifndef __RADEON_DRM_H__ 33#ifndef __RADEON_DRM_H__
34#define __RADEON_DRM_H__ 34#define __RADEON_DRM_H__
35 35
36#include "drm.h" 36#include <drm/drm.h>
37 37
38/* WARNING: If you change any of these defines, make sure to change the 38/* WARNING: If you change any of these defines, make sure to change the
39 * defines in the X server file (radeon_sarea.h) 39 * defines in the X server file (radeon_sarea.h)
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h
index e15f2a89a270..e8028ade567f 100644
--- a/include/drm/ttm/ttm_bo_api.h
+++ b/include/drm/ttm/ttm_bo_api.h
@@ -31,7 +31,7 @@
31#ifndef _TTM_BO_API_H_ 31#ifndef _TTM_BO_API_H_
32#define _TTM_BO_API_H_ 32#define _TTM_BO_API_H_
33 33
34#include "drm_hashtab.h" 34#include <drm/drm_hashtab.h>
35#include <linux/kref.h> 35#include <linux/kref.h>
36#include <linux/list.h> 36#include <linux/list.h>
37#include <linux/wait.h> 37#include <linux/wait.h>
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index 084e8989a6e1..d803b92b0324 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -30,14 +30,14 @@
30#ifndef _TTM_BO_DRIVER_H_ 30#ifndef _TTM_BO_DRIVER_H_
31#define _TTM_BO_DRIVER_H_ 31#define _TTM_BO_DRIVER_H_
32 32
33#include "ttm/ttm_bo_api.h" 33#include <ttm/ttm_bo_api.h>
34#include "ttm/ttm_memory.h" 34#include <ttm/ttm_memory.h>
35#include "ttm/ttm_module.h" 35#include <ttm/ttm_module.h>
36#include "drm_mm.h" 36#include <drm/drm_mm.h>
37#include "drm_global.h" 37#include <drm/drm_global.h>
38#include "linux/workqueue.h" 38#include <linux/workqueue.h>
39#include "linux/fs.h" 39#include <linux/fs.h>
40#include "linux/spinlock.h" 40#include <linux/spinlock.h>
41 41
42struct ttm_backend_func { 42struct ttm_backend_func {
43 /** 43 /**
diff --git a/include/drm/ttm/ttm_execbuf_util.h b/include/drm/ttm/ttm_execbuf_util.h
index 26cc7f9ffa41..1926cae373ba 100644
--- a/include/drm/ttm/ttm_execbuf_util.h
+++ b/include/drm/ttm/ttm_execbuf_util.h
@@ -31,7 +31,7 @@
31#ifndef _TTM_EXECBUF_UTIL_H_ 31#ifndef _TTM_EXECBUF_UTIL_H_
32#define _TTM_EXECBUF_UTIL_H_ 32#define _TTM_EXECBUF_UTIL_H_
33 33
34#include "ttm/ttm_bo_api.h" 34#include <ttm/ttm_bo_api.h>
35#include <linux/list.h> 35#include <linux/list.h>
36 36
37/** 37/**
diff --git a/include/drm/ttm/ttm_lock.h b/include/drm/ttm/ttm_lock.h
index 2e7f0c941b5d..2902beb5f689 100644
--- a/include/drm/ttm/ttm_lock.h
+++ b/include/drm/ttm/ttm_lock.h
@@ -49,7 +49,7 @@
49#ifndef _TTM_LOCK_H_ 49#ifndef _TTM_LOCK_H_
50#define _TTM_LOCK_H_ 50#define _TTM_LOCK_H_
51 51
52#include "ttm/ttm_object.h" 52#include <ttm/ttm_object.h>
53#include <linux/wait.h> 53#include <linux/wait.h>
54#include <linux/atomic.h> 54#include <linux/atomic.h>
55 55
diff --git a/include/drm/ttm/ttm_object.h b/include/drm/ttm/ttm_object.h
index e46054e5255b..b01c563b2751 100644
--- a/include/drm/ttm/ttm_object.h
+++ b/include/drm/ttm/ttm_object.h
@@ -38,7 +38,7 @@
38#define _TTM_OBJECT_H_ 38#define _TTM_OBJECT_H_
39 39
40#include <linux/list.h> 40#include <linux/list.h>
41#include "drm_hashtab.h" 41#include <drm/drm_hashtab.h>
42#include <linux/kref.h> 42#include <linux/kref.h>
43#include <ttm/ttm_memory.h> 43#include <ttm/ttm_memory.h>
44 44
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 5fe27400d176..706b962c6467 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -26,8 +26,8 @@
26#ifndef TTM_PAGE_ALLOC 26#ifndef TTM_PAGE_ALLOC
27#define TTM_PAGE_ALLOC 27#define TTM_PAGE_ALLOC
28 28
29#include "ttm_bo_driver.h" 29#include <drm/ttm/ttm_bo_driver.h>
30#include "ttm_memory.h" 30#include <drm/ttm/ttm_memory.h>
31 31
32/** 32/**
33 * Initialize pool allocator. 33 * Initialize pool allocator.
diff --git a/include/drm/via_drm.h b/include/drm/via_drm.h
index 79b3b6e0f6b3..8b0533ccbd5a 100644
--- a/include/drm/via_drm.h
+++ b/include/drm/via_drm.h
@@ -24,7 +24,7 @@
24#ifndef _VIA_DRM_H_ 24#ifndef _VIA_DRM_H_
25#define _VIA_DRM_H_ 25#define _VIA_DRM_H_
26 26
27#include "drm.h" 27#include <drm/drm.h>
28 28
29/* WARNING: These defines must be the same as what the Xserver uses. 29/* WARNING: These defines must be the same as what the Xserver uses.
30 * if you change them, you must change the defines in the Xserver. 30 * if you change them, you must change the defines in the Xserver.
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 7f1c0f00db9b..e149e8be9065 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -20,8 +20,6 @@ header-y += netfilter_ipv6/
20header-y += usb/ 20header-y += usb/
21header-y += wimax/ 21header-y += wimax/
22 22
23objhdr-y += version.h
24
25ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ 23ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
26 $(srctree)/include/asm-$(SRCARCH)/a.out.h \ 24 $(srctree)/include/asm-$(SRCARCH)/a.out.h \
27 $(INSTALL_HDR_PATH)/include/asm-*/a.out.h),) 25 $(INSTALL_HDR_PATH)/include/asm-*/a.out.h),)
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index 1954a4e305a3..4180eb78d575 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -10,7 +10,7 @@
10#include <linux/bcma/bcma_driver_gmac_cmn.h> 10#include <linux/bcma/bcma_driver_gmac_cmn.h>
11#include <linux/ssb/ssb.h> /* SPROM sharing */ 11#include <linux/ssb/ssb.h> /* SPROM sharing */
12 12
13#include "bcma_regs.h" 13#include <linux/bcma/bcma_regs.h>
14 14
15struct bcma_device; 15struct bcma_device;
16struct bcma_bus; 16struct bcma_bus;
diff --git a/include/linux/ceph/ceph_fs.h b/include/linux/ceph/ceph_fs.h
index d021610efd65..cf6f4d998a76 100644
--- a/include/linux/ceph/ceph_fs.h
+++ b/include/linux/ceph/ceph_fs.h
@@ -12,8 +12,8 @@
12#ifndef CEPH_FS_H 12#ifndef CEPH_FS_H
13#define CEPH_FS_H 13#define CEPH_FS_H
14 14
15#include "msgr.h" 15#include <linux/ceph/msgr.h>
16#include "rados.h" 16#include <linux/ceph/rados.h>
17 17
18/* 18/*
19 * subprotocol versions. when specific messages types or high-level 19 * subprotocol versions. when specific messages types or high-level
diff --git a/include/linux/ceph/debugfs.h b/include/linux/ceph/debugfs.h
index 2a79702e092b..1df086d7882d 100644
--- a/include/linux/ceph/debugfs.h
+++ b/include/linux/ceph/debugfs.h
@@ -1,8 +1,8 @@
1#ifndef _FS_CEPH_DEBUGFS_H 1#ifndef _FS_CEPH_DEBUGFS_H
2#define _FS_CEPH_DEBUGFS_H 2#define _FS_CEPH_DEBUGFS_H
3 3
4#include "ceph_debug.h" 4#include <linux/ceph/ceph_debug.h>
5#include "types.h" 5#include <linux/ceph/types.h>
6 6
7#define CEPH_DEFINE_SHOW_FUNC(name) \ 7#define CEPH_DEFINE_SHOW_FUNC(name) \
8static int name##_open(struct inode *inode, struct file *file) \ 8static int name##_open(struct inode *inode, struct file *file) \
diff --git a/include/linux/ceph/decode.h b/include/linux/ceph/decode.h
index 4bbf2db45f46..63d092822bad 100644
--- a/include/linux/ceph/decode.h
+++ b/include/linux/ceph/decode.h
@@ -6,7 +6,7 @@
6#include <linux/time.h> 6#include <linux/time.h>
7#include <asm/unaligned.h> 7#include <asm/unaligned.h>
8 8
9#include "types.h" 9#include <linux/ceph/types.h>
10 10
11/* 11/*
12 * in all cases, 12 * in all cases,
diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h
index 42624789b06f..6470792b13d3 100644
--- a/include/linux/ceph/libceph.h
+++ b/include/linux/ceph/libceph.h
@@ -1,7 +1,7 @@
1#ifndef _FS_CEPH_LIBCEPH_H 1#ifndef _FS_CEPH_LIBCEPH_H
2#define _FS_CEPH_LIBCEPH_H 2#define _FS_CEPH_LIBCEPH_H
3 3
4#include "ceph_debug.h" 4#include <linux/ceph/ceph_debug.h>
5 5
6#include <asm/unaligned.h> 6#include <asm/unaligned.h>
7#include <linux/backing-dev.h> 7#include <linux/backing-dev.h>
@@ -15,12 +15,12 @@
15#include <linux/writeback.h> 15#include <linux/writeback.h>
16#include <linux/slab.h> 16#include <linux/slab.h>
17 17
18#include "types.h" 18#include <linux/ceph/types.h>
19#include "messenger.h" 19#include <linux/ceph/messenger.h>
20#include "msgpool.h" 20#include <linux/ceph/msgpool.h>
21#include "mon_client.h" 21#include <linux/ceph/mon_client.h>
22#include "osd_client.h" 22#include <linux/ceph/osd_client.h>
23#include "ceph_fs.h" 23#include <linux/ceph/ceph_fs.h>
24 24
25/* 25/*
26 * mount options 26 * mount options
diff --git a/include/linux/ceph/mdsmap.h b/include/linux/ceph/mdsmap.h
index 9935fac8c107..cb15b5d867c7 100644
--- a/include/linux/ceph/mdsmap.h
+++ b/include/linux/ceph/mdsmap.h
@@ -2,7 +2,7 @@
2#define _FS_CEPH_MDSMAP_H 2#define _FS_CEPH_MDSMAP_H
3 3
4#include <linux/bug.h> 4#include <linux/bug.h>
5#include "types.h" 5#include <linux/ceph/types.h>
6 6
7/* 7/*
8 * mds map - describe servers in the mds cluster. 8 * mds map - describe servers in the mds cluster.
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index 189ae0637634..14ba5ee738a9 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -8,8 +8,8 @@
8#include <linux/uio.h> 8#include <linux/uio.h>
9#include <linux/workqueue.h> 9#include <linux/workqueue.h>
10 10
11#include "types.h" 11#include <linux/ceph/types.h>
12#include "buffer.h" 12#include <linux/ceph/buffer.h>
13 13
14struct ceph_msg; 14struct ceph_msg;
15struct ceph_connection; 15struct ceph_connection;
diff --git a/include/linux/ceph/mon_client.h b/include/linux/ceph/mon_client.h
index 2113e3850a4e..1fb93e9080b0 100644
--- a/include/linux/ceph/mon_client.h
+++ b/include/linux/ceph/mon_client.h
@@ -5,7 +5,7 @@
5#include <linux/kref.h> 5#include <linux/kref.h>
6#include <linux/rbtree.h> 6#include <linux/rbtree.h>
7 7
8#include "messenger.h" 8#include <linux/ceph/messenger.h>
9 9
10struct ceph_client; 10struct ceph_client;
11struct ceph_mount_args; 11struct ceph_mount_args;
diff --git a/include/linux/ceph/msgpool.h b/include/linux/ceph/msgpool.h
index 09fa96b43436..4b0d38960726 100644
--- a/include/linux/ceph/msgpool.h
+++ b/include/linux/ceph/msgpool.h
@@ -2,7 +2,7 @@
2#define _FS_CEPH_MSGPOOL 2#define _FS_CEPH_MSGPOOL
3 3
4#include <linux/mempool.h> 4#include <linux/mempool.h>
5#include "messenger.h" 5#include <linux/ceph/messenger.h>
6 6
7/* 7/*
8 * we use memory pools for preallocating messages we may receive, to 8 * we use memory pools for preallocating messages we may receive, to
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 311ef8d6aa9e..25b930bffea6 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -2,8 +2,8 @@
2#define _FS_CEPH_OSDMAP_H 2#define _FS_CEPH_OSDMAP_H
3 3
4#include <linux/rbtree.h> 4#include <linux/rbtree.h>
5#include "types.h" 5#include <linux/ceph/types.h>
6#include "ceph_fs.h" 6#include <linux/ceph/ceph_fs.h>
7#include <linux/crush/crush.h> 7#include <linux/crush/crush.h>
8 8
9/* 9/*
diff --git a/include/linux/ceph/rados.h b/include/linux/ceph/rados.h
index 0a99099801a4..de91fbdf127e 100644
--- a/include/linux/ceph/rados.h
+++ b/include/linux/ceph/rados.h
@@ -6,7 +6,7 @@
6 * (Reliable Autonomic Distributed Object Store). 6 * (Reliable Autonomic Distributed Object Store).
7 */ 7 */
8 8
9#include "msgr.h" 9#include <linux/ceph/msgr.h>
10 10
11/* 11/*
12 * osdmap encoding versions 12 * osdmap encoding versions
diff --git a/include/linux/ceph/types.h b/include/linux/ceph/types.h
index 28b35a005ec2..d3ff1cf2d27e 100644
--- a/include/linux/ceph/types.h
+++ b/include/linux/ceph/types.h
@@ -7,9 +7,9 @@
7#include <linux/fcntl.h> 7#include <linux/fcntl.h>
8#include <linux/string.h> 8#include <linux/string.h>
9 9
10#include "ceph_fs.h" 10#include <linux/ceph/ceph_fs.h>
11#include "ceph_frag.h" 11#include <linux/ceph/ceph_frag.h>
12#include "ceph_hash.h" 12#include <linux/ceph/ceph_hash.h>
13 13
14/* 14/*
15 * Identify inodes by both their ino AND snapshot id (a u64). 15 * Identify inodes by both their ino AND snapshot id (a u64).
diff --git a/include/linux/crush/mapper.h b/include/linux/crush/mapper.h
index 71d79f44a7d0..5772dee3ecbf 100644
--- a/include/linux/crush/mapper.h
+++ b/include/linux/crush/mapper.h
@@ -8,7 +8,7 @@
8 * LGPL2 8 * LGPL2
9 */ 9 */
10 10
11#include "crush.h" 11#include <linux/crush/crush.h>
12 12
13extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size); 13extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size);
14extern int crush_do_rule(const struct crush_map *map, 14extern int crush_do_rule(const struct crush_map *map,
diff --git a/include/linux/drbd_tag_magic.h b/include/linux/drbd_tag_magic.h
index 81f52f2c5724..82de1f9e48b1 100644
--- a/include/linux/drbd_tag_magic.h
+++ b/include/linux/drbd_tag_magic.h
@@ -12,7 +12,7 @@ enum packet_types {
12#define NL_INT64(pn, pr, member) 12#define NL_INT64(pn, pr, member)
13#define NL_BIT(pn, pr, member) 13#define NL_BIT(pn, pr, member)
14#define NL_STRING(pn, pr, member, len) 14#define NL_STRING(pn, pr, member, len)
15#include "drbd_nl.h" 15#include <linux/drbd_nl.h>
16 P_nl_after_last_packet, 16 P_nl_after_last_packet,
17}; 17};
18 18
@@ -37,7 +37,7 @@ static const int tag_list_sizes[] = {
37#define NL_INT64(pn, pr, member) + 4 + 8 37#define NL_INT64(pn, pr, member) + 4 + 8
38#define NL_BIT(pn, pr, member) + 4 + 1 38#define NL_BIT(pn, pr, member) + 4 + 1
39#define NL_STRING(pn, pr, member, len) + 4 + (len) 39#define NL_STRING(pn, pr, member, len) + 4 + (len)
40#include "drbd_nl.h" 40#include <linux/drbd_nl.h>
41}; 41};
42 42
43/* The two highest bits are used for the tag type */ 43/* The two highest bits are used for the tag type */
@@ -62,7 +62,7 @@ enum drbd_tags {
62#define NL_INT64(pn, pr, member) T_ ## member = pn | TT_INT64 | pr , 62#define NL_INT64(pn, pr, member) T_ ## member = pn | TT_INT64 | pr ,
63#define NL_BIT(pn, pr, member) T_ ## member = pn | TT_BIT | pr , 63#define NL_BIT(pn, pr, member) T_ ## member = pn | TT_BIT | pr ,
64#define NL_STRING(pn, pr, member, len) T_ ## member = pn | TT_STRING | pr , 64#define NL_STRING(pn, pr, member, len) T_ ## member = pn | TT_STRING | pr ,
65#include "drbd_nl.h" 65#include <linux/drbd_nl.h>
66}; 66};
67 67
68struct tag { 68struct tag {
@@ -78,7 +78,7 @@ static const struct tag tag_descriptions[] = {
78#define NL_INT64(pn, pr, member) [ pn ] = { #member, TT_INT64 | pr, sizeof(__u64) }, 78#define NL_INT64(pn, pr, member) [ pn ] = { #member, TT_INT64 | pr, sizeof(__u64) },
79#define NL_BIT(pn, pr, member) [ pn ] = { #member, TT_BIT | pr, sizeof(int) }, 79#define NL_BIT(pn, pr, member) [ pn ] = { #member, TT_BIT | pr, sizeof(int) },
80#define NL_STRING(pn, pr, member, len) [ pn ] = { #member, TT_STRING | pr, (len) }, 80#define NL_STRING(pn, pr, member, len) [ pn ] = { #member, TT_STRING | pr, (len) },
81#include "drbd_nl.h" 81#include <linux/drbd_nl.h>
82}; 82};
83 83
84#endif 84#endif
diff --git a/include/linux/libfdt.h b/include/linux/libfdt.h
index 4c0306c69b4e..a0c3bf6c9edb 100644
--- a/include/linux/libfdt.h
+++ b/include/linux/libfdt.h
@@ -2,7 +2,7 @@
2#define _INCLUDE_LIBFDT_H_ 2#define _INCLUDE_LIBFDT_H_
3 3
4#include <linux/libfdt_env.h> 4#include <linux/libfdt_env.h>
5#include "../../scripts/dtc/libfdt/fdt.h" 5#include <>
6#include "../../scripts/dtc/libfdt/libfdt.h" 6#include <>
7 7
8#endif /* _INCLUDE_LIBFDT_H_ */ 8#endif /* _INCLUDE_LIBFDT_H_ */
diff --git a/include/linux/netfilter/nf_conntrack_h323_asn1.h b/include/linux/netfilter/nf_conntrack_h323_asn1.h
index 8dab5968fc7e..3176a277eed1 100644
--- a/include/linux/netfilter/nf_conntrack_h323_asn1.h
+++ b/include/linux/netfilter/nf_conntrack_h323_asn1.h
@@ -40,7 +40,7 @@
40/***************************************************************************** 40/*****************************************************************************
41 * H.323 Types 41 * H.323 Types
42 ****************************************************************************/ 42 ****************************************************************************/
43#include "nf_conntrack_h323_types.h" 43#include <linux/netfilter/nf_conntrack_h323_types.h>
44 44
45typedef struct { 45typedef struct {
46 enum { 46 enum {
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index d2816454c263..4aad3cea69ae 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -15,7 +15,7 @@
15#include <linux/err.h> 15#include <linux/err.h>
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/seq_file.h> 17#include <linux/seq_file.h>
18#include "pinctrl-state.h" 18#include <linux/pinctrl/pinctrl-state.h>
19 19
20/* This struct is private to the core and should be regarded as a cookie */ 20/* This struct is private to the core and should be regarded as a cookie */
21struct pinctrl; 21struct pinctrl;
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index 7d22ab00343f..e5b1716f98cc 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -14,7 +14,7 @@
14 14
15#include <linux/bug.h> 15#include <linux/bug.h>
16 16
17#include "pinctrl-state.h" 17#include <linux/pinctrl/pinctrl-state.h>
18 18
19enum pinctrl_map_type { 19enum pinctrl_map_type {
20 PIN_MAP_TYPE_INVALID, 20 PIN_MAP_TYPE_INVALID,
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index 69393a662532..7d087f03e91e 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -17,7 +17,7 @@
17#include <linux/radix-tree.h> 17#include <linux/radix-tree.h>
18#include <linux/list.h> 18#include <linux/list.h>
19#include <linux/seq_file.h> 19#include <linux/seq_file.h>
20#include "pinctrl-state.h" 20#include <linux/pinctrl/pinctrl-state.h>
21 21
22struct device; 22struct device;
23struct pinctrl_dev; 23struct pinctrl_dev;
diff --git a/include/linux/pinctrl/pinmux.h b/include/linux/pinctrl/pinmux.h
index 1818dcbdd9ab..c15395031cb3 100644
--- a/include/linux/pinctrl/pinmux.h
+++ b/include/linux/pinctrl/pinmux.h
@@ -14,7 +14,7 @@
14 14
15#include <linux/list.h> 15#include <linux/list.h>
16#include <linux/seq_file.h> 16#include <linux/seq_file.h>
17#include "pinctrl.h" 17#include <linux/pinctrl/pinctrl.h>
18 18
19#ifdef CONFIG_PINMUX 19#ifdef CONFIG_PINMUX
20 20
diff --git a/include/scsi/osd_attributes.h b/include/scsi/osd_attributes.h
index 56e920ade326..303ba1118a4d 100644
--- a/include/scsi/osd_attributes.h
+++ b/include/scsi/osd_attributes.h
@@ -1,7 +1,7 @@
1#ifndef __OSD_ATTRIBUTES_H__ 1#ifndef __OSD_ATTRIBUTES_H__
2#define __OSD_ATTRIBUTES_H__ 2#define __OSD_ATTRIBUTES_H__
3 3
4#include "osd_protocol.h" 4#include <scsi/osd_protocol.h>
5 5
6/* 6/*
7 * Contains types and constants that define attribute pages and attribute 7 * Contains types and constants that define attribute pages and attribute
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h
index 572fb5493661..b2e85fdd2ae0 100644
--- a/include/scsi/osd_initiator.h
+++ b/include/scsi/osd_initiator.h
@@ -14,8 +14,8 @@
14#ifndef __OSD_INITIATOR_H__ 14#ifndef __OSD_INITIATOR_H__
15#define __OSD_INITIATOR_H__ 15#define __OSD_INITIATOR_H__
16 16
17#include "osd_protocol.h" 17#include <scsi/osd_protocol.h>
18#include "osd_types.h" 18#include <scsi/osd_types.h>
19 19
20#include <linux/blkdev.h> 20#include <linux/blkdev.h>
21#include <scsi/scsi_device.h> 21#include <scsi/scsi_device.h>
diff --git a/include/scsi/osd_sec.h b/include/scsi/osd_sec.h
index 4c09fee8ae1e..f96151c9c9e8 100644
--- a/include/scsi/osd_sec.h
+++ b/include/scsi/osd_sec.h
@@ -14,8 +14,8 @@
14#ifndef __OSD_SEC_H__ 14#ifndef __OSD_SEC_H__
15#define __OSD_SEC_H__ 15#define __OSD_SEC_H__
16 16
17#include "osd_protocol.h" 17#include <scsi/osd_protocol.h>
18#include "osd_types.h" 18#include <scsi/osd_types.h>
19 19
20/* 20/*
21 * Contains types and constants of osd capabilities and security 21 * Contains types and constants of osd capabilities and security
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index 02cbb50225bb..fdeb8dceec0f 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -28,9 +28,9 @@
28#include <linux/bitops.h> 28#include <linux/bitops.h>
29#include <linux/device.h> 29#include <linux/device.h>
30#include <linux/workqueue.h> 30#include <linux/workqueue.h>
31#include "pcm.h" 31#include <sound/pcm.h>
32#include "control.h" 32#include <sound/control.h>
33#include "info.h" 33#include <sound/info.h>
34 34
35/* maximum number of devices on the AC97 bus */ 35/* maximum number of devices on the AC97 bus */
36#define AC97_BUS_MAX_DEVICES 4 36#define AC97_BUS_MAX_DEVICES 4
diff --git a/include/sound/ad1816a.h b/include/sound/ad1816a.h
index d010858c33c2..a7d8dc782e7c 100644
--- a/include/sound/ad1816a.h
+++ b/include/sound/ad1816a.h
@@ -20,9 +20,9 @@
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/ 21*/
22 22
23#include "control.h" 23#include <sound/control.h>
24#include "pcm.h" 24#include <sound/pcm.h>
25#include "timer.h" 25#include <sound/timer.h>
26 26
27#define AD1816A_REG(r) (chip->port + r) 27#define AD1816A_REG(r) (chip->port + r)
28 28
diff --git a/include/sound/ak4531_codec.h b/include/sound/ak4531_codec.h
index 575296cf7987..85ea86ea35b3 100644
--- a/include/sound/ak4531_codec.h
+++ b/include/sound/ak4531_codec.h
@@ -25,8 +25,8 @@
25 * 25 *
26 */ 26 */
27 27
28#include "info.h" 28#include <sound/info.h>
29#include "control.h" 29#include <sound/control.h>
30 30
31/* 31/*
32 * ASAHI KASEI - AK4531 codec 32 * ASAHI KASEI - AK4531 codec
diff --git a/include/sound/emu10k1_synth.h b/include/sound/emu10k1_synth.h
index 6ef61c420935..9f211e957bf9 100644
--- a/include/sound/emu10k1_synth.h
+++ b/include/sound/emu10k1_synth.h
@@ -20,8 +20,8 @@
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23#include "emu10k1.h" 23#include <sound/emu10k1.h>
24#include "emux_synth.h" 24#include <sound/emux_synth.h>
25 25
26/* sequencer device id */ 26/* sequencer device id */
27#define SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH "emu10k1-synth" 27#define SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH "emu10k1-synth"
diff --git a/include/sound/emu8000.h b/include/sound/emu8000.h
index c8f66bde6d95..c321302a9143 100644
--- a/include/sound/emu8000.h
+++ b/include/sound/emu8000.h
@@ -21,8 +21,8 @@
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */ 22 */
23 23
24#include "emux_synth.h" 24#include <sound/emux_synth.h>
25#include "seq_kernel.h" 25#include <sound/seq_kernel.h>
26 26
27/* 27/*
28 * Hardware parameters. 28 * Hardware parameters.
diff --git a/include/sound/emux_legacy.h b/include/sound/emux_legacy.h
index 6fe3da2a5e15..baf43fc24d39 100644
--- a/include/sound/emux_legacy.h
+++ b/include/sound/emux_legacy.h
@@ -22,7 +22,7 @@
22 * 22 *
23 */ 23 */
24 24
25#include "seq_oss_legacy.h" 25#include <sound/seq_oss_legacy.h>
26 26
27/* 27/*
28 * awe hardware controls 28 * awe hardware controls
diff --git a/include/sound/emux_synth.h b/include/sound/emux_synth.h
index d8cb51b86c20..fb81f3722b6a 100644
--- a/include/sound/emux_synth.h
+++ b/include/sound/emux_synth.h
@@ -21,15 +21,15 @@
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */ 22 */
23 23
24#include "seq_kernel.h" 24#include <sound/seq_kernel.h>
25#include "seq_device.h" 25#include <sound/seq_device.h>
26#include "soundfont.h" 26#include <sound/soundfont.h>
27#include "seq_midi_emul.h" 27#include <sound/seq_midi_emul.h>
28#ifdef CONFIG_SND_SEQUENCER_OSS 28#ifdef CONFIG_SND_SEQUENCER_OSS
29#include "seq_oss.h" 29#include <sound/seq_oss.h>
30#endif 30#endif
31#include "emux_legacy.h" 31#include <sound/emux_legacy.h>
32#include "seq_virmidi.h" 32#include <sound/seq_virmidi.h>
33 33
34/* 34/*
35 * compile flags 35 * compile flags
diff --git a/include/sound/es1688.h b/include/sound/es1688.h
index f752dd33dfaf..1d636a2d8896 100644
--- a/include/sound/es1688.h
+++ b/include/sound/es1688.h
@@ -22,8 +22,8 @@
22 * 22 *
23 */ 23 */
24 24
25#include "control.h" 25#include <sound/control.h>
26#include "pcm.h" 26#include <sound/pcm.h>
27#include <linux/interrupt.h> 27#include <linux/interrupt.h>
28 28
29#define ES1688_HW_AUTO 0x0000 29#define ES1688_HW_AUTO 0x0000
diff --git a/include/sound/gus.h b/include/sound/gus.h
index 841bb8df38c1..42905d811da7 100644
--- a/include/sound/gus.h
+++ b/include/sound/gus.h
@@ -22,11 +22,11 @@
22 * 22 *
23 */ 23 */
24 24
25#include "pcm.h" 25#include <sound/pcm.h>
26#include "rawmidi.h" 26#include <sound/rawmidi.h>
27#include "timer.h" 27#include <sound/timer.h>
28#include "seq_midi_emul.h" 28#include <sound/seq_midi_emul.h>
29#include "seq_device.h" 29#include <sound/seq_device.h>
30#include <asm/io.h> 30#include <asm/io.h>
31 31
32/* IO ports */ 32/* IO ports */
diff --git a/include/sound/mpu401.h b/include/sound/mpu401.h
index 20230db00ef1..e94209692513 100644
--- a/include/sound/mpu401.h
+++ b/include/sound/mpu401.h
@@ -22,7 +22,7 @@
22 * 22 *
23 */ 23 */
24 24
25#include "rawmidi.h" 25#include <sound/rawmidi.h>
26#include <linux/interrupt.h> 26#include <linux/interrupt.h>
27 27
28#define MPU401_HW_MPU401 1 /* native MPU401 */ 28#define MPU401_HW_MPU401 1 /* native MPU401 */
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index cdca2ab1e711..d0711bc8c914 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -35,7 +35,7 @@
35#define snd_pcm_chip(pcm) ((pcm)->private_data) 35#define snd_pcm_chip(pcm) ((pcm)->private_data)
36 36
37#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) 37#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
38#include "pcm_oss.h" 38#include <sound/pcm_oss.h>
39#endif 39#endif
40 40
41/* 41/*
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h
index 6b14359d9fed..adf0885153f3 100644
--- a/include/sound/rawmidi.h
+++ b/include/sound/rawmidi.h
@@ -30,7 +30,7 @@
30#include <linux/workqueue.h> 30#include <linux/workqueue.h>
31 31
32#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) 32#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
33#include "seq_device.h" 33#include <sound/seq_device.h>
34#endif 34#endif
35 35
36/* 36/*
diff --git a/include/sound/sb.h b/include/sound/sb.h
index 95353542256a..ba3960329646 100644
--- a/include/sound/sb.h
+++ b/include/sound/sb.h
@@ -22,8 +22,8 @@
22 * 22 *
23 */ 23 */
24 24
25#include "pcm.h" 25#include <sound/pcm.h>
26#include "rawmidi.h" 26#include <sound/rawmidi.h>
27#include <linux/interrupt.h> 27#include <linux/interrupt.h>
28#include <asm/io.h> 28#include <asm/io.h>
29 29
diff --git a/include/sound/sb16_csp.h b/include/sound/sb16_csp.h
index af1b49e982df..7e950560e591 100644
--- a/include/sound/sb16_csp.h
+++ b/include/sound/sb16_csp.h
@@ -119,8 +119,8 @@ struct snd_sb_csp_info {
119#define SNDRV_SB_CSP_IOCTL_RESTART _IO('H', 0x16) 119#define SNDRV_SB_CSP_IOCTL_RESTART _IO('H', 0x16)
120 120
121#ifdef __KERNEL__ 121#ifdef __KERNEL__
122#include "sb.h" 122#include <sound/sb.h>
123#include "hwdep.h" 123#include <sound/hwdep.h>
124#include <linux/firmware.h> 124#include <linux/firmware.h>
125 125
126struct snd_sb_csp; 126struct snd_sb_csp;
diff --git a/include/sound/seq_kernel.h b/include/sound/seq_kernel.h
index f352a98ce4f4..2398521f0998 100644
--- a/include/sound/seq_kernel.h
+++ b/include/sound/seq_kernel.h
@@ -22,7 +22,7 @@
22 * 22 *
23 */ 23 */
24#include <linux/time.h> 24#include <linux/time.h>
25#include "asequencer.h" 25#include <sound/asequencer.h>
26 26
27typedef struct snd_seq_real_time snd_seq_real_time_t; 27typedef struct snd_seq_real_time snd_seq_real_time_t;
28typedef union snd_seq_timestamp snd_seq_timestamp_t; 28typedef union snd_seq_timestamp snd_seq_timestamp_t;
diff --git a/include/sound/seq_midi_emul.h b/include/sound/seq_midi_emul.h
index d6c4615901b9..8139d8c191ed 100644
--- a/include/sound/seq_midi_emul.h
+++ b/include/sound/seq_midi_emul.h
@@ -22,7 +22,7 @@
22 * 22 *
23 */ 23 */
24 24
25#include "seq_kernel.h" 25#include <sound/seq_kernel.h>
26 26
27/* 27/*
28 * This structure is used to keep track of the current state on each 28 * This structure is used to keep track of the current state on each
diff --git a/include/sound/seq_midi_event.h b/include/sound/seq_midi_event.h
index 5efab8b29c57..e40f43e6fc7b 100644
--- a/include/sound/seq_midi_event.h
+++ b/include/sound/seq_midi_event.h
@@ -22,7 +22,7 @@
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */ 23 */
24 24
25#include "asequencer.h" 25#include <sound/asequencer.h>
26 26
27#define MAX_MIDI_EVENT_BUF 256 27#define MAX_MIDI_EVENT_BUF 256
28 28
diff --git a/include/sound/seq_oss.h b/include/sound/seq_oss.h
index 9b060bbd6e02..d0b27ec6f8b8 100644
--- a/include/sound/seq_oss.h
+++ b/include/sound/seq_oss.h
@@ -21,8 +21,8 @@
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */ 22 */
23 23
24#include "asequencer.h" 24#include <sound/asequencer.h>
25#include "seq_kernel.h" 25#include <sound/seq_kernel.h>
26 26
27/* 27/*
28 * argument structure for synthesizer operations 28 * argument structure for synthesizer operations
diff --git a/include/sound/seq_virmidi.h b/include/sound/seq_virmidi.h
index d888433a3096..a03acd0d398a 100644
--- a/include/sound/seq_virmidi.h
+++ b/include/sound/seq_virmidi.h
@@ -22,8 +22,8 @@
22 * 22 *
23 */ 23 */
24 24
25#include "rawmidi.h" 25#include <sound/rawmidi.h>
26#include "seq_midi_event.h" 26#include <sound/seq_midi_event.h>
27 27
28/* 28/*
29 * device file instance: 29 * device file instance:
diff --git a/include/sound/snd_wavefront.h b/include/sound/snd_wavefront.h
index fa149ca77e4b..35e94b3d1ec7 100644
--- a/include/sound/snd_wavefront.h
+++ b/include/sound/snd_wavefront.h
@@ -1,10 +1,10 @@
1#ifndef __SOUND_SND_WAVEFRONT_H__ 1#ifndef __SOUND_SND_WAVEFRONT_H__
2#define __SOUND_SND_WAVEFRONT_H__ 2#define __SOUND_SND_WAVEFRONT_H__
3 3
4#include "mpu401.h" 4#include <sound/mpu401.h>
5#include "hwdep.h" 5#include <sound/hwdep.h>
6#include "rawmidi.h" 6#include <sound/rawmidi.h>
7#include "wavefront.h" /* generic OSS/ALSA/user-level wavefront header */ 7#include <sound/wavefront.h> /* generic OSS/ALSA/user-level wavefront header */
8 8
9/* MIDI interface */ 9/* MIDI interface */
10 10
diff --git a/include/sound/soundfont.h b/include/sound/soundfont.h
index 679df0574066..7c93efdba90d 100644
--- a/include/sound/soundfont.h
+++ b/include/sound/soundfont.h
@@ -22,8 +22,8 @@
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */ 23 */
24 24
25#include "sfnt_info.h" 25#include <sound/sfnt_info.h>
26#include "util_mem.h" 26#include <sound/util_mem.h>
27 27
28#define SF_MAX_INSTRUMENTS 128 /* maximum instrument number */ 28#define SF_MAX_INSTRUMENTS 128 /* maximum instrument number */
29#define SF_MAX_PRESETS 256 /* drums are mapped from 128 to 256 */ 29#define SF_MAX_PRESETS 256 /* drums are mapped from 128 to 256 */
diff --git a/include/sound/tea6330t.h b/include/sound/tea6330t.h
index 51b282b76896..e6beec23d7f2 100644
--- a/include/sound/tea6330t.h
+++ b/include/sound/tea6330t.h
@@ -22,7 +22,7 @@
22 * 22 *
23 */ 23 */
24 24
25#include "i2c.h" /* generic i2c support */ 25#include <sound/i2c.h> /* generic i2c support */
26 26
27int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer); 27int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer);
28int snd_tea6330t_update_mixer(struct snd_card *card, struct snd_i2c_bus *bus, 28int snd_tea6330t_update_mixer(struct snd_card *card, struct snd_i2c_bus *bus,
diff --git a/include/sound/wss.h b/include/sound/wss.h
index fd01f22825cd..0c7f034f1e86 100644
--- a/include/sound/wss.h
+++ b/include/sound/wss.h
@@ -22,11 +22,11 @@
22 * 22 *
23 */ 23 */
24 24
25#include "control.h" 25#include <sound/control.h>
26#include "pcm.h" 26#include <sound/pcm.h>
27#include "timer.h" 27#include <sound/timer.h>
28 28
29#include "cs4231-regs.h" 29#include <sound/cs4231-regs.h>
30 30
31/* defines for codec.mode */ 31/* defines for codec.mode */
32 32
diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h
index 388bcdd26d46..fde1b3e94c7d 100644
--- a/include/trace/events/compaction.h
+++ b/include/trace/events/compaction.h
@@ -6,7 +6,7 @@
6 6
7#include <linux/types.h> 7#include <linux/types.h>
8#include <linux/tracepoint.h> 8#include <linux/tracepoint.h>
9#include "gfpflags.h" 9#include <trace/events/gfpflags.h>
10 10
11DECLARE_EVENT_CLASS(mm_compaction_isolate_template, 11DECLARE_EVENT_CLASS(mm_compaction_isolate_template,
12 12
diff --git a/include/trace/events/kmem.h b/include/trace/events/kmem.h
index 08fa27244da7..6bc943ecb841 100644
--- a/include/trace/events/kmem.h
+++ b/include/trace/events/kmem.h
@@ -6,7 +6,7 @@
6 6
7#include <linux/types.h> 7#include <linux/types.h>
8#include <linux/tracepoint.h> 8#include <linux/tracepoint.h>
9#include "gfpflags.h" 9#include <trace/events/gfpflags.h>
10 10
11DECLARE_EVENT_CLASS(kmem_alloc, 11DECLARE_EVENT_CLASS(kmem_alloc,
12 12
diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h
index bab3b87e4064..63cfcccaebb3 100644
--- a/include/trace/events/vmscan.h
+++ b/include/trace/events/vmscan.h
@@ -8,7 +8,7 @@
8#include <linux/tracepoint.h> 8#include <linux/tracepoint.h>
9#include <linux/mm.h> 9#include <linux/mm.h>
10#include <linux/memcontrol.h> 10#include <linux/memcontrol.h>
11#include "gfpflags.h" 11#include <trace/events/gfpflags.h>
12 12
13#define RECLAIM_WB_ANON 0x0001u 13#define RECLAIM_WB_ANON 0x0001u
14#define RECLAIM_WB_FILE 0x0002u 14#define RECLAIM_WB_FILE 0x0002u
diff --git a/include/uapi/Kbuild b/include/uapi/Kbuild
new file mode 100644
index 000000000000..81d2106287fe
--- /dev/null
+++ b/include/uapi/Kbuild
@@ -0,0 +1,14 @@
1# UAPI Header export list
2# Top-level Makefile calls into asm-$(ARCH)
3# List only non-arch directories below
4
5
6header-y += asm-generic/
7header-y += linux/
8header-y += sound/
9header-y += mtd/
10header-y += rdma/
11header-y += video/
12header-y += drm/
13header-y += xen/
14header-y += scsi/
diff --git a/include/uapi/asm-generic/Kbuild b/include/uapi/asm-generic/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/asm-generic/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/asm-generic/Kbuild.asm b/include/uapi/asm-generic/Kbuild.asm
new file mode 100644
index 000000000000..fcd50b759217
--- /dev/null
+++ b/include/uapi/asm-generic/Kbuild.asm
@@ -0,0 +1,49 @@
1#
2# Headers that are optional in usr/include/asm/
3#
4opt-header += kvm.h
5opt-header += kvm_para.h
6opt-header += a.out.h
7
8#
9# Headers that are mandatory in usr/include/asm/
10#
11header-y += auxvec.h
12header-y += bitsperlong.h
13header-y += byteorder.h
14header-y += errno.h
15header-y += fcntl.h
16header-y += ioctl.h
17header-y += ioctls.h
18header-y += ipcbuf.h
19header-y += mman.h
20header-y += msgbuf.h
21header-y += param.h
22header-y += poll.h
23header-y += posix_types.h
24header-y += ptrace.h
25header-y += resource.h
26header-y += sembuf.h
27header-y += setup.h
28header-y += shmbuf.h
29header-y += sigcontext.h
30header-y += siginfo.h
31header-y += signal.h
32header-y += socket.h
33header-y += sockios.h
34header-y += stat.h
35header-y += statfs.h
36header-y += swab.h
37header-y += termbits.h
38header-y += termios.h
39header-y += types.h
40header-y += unistd.h
41
42header-y += $(foreach hdr,$(opt-header), \
43 $(if \
44 $(wildcard \
45 $(srctree)/arch/$(SRCARCH)/include/uapi/asm/$(hdr) \
46 $(srctree)/arch/$(SRCARCH)/include/asm/$(hdr) \
47 ), \
48 $(hdr) \
49 ))
diff --git a/include/uapi/drm/Kbuild b/include/uapi/drm/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/drm/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
new file mode 100644
index 000000000000..b0fd4d03499d
--- /dev/null
+++ b/include/uapi/linux/Kbuild
@@ -0,0 +1,24 @@
1# UAPI Header export list
2header-y += byteorder/
3header-y += can/
4header-y += caif/
5header-y += dvb/
6header-y += hdlc/
7header-y += hsi/
8header-y += isdn/
9header-y += mmc/
10header-y += nfsd/
11header-y += raid/
12header-y += spi/
13header-y += sunrpc/
14header-y += tc_act/
15header-y += tc_ematch/
16header-y += netfilter/
17header-y += netfilter_arp/
18header-y += netfilter_bridge/
19header-y += netfilter_ipv4/
20header-y += netfilter_ipv6/
21header-y += usb/
22header-y += wimax/
23
24genhdr-y += version.h
diff --git a/include/uapi/linux/byteorder/Kbuild b/include/uapi/linux/byteorder/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/byteorder/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/caif/Kbuild b/include/uapi/linux/caif/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/caif/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/can/Kbuild b/include/uapi/linux/can/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/can/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/dvb/Kbuild b/include/uapi/linux/dvb/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/dvb/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/hdlc/Kbuild b/include/uapi/linux/hdlc/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/hdlc/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/hsi/Kbuild b/include/uapi/linux/hsi/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/hsi/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/isdn/Kbuild b/include/uapi/linux/isdn/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/isdn/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/mmc/Kbuild b/include/uapi/linux/mmc/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/mmc/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/netfilter/Kbuild b/include/uapi/linux/netfilter/Kbuild
new file mode 100644
index 000000000000..4afbace8e869
--- /dev/null
+++ b/include/uapi/linux/netfilter/Kbuild
@@ -0,0 +1,2 @@
1# UAPI Header export list
2header-y += ipset/
diff --git a/include/uapi/linux/netfilter/ipset/Kbuild b/include/uapi/linux/netfilter/ipset/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/netfilter/ipset/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/netfilter_arp/Kbuild b/include/uapi/linux/netfilter_arp/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/netfilter_arp/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/netfilter_bridge/Kbuild b/include/uapi/linux/netfilter_bridge/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/netfilter_bridge/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/netfilter_ipv4/Kbuild b/include/uapi/linux/netfilter_ipv4/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/netfilter_ipv4/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/netfilter_ipv6/Kbuild b/include/uapi/linux/netfilter_ipv6/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/netfilter_ipv6/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/nfsd/Kbuild b/include/uapi/linux/nfsd/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/nfsd/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/raid/Kbuild b/include/uapi/linux/raid/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/raid/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/spi/Kbuild b/include/uapi/linux/spi/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/spi/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/sunrpc/Kbuild b/include/uapi/linux/sunrpc/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/sunrpc/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/tc_act/Kbuild b/include/uapi/linux/tc_act/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/tc_act/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/tc_ematch/Kbuild b/include/uapi/linux/tc_ematch/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/tc_ematch/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/usb/Kbuild b/include/uapi/linux/usb/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/usb/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/linux/wimax/Kbuild b/include/uapi/linux/wimax/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/linux/wimax/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/mtd/Kbuild b/include/uapi/mtd/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/mtd/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/rdma/Kbuild b/include/uapi/rdma/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/rdma/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/scsi/Kbuild b/include/uapi/scsi/Kbuild
new file mode 100644
index 000000000000..29a87dd26cfb
--- /dev/null
+++ b/include/uapi/scsi/Kbuild
@@ -0,0 +1,2 @@
1# UAPI Header export list
2header-y += fc/
diff --git a/include/uapi/scsi/fc/Kbuild b/include/uapi/scsi/fc/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/scsi/fc/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/sound/Kbuild b/include/uapi/sound/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/sound/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/video/Kbuild b/include/uapi/video/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/video/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/uapi/xen/Kbuild b/include/uapi/xen/Kbuild
new file mode 100644
index 000000000000..aafaa5aa54d4
--- /dev/null
+++ b/include/uapi/xen/Kbuild
@@ -0,0 +1 @@
# UAPI Header export list
diff --git a/include/xen/interface/callback.h b/include/xen/interface/callback.h
index 2ae3cd243264..8c5fa0e20155 100644
--- a/include/xen/interface/callback.h
+++ b/include/xen/interface/callback.h
@@ -27,7 +27,7 @@
27#ifndef __XEN_PUBLIC_CALLBACK_H__ 27#ifndef __XEN_PUBLIC_CALLBACK_H__
28#define __XEN_PUBLIC_CALLBACK_H__ 28#define __XEN_PUBLIC_CALLBACK_H__
29 29
30#include "xen.h" 30#include <xen/interface/xen.h>
31 31
32/* 32/*
33 * Prototype for this hypercall is: 33 * Prototype for this hypercall is:
diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/params.h
index 1b4f923d7086..a6c79911e729 100644
--- a/include/xen/interface/hvm/params.h
+++ b/include/xen/interface/hvm/params.h
@@ -21,7 +21,7 @@
21#ifndef __XEN_PUBLIC_HVM_PARAMS_H__ 21#ifndef __XEN_PUBLIC_HVM_PARAMS_H__
22#define __XEN_PUBLIC_HVM_PARAMS_H__ 22#define __XEN_PUBLIC_HVM_PARAMS_H__
23 23
24#include "hvm_op.h" 24#include <xen/interface/hvm/hvm_op.h>
25 25
26/* 26/*
27 * Parameter space for HVMOP_{set,get}_param. 27 * Parameter space for HVMOP_{set,get}_param.
diff --git a/include/xen/interface/io/blkif.h b/include/xen/interface/io/blkif.h
index ee338bfde18b..01c3d62436ef 100644
--- a/include/xen/interface/io/blkif.h
+++ b/include/xen/interface/io/blkif.h
@@ -9,8 +9,8 @@
9#ifndef __XEN_PUBLIC_IO_BLKIF_H__ 9#ifndef __XEN_PUBLIC_IO_BLKIF_H__
10#define __XEN_PUBLIC_IO_BLKIF_H__ 10#define __XEN_PUBLIC_IO_BLKIF_H__
11 11
12#include "ring.h" 12#include <xen/interface/io/ring.h>
13#include "../grant_table.h" 13#include <xen/interface/grant_table.h>
14 14
15/* 15/*
16 * Front->back notifications: When enqueuing a new request, sending a 16 * Front->back notifications: When enqueuing a new request, sending a
diff --git a/include/xen/interface/io/netif.h b/include/xen/interface/io/netif.h
index cb94668f6e9f..9dfc12000980 100644
--- a/include/xen/interface/io/netif.h
+++ b/include/xen/interface/io/netif.h
@@ -9,8 +9,8 @@
9#ifndef __XEN_PUBLIC_IO_NETIF_H__ 9#ifndef __XEN_PUBLIC_IO_NETIF_H__
10#define __XEN_PUBLIC_IO_NETIF_H__ 10#define __XEN_PUBLIC_IO_NETIF_H__
11 11
12#include "ring.h" 12#include <xen/interface/io/ring.h>
13#include "../grant_table.h" 13#include <xen/interface/grant_table.h>
14 14
15/* 15/*
16 * Notifications after enqueuing any type of message should be conditional on 16 * Notifications after enqueuing any type of message should be conditional on
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h
index 54ad6f9e4725..4755b5fac9c7 100644
--- a/include/xen/interface/platform.h
+++ b/include/xen/interface/platform.h
@@ -27,7 +27,7 @@
27#ifndef __XEN_PUBLIC_PLATFORM_H__ 27#ifndef __XEN_PUBLIC_PLATFORM_H__
28#define __XEN_PUBLIC_PLATFORM_H__ 28#define __XEN_PUBLIC_PLATFORM_H__
29 29
30#include "xen.h" 30#include <xen/interface/xen.h>
31 31
32#define XENPF_INTERFACE_VERSION 0x03000001 32#define XENPF_INTERFACE_VERSION 0x03000001
33 33
diff --git a/include/xen/interface/sched.h b/include/xen/interface/sched.h
index dd55dac340de..9ce083960a25 100644
--- a/include/xen/interface/sched.h
+++ b/include/xen/interface/sched.h
@@ -9,7 +9,7 @@
9#ifndef __XEN_PUBLIC_SCHED_H__ 9#ifndef __XEN_PUBLIC_SCHED_H__
10#define __XEN_PUBLIC_SCHED_H__ 10#define __XEN_PUBLIC_SCHED_H__
11 11
12#include "event_channel.h" 12#include <xen/interface/event_channel.h>
13 13
14/* 14/*
15 * The prototype for this hypercall is: 15 * The prototype for this hypercall is:
diff --git a/include/xen/interface/version.h b/include/xen/interface/version.h
index dd58cf5ea3e4..5f5e551cf546 100644
--- a/include/xen/interface/version.h
+++ b/include/xen/interface/version.h
@@ -55,7 +55,7 @@ struct xen_feature_info {
55}; 55};
56 56
57/* Declares the features reported by XENVER_get_features. */ 57/* Declares the features reported by XENVER_get_features. */
58#include "features.h" 58#include <xen/interface/features.h>
59 59
60/* arg == NULL; returns host memory page size. */ 60/* arg == NULL; returns host memory page size. */
61#define XENVER_pagesize 7 61#define XENVER_pagesize 7
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index d3bae5e7b601..06ba4a70bd4d 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -3,13 +3,12 @@
3# 3#
4# header-y - list files to be installed. They are preprocessed 4# header-y - list files to be installed. They are preprocessed
5# to remove __KERNEL__ section of the file 5# to remove __KERNEL__ section of the file
6# objhdr-y - Same as header-y but for generated files 6# genhdr-y - Same as header-y but in a generated/ directory
7# genhdr-y - Same as objhdr-y but in a generated/ directory
8# 7#
9# ========================================================================== 8# ==========================================================================
10 9
11# called may set destination dir (when installing to asm/) 10# called may set destination dir (when installing to asm/)
12_dst := $(if $(dst),$(dst),$(obj)) 11_dst := $(or $(destination-y),$(dst),$(obj))
13 12
14# generated header directory 13# generated header directory
15gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj))) 14gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj)))
@@ -17,49 +16,64 @@ gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj)))
17kbuild-file := $(srctree)/$(obj)/Kbuild 16kbuild-file := $(srctree)/$(obj)/Kbuild
18include $(kbuild-file) 17include $(kbuild-file)
19 18
20_dst := $(if $(destination-y),$(destination-y),$(_dst)) 19old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
20ifneq ($(wildcard $(old-kbuild-file)),)
21include $(old-kbuild-file)
22endif
21 23
22include scripts/Kbuild.include 24include scripts/Kbuild.include
23 25
24install := $(INSTALL_HDR_PATH)/$(_dst) 26installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst))
25 27
26header-y := $(sort $(header-y)) 28header-y := $(sort $(header-y))
27subdirs := $(patsubst %/,%,$(filter %/, $(header-y))) 29subdirs := $(patsubst %/,%,$(filter %/, $(header-y)))
28header-y := $(filter-out %/, $(header-y)) 30header-y := $(filter-out %/, $(header-y))
29 31
30# files used to track state of install/check 32# files used to track state of install/check
31install-file := $(install)/.install 33install-file := $(installdir)/.install
32check-file := $(install)/.check 34check-file := $(installdir)/.check
33 35
34# generic-y list all files an architecture uses from asm-generic 36# generic-y list all files an architecture uses from asm-generic
35# Use this to build a list of headers which require a wrapper 37# Use this to build a list of headers which require a wrapper
36wrapper-files := $(filter $(header-y), $(generic-y)) 38wrapper-files := $(filter $(header-y), $(generic-y))
37 39
40srcdir := $(srctree)/$(obj)
41gendir := $(objtree)/$(gen)
42
43oldsrcdir := $(srctree)/$(subst /uapi,,$(obj))
44
38# all headers files for this dir 45# all headers files for this dir
39header-y := $(filter-out $(generic-y), $(header-y)) 46header-y := $(filter-out $(generic-y), $(header-y))
40all-files := $(header-y) $(objhdr-y) $(genhdr-y) $(wrapper-files) 47all-files := $(header-y) $(genhdr-y) $(wrapper-files)
41input-files := $(addprefix $(srctree)/$(obj)/,$(header-y)) \ 48output-files := $(addprefix $(installdir)/, $(all-files))
42 $(addprefix $(objtree)/$(obj)/,$(objhdr-y)) \ 49
43 $(addprefix $(objtree)/$(gen)/,$(genhdr-y)) 50input-files := $(foreach hdr, $(header-y), \
44output-files := $(addprefix $(install)/, $(all-files)) 51 $(or \
52 $(wildcard $(srcdir)/$(hdr)), \
53 $(wildcard $(oldsrcdir)/$(hdr)), \
54 $(error Missing UAPI file $(srcdir)/$(hdr)) \
55 )) \
56 $(foreach hdr, $(genhdr-y), \
57 $(or \
58 $(wildcard $(gendir)/$(hdr)), \
59 $(error Missing generated UAPI file $(gendir)/$(hdr)) \
60 ))
45 61
46# Work out what needs to be removed 62# Work out what needs to be removed
47oldheaders := $(patsubst $(install)/%,%,$(wildcard $(install)/*.h)) 63oldheaders := $(patsubst $(installdir)/%,%,$(wildcard $(installdir)/*.h))
48unwanted := $(filter-out $(all-files),$(oldheaders)) 64unwanted := $(filter-out $(all-files),$(oldheaders))
49 65
50# Prefix unwanted with full paths to $(INSTALL_HDR_PATH) 66# Prefix unwanted with full paths to $(INSTALL_HDR_PATH)
51unwanted-file := $(addprefix $(install)/, $(unwanted)) 67unwanted-file := $(addprefix $(installdir)/, $(unwanted))
52 68
53printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@)) 69printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@))
54 70
55quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\ 71quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
56 file$(if $(word 2, $(all-files)),s)) 72 file$(if $(word 2, $(all-files)),s))
57 cmd_install = \ 73 cmd_install = \
58 $(PERL) $< $(srctree)/$(obj) $(install) $(SRCARCH) $(header-y); \ 74 $(PERL) $< $(installdir) $(SRCARCH) $(input-files); \
59 $(PERL) $< $(objtree)/$(obj) $(install) $(SRCARCH) $(objhdr-y); \
60 $(PERL) $< $(objtree)/$(gen) $(install) $(SRCARCH) $(genhdr-y); \
61 for F in $(wrapper-files); do \ 75 for F in $(wrapper-files); do \
62 echo "\#include <asm-generic/$$F>" > $(install)/$$F; \ 76 echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
63 done; \ 77 done; \
64 touch $@ 78 touch $@
65 79
@@ -70,7 +84,7 @@ quiet_cmd_check = CHECK $(printdir) ($(words $(all-files)) files)
70# Headers list can be pretty long, xargs helps to avoid 84# Headers list can be pretty long, xargs helps to avoid
71# the "Argument list too long" error. 85# the "Argument list too long" error.
72 cmd_check = for f in $(all-files); do \ 86 cmd_check = for f in $(all-files); do \
73 echo "$(install)/$${f}"; done \ 87 echo "$(installdir)/$${f}"; done \
74 | xargs \ 88 | xargs \
75 $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH); \ 89 $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH); \
76 touch $@ 90 touch $@
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index 48462be328bb..239d22d4207b 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -4,8 +4,7 @@
4# user space and copy the files to their destination. 4# user space and copy the files to their destination.
5# 5#
6# Usage: headers_install.pl readdir installdir arch [files...] 6# Usage: headers_install.pl readdir installdir arch [files...]
7# readdir: dir to open files 7# installdir: dir to install the files to
8# installdir: dir to install the files
9# arch: current architecture 8# arch: current architecture
10# arch is used to force a reinstallation when the arch 9# arch is used to force a reinstallation when the arch
11# changes because kbuild then detect a command line change. 10# changes because kbuild then detect a command line change.
@@ -18,15 +17,18 @@
18 17
19use strict; 18use strict;
20 19
21my ($readdir, $installdir, $arch, @files) = @ARGV; 20my ($installdir, $arch, @files) = @ARGV;
22 21
23my $unifdef = "scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__"; 22my $unifdef = "scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__";
24 23
25foreach my $file (@files) { 24foreach my $filename (@files) {
25 my $file = $filename;
26 $file =~ s!^.*/!!;
27
26 my $tmpfile = "$installdir/$file.tmp"; 28 my $tmpfile = "$installdir/$file.tmp";
27 29
28 open(my $in, '<', "$readdir/$file") 30 open(my $in, '<', $filename)
29 or die "$readdir/$file: $!\n"; 31 or die "$filename: $!\n";
30 open(my $out, '>', $tmpfile) 32 open(my $out, '>', $tmpfile)
31 or die "$tmpfile: $!\n"; 33 or die "$tmpfile: $!\n";
32 while (my $line = <$in>) { 34 while (my $line = <$in>) {