From 8cb378f23cb15b6d7e5d57bde7bac8f157c9d301 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 7 Nov 2013 12:25:56 -0800 Subject: [PATCH] ion: move into staging Move ion from drivers/gpu/ion to drivers/android/staging/ion. Change-Id: Id6e996aa3954cbb8e1a8abc9578a56204f5eb211 Signed-off-by: Colin Cross --- drivers/gpu/Makefile | 2 +- drivers/staging/android/Kconfig | 2 ++ drivers/staging/android/Makefile | 2 ++ drivers/{gpu => staging/android}/ion/Kconfig | 0 drivers/{gpu => staging/android}/ion/Makefile | 0 drivers/{gpu => staging/android}/ion/compat_ion.c | 4 ++-- drivers/{gpu => staging/android}/ion/compat_ion.h | 0 drivers/{gpu => staging/android}/ion/ion.c | 2 +- {include/linux => drivers/staging/android/ion}/ion.h | 2 +- drivers/{gpu => staging/android}/ion/ion_carveout_heap.c | 2 +- drivers/{gpu => staging/android}/ion/ion_chunk_heap.c | 2 +- drivers/{gpu => staging/android}/ion/ion_cma_heap.c | 3 +-- drivers/{gpu => staging/android}/ion/ion_heap.c | 2 +- drivers/{gpu => staging/android}/ion/ion_page_pool.c | 0 drivers/{gpu => staging/android}/ion/ion_priv.h | 3 ++- drivers/{gpu => staging/android}/ion/ion_system_heap.c | 2 +- drivers/{gpu => staging/android}/ion/tegra/Makefile | 0 drivers/{gpu => staging/android}/ion/tegra/tegra_ion.c | 2 +- drivers/video/Kconfig | 2 -- 19 files changed, 17 insertions(+), 15 deletions(-) rename drivers/{gpu => staging/android}/ion/Kconfig (100%) rename drivers/{gpu => staging/android}/ion/Makefile (100%) rename drivers/{gpu => staging/android}/ion/compat_ion.c (97%) rename drivers/{gpu => staging/android}/ion/compat_ion.h (100%) rename drivers/{gpu => staging/android}/ion/ion.c (99%) rename {include/linux => drivers/staging/android/ion}/ion.h (99%) rename drivers/{gpu => staging/android}/ion/ion_carveout_heap.c (99%) rename drivers/{gpu => staging/android}/ion/ion_chunk_heap.c (99%) rename drivers/{gpu => staging/android}/ion/ion_cma_heap.c (98%) rename drivers/{gpu => staging/android}/ion/ion_heap.c (99%) rename drivers/{gpu => staging/android}/ion/ion_page_pool.c (100%) rename drivers/{gpu => staging/android}/ion/ion_priv.h (99%) rename drivers/{gpu => staging/android}/ion/ion_system_heap.c (99%) rename drivers/{gpu => staging/android}/ion/tegra/Makefile (100%) rename drivers/{gpu => staging/android}/ion/tegra/tegra_ion.c (98%) diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile index a2efb62aa776..d8a22c2a579d 100644 --- a/drivers/gpu/Makefile +++ b/drivers/gpu/Makefile @@ -1,2 +1,2 @@ -obj-y += drm/ vga/ ion/ +obj-y += drm/ vga/ obj-$(CONFIG_TEGRA_HOST1X) += host1x/ diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig index fe11eb6fa966..6da535db2538 100644 --- a/drivers/staging/android/Kconfig +++ b/drivers/staging/android/Kconfig @@ -108,6 +108,8 @@ config SW_SYNC_USER *WARNING* improper use of this can result in deadlocking kernel drivers from userspace. +source "drivers/staging/android/ion/Kconfig" + endif # if ANDROID endmenu diff --git a/drivers/staging/android/Makefile b/drivers/staging/android/Makefile index c136299e05af..0a01e1914905 100644 --- a/drivers/staging/android/Makefile +++ b/drivers/staging/android/Makefile @@ -1,5 +1,7 @@ ccflags-y += -I$(src) # needed for trace events +obj-y += ion/ + obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o obj-$(CONFIG_ASHMEM) += ashmem.o obj-$(CONFIG_ANDROID_LOGGER) += logger.o diff --git a/drivers/gpu/ion/Kconfig b/drivers/staging/android/ion/Kconfig similarity index 100% rename from drivers/gpu/ion/Kconfig rename to drivers/staging/android/ion/Kconfig diff --git a/drivers/gpu/ion/Makefile b/drivers/staging/android/ion/Makefile similarity index 100% rename from drivers/gpu/ion/Makefile rename to drivers/staging/android/ion/Makefile diff --git a/drivers/gpu/ion/compat_ion.c b/drivers/staging/android/ion/compat_ion.c similarity index 97% rename from drivers/gpu/ion/compat_ion.c rename to drivers/staging/android/ion/compat_ion.c index e0d2839952a0..0416fabfc1b9 100644 --- a/drivers/gpu/ion/compat_ion.c +++ b/drivers/staging/android/ion/compat_ion.c @@ -14,14 +14,14 @@ * */ -#include #include #include #include +#include "ion.h" #include "compat_ion.h" -/* See include/linux/ion.h for the definition of these structs */ +/* See drivers/staging/android/uapi/ion.h for the definition of these structs */ struct compat_ion_allocation_data { compat_size_t len; compat_size_t align; diff --git a/drivers/gpu/ion/compat_ion.h b/drivers/staging/android/ion/compat_ion.h similarity index 100% rename from drivers/gpu/ion/compat_ion.h rename to drivers/staging/android/ion/compat_ion.h diff --git a/drivers/gpu/ion/ion.c b/drivers/staging/android/ion/ion.c similarity index 99% rename from drivers/gpu/ion/ion.c rename to drivers/staging/android/ion/ion.c index e4ffc9d5b94b..5c886fc9cd7e 100644 --- a/drivers/gpu/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -37,6 +36,7 @@ #include #include +#include "ion.h" #include "ion_priv.h" #include "compat_ion.h" diff --git a/include/linux/ion.h b/drivers/staging/android/ion/ion.h similarity index 99% rename from include/linux/ion.h rename to drivers/staging/android/ion/ion.h index 5771f8c3d3ac..6b4d9fbeaec4 100644 --- a/include/linux/ion.h +++ b/drivers/staging/android/ion/ion.h @@ -1,5 +1,5 @@ /* - * include/linux/ion.h + * drivers/staging/android/ion/ion.h * * Copyright (C) 2011 Google, Inc. * diff --git a/drivers/gpu/ion/ion_carveout_heap.c b/drivers/staging/android/ion/ion_carveout_heap.c similarity index 99% rename from drivers/gpu/ion/ion_carveout_heap.c rename to drivers/staging/android/ion/ion_carveout_heap.c index 86f35545eaf7..4a94b17da67e 100644 --- a/drivers/gpu/ion/ion_carveout_heap.c +++ b/drivers/staging/android/ion/ion_carveout_heap.c @@ -18,11 +18,11 @@ #include #include #include -#include #include #include #include #include +#include "ion.h" #include "ion_priv.h" #include diff --git a/drivers/gpu/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c similarity index 99% rename from drivers/gpu/ion/ion_chunk_heap.c rename to drivers/staging/android/ion/ion_chunk_heap.c index 15c9d7ad2502..a2b2e1b7af38 100644 --- a/drivers/gpu/ion/ion_chunk_heap.c +++ b/drivers/staging/android/ion/ion_chunk_heap.c @@ -18,11 +18,11 @@ #include #include #include -#include #include #include #include #include +#include "ion.h" #include "ion_priv.h" #include diff --git a/drivers/gpu/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c similarity index 98% rename from drivers/gpu/ion/ion_cma_heap.c rename to drivers/staging/android/ion/ion_cma_heap.c index 1eaa8c11e04c..55d6003f546c 100644 --- a/drivers/gpu/ion/ion_cma_heap.c +++ b/drivers/staging/android/ion/ion_cma_heap.c @@ -16,13 +16,12 @@ */ #include -#include #include #include #include #include -/* for ion_heap_ops structure */ +#include "ion.h" #include "ion_priv.h" #define ION_CMA_ALLOCATE_FAILED -1 diff --git a/drivers/gpu/ion/ion_heap.c b/drivers/staging/android/ion/ion_heap.c similarity index 99% rename from drivers/gpu/ion/ion_heap.c rename to drivers/staging/android/ion/ion_heap.c index 786302de7ed0..9be246f50a01 100644 --- a/drivers/gpu/ion/ion_heap.c +++ b/drivers/staging/android/ion/ion_heap.c @@ -16,13 +16,13 @@ #include #include -#include #include #include #include #include #include #include +#include "ion.h" #include "ion_priv.h" void *ion_heap_map_kernel(struct ion_heap *heap, diff --git a/drivers/gpu/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c similarity index 100% rename from drivers/gpu/ion/ion_page_pool.c rename to drivers/staging/android/ion/ion_page_pool.c diff --git a/drivers/gpu/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h similarity index 99% rename from drivers/gpu/ion/ion_priv.h rename to drivers/staging/android/ion/ion_priv.h index 32461e946735..0ccf409cde7d 100644 --- a/drivers/gpu/ion/ion_priv.h +++ b/drivers/staging/android/ion/ion_priv.h @@ -17,7 +17,6 @@ #ifndef _ION_PRIV_H #define _ION_PRIV_H -#include #include #include #include @@ -26,6 +25,8 @@ #include #include +#include "ion.h" + struct ion_buffer *ion_handle_buffer(struct ion_handle *handle); /** diff --git a/drivers/gpu/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c similarity index 99% rename from drivers/gpu/ion/ion_system_heap.c rename to drivers/staging/android/ion/ion_system_heap.c index 5fe81a76f2f5..06e0702396a4 100644 --- a/drivers/gpu/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -18,12 +18,12 @@ #include #include #include -#include #include #include #include #include #include +#include "ion.h" #include "ion_priv.h" static unsigned int high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | diff --git a/drivers/gpu/ion/tegra/Makefile b/drivers/staging/android/ion/tegra/Makefile similarity index 100% rename from drivers/gpu/ion/tegra/Makefile rename to drivers/staging/android/ion/tegra/Makefile diff --git a/drivers/gpu/ion/tegra/tegra_ion.c b/drivers/staging/android/ion/tegra/tegra_ion.c similarity index 98% rename from drivers/gpu/ion/tegra/tegra_ion.c rename to drivers/staging/android/ion/tegra/tegra_ion.c index 7af6e168ff4c..0849600bcc00 100644 --- a/drivers/gpu/ion/tegra/tegra_ion.c +++ b/drivers/staging/android/ion/tegra/tegra_ion.c @@ -15,9 +15,9 @@ */ #include -#include #include #include +#include "../ion.h" #include "../ion_priv.h" struct ion_device *idev; diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7c5e27e52b9f..0669dac2301d 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -23,8 +23,6 @@ source "drivers/gpu/drm/Kconfig" source "drivers/gpu/host1x/Kconfig" -source "drivers/gpu/ion/Kconfig" - config VGASTATE tristate default n -- 2.34.1