From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751088AbcEGUX5 (ORCPT ); Sat, 7 May 2016 16:23:57 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33942 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbcEGUX4 (ORCPT ); Sat, 7 May 2016 16:23:56 -0400 From: Thimo Braker To: gregkh@linuxfoundation.org Cc: labbott@redhat.com, sumit.semwal@linaro.org, arve@android.com, riandrews@android.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Thimo Braker Subject: [PATCH 1/2] Staging: android: ion: fixes use of typedef Date: Sat, 7 May 2016 15:22:03 -0500 Message-Id: <1462652523-25037-1-git-send-email-thibmorozier@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes a checkpatch.pl warning about 'do not add new typedefs' Signed-off-by: Thimo Braker --- drivers/staging/android/uapi/ion.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h index 0a8e40f..77a46f0 100644 --- a/drivers/staging/android/uapi/ion.h +++ b/drivers/staging/android/uapi/ion.h @@ -20,8 +20,6 @@ #include #include -typedef int ion_user_handle_t; - /** * enum ion_heap_types - list of all possible types of heaps * @ION_HEAP_TYPE_SYSTEM: memory allocated via vmalloc @@ -95,7 +93,7 @@ struct ion_allocation_data { size_t align; unsigned int heap_id_mask; unsigned int flags; - ion_user_handle_t handle; + int handle; }; /** @@ -109,7 +107,7 @@ struct ion_allocation_data { * provides the file descriptor and the kernel returns the handle. */ struct ion_fd_data { - ion_user_handle_t handle; + int handle; int fd; }; @@ -118,7 +116,7 @@ struct ion_fd_data { * @handle: a handle */ struct ion_handle_data { - ion_user_handle_t handle; + int handle; }; /** -- 2.1.4