From patchwork Fri Dec 15 08:51:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 179107 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9131093dys; Fri, 15 Dec 2023 00:52:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqIpS8DdPd3H4ZRukbbT8HX+gu14VbVv3FssaNgXkLaksOjja4CKorpZKONGOtz1vbdzP5 X-Received: by 2002:a25:ad46:0:b0:dbc:cbb8:a8b with SMTP id l6-20020a25ad46000000b00dbccbb80a8bmr3217105ybe.39.1702630358237; Fri, 15 Dec 2023 00:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702630358; cv=none; d=google.com; s=arc-20160816; b=IbcFC8fqYVZCSUQtwwmkXjrlaLmtDBb89rT7vYce9eUYdZj5PW5aQo+i6olGBIYnCC aO4GlKwko/P0/MUT7Vp+YRMWSWS6fHF6NwkwOAwo+8KdCAA4MhjLVSB7RFT9FM6cOOrq KTSmnQKAHti5qSn4zKjhLzo6z2pEbu2acg9JL8Xr4uLAJ4kSPNyObG7GUOp5uYq9fgP6 6gqnIYbx1Du6QLSKeKZFTvbJEc1Rhob3dP1Y+bv0XFZgu9cM9oeHGPIUf19Glj98UviS GefjJ60GRhz/A+bL5KPytGwEBZWwqK0l9yKSnzEczvUE2vwkHmw+cOnICTS4pYLSB9y9 UgdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=6+a0YpMoHI8DaVx5Ai54qtCpbNtGvkzegc1rScTX2C8=; fh=W6BtihY+giecPH/ykO9e3Lz3pkSY0lDMW4ItUYZmkWA=; b=g7eXkF/N1D8Xw76tuRJt/tCaPxYGeadW9ZeOsdxA8tlWjbEFACdmDDKHSN20+Ga66t PN4xVhTtbQ11GC4KwVNWYwwr76RKbeEanX+Uubu+QbUsVwxdUqraqbw3NshYzsTiAzMe R0ch4Tn1TD4N605K6ie5MwE9yGUeqgMfMjgHohlbKSqXFoyn9jCzlmv2U1YfEojyvMAH vhr7vMcGRBRq11HXwOGJelUDdYTX6pepf6rEpNxpmTOhenmJtE4PFK8C+NUbDHGT1TLf sL3nP2Xox1mlWiXpqrdhUf+4YbHNXO9TMOrFEenoBsd1qHvPsxuGibbThEbOqwUhFeCE o+Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-645-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c17-20020ac85a91000000b00425d6277eb5si10112879qtc.592.2023.12.15.00.52.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-645-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-645-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F35911C22819 for ; Fri, 15 Dec 2023 08:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC6A1182B9; Fri, 15 Dec 2023 08:51:53 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCF8C171BB for ; Fri, 15 Dec 2023 08:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xfusion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xfusion.com Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Ss2tb3WG1zB1wtF; Fri, 15 Dec 2023 16:48:23 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 15 Dec 2023 16:51:46 +0800 Date: Fri, 15 Dec 2023 16:51:45 +0800 From: Wang Jinchao To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , , CC: , Subject: [PATCH] drm: cleanup for including Message-ID: <202312151651+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00602.xfusion.com (10.32.132.250) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785337330696896314 X-GMAIL-MSGID: 1785337330696896314 remove duplicated include merge two \#ifdef Signed-off-by: Wang Jinchao --- drivers/gpu/drm/drm_gem_shmem_helper.c | 1 - include/uapi/drm/drm.h | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index e435f986cd13..c510fac3385a 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -10,7 +10,6 @@ #include #include #include -#include #ifdef CONFIG_X86 #include diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index de723566c5ae..c7f5a21e47a2 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h @@ -35,13 +35,7 @@ #ifndef _DRM_H_ #define _DRM_H_ -#if defined(__KERNEL__) - -#include -#include -typedef unsigned int drm_handle_t; - -#elif defined(__linux__) +#if defined(__KERNEL__) || defined(__linux__) #include #include