Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2052145rwd; Fri, 26 May 2023 00:34:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YpE2ES6NC9Z/BzO7MCFQzTfwyq52XxHstjkvcyqe2eS128TcD+th6AkevUAbCnvI0ZFYj X-Received: by 2002:a17:90b:118a:b0:24e:2248:31c with SMTP id gk10-20020a17090b118a00b0024e2248031cmr1633458pjb.22.1685086498139; Fri, 26 May 2023 00:34:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685086498; cv=pass; d=google.com; s=arc-20160816; b=LApqNnTWTdPETEBthcLPAn3OTcjpyfWnweeHjr79WaddCdsDiUd4N+hjfb057lX1zp 26ThqMOo0ctZRnR9NELbVoWLXSr3t/tVrwZaSGDSRay/2EjBGm+huPxPDZWgxuaLacJh /7QC2TwH5/JNQoeb05W1QI5SlTY2PgKmzEKDyeODtWsIgMd7ZGDHReetsawbO5y9/v0v HPrzyl660PUhzij7sm9IInB6IrYM+cQOPwGPJg210LFVzjL0SRaaEklqj09L3kZ95MtH +Un510pT290+XW9IUBPgfu5VZLF8y5Oy4MN7Kh1toWOw3nnZrfXJPyrAX7YSwq9fZIoA F8Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=qlqCrwIS9z+twgOjkjcWlXPoO26XC6+w2JI/l8UDRRY=; b=DOHNklG42ygpISqKTG3wgHw7jlipdxbZBkPYrmiwm4d403VQULJpJFeFCk6xXNrxd7 pT6ePzXaUsXG5lkr+8CaVXrLzmPJVSx+Lwguntr8TO6zvXdHk+BiggKaDXA0l70hgM1/ iKwr8fMPofQCZHqtdA2GLcUyE4J2nofsRztJFOhkyYfeX9hmlW+gqcQbBsIumghdF7I8 iBzCc9vfKwVRLeNfTv/wEjEJI3zXG2ASmnmsCLMr/6fK80lt/dxFYWTOsWK7nj3zebUz HjnIrOV09IWFlNeDu6yuW/9T9RPJQNxY0E70DETgft8Y0IdCI9WeQOXG7hlIPaFdkgG0 cgpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=e1xK9Uqh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt22-20020a17090b355600b0024686879af0si5395221pjb.169.2023.05.26.00.34.43; Fri, 26 May 2023 00:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=e1xK9Uqh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242397AbjEZH1m (ORCPT + 99 others); Fri, 26 May 2023 03:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236862AbjEZH1k (ORCPT ); Fri, 26 May 2023 03:27:40 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2072.outbound.protection.outlook.com [40.107.92.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBB4134; Fri, 26 May 2023 00:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aYv+db9IVNJduRE6Y0eJbLOqOtpmESvj9wCvCONA0Er9rh1DpgEolEGpEdnwVHL+oWkrdULh1VnMWeNN3FnB0UhF1HO5qfMwQXNwwI+wcryJtc/kg+6tpvPHdcWAPPMDZINtcQXuBeblx7HkgaevXI5rTsu44iAl/GSVFaBS/90wzV3V6dxLR7YQ6sjWOPkeifoVxOzfbaPZsUstD1APySYxel9/zssyT7YrPZ8RWxIfyY0ZaDciy1ykYIXpSpwF9zVm1wLH9wFx/uUIAr9LYOcHB1T4SWhJDh3eg36if1hXJTRLExpCE3tSg6o/sMsbAnD/x7bTfOMprIJg6a07Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qlqCrwIS9z+twgOjkjcWlXPoO26XC6+w2JI/l8UDRRY=; b=HNj9zQshwu8y//0KPQhruMarHdxawPDtHaWm5al+t873fOYNuc3qy7om0qysu0Xe2DvgLttf2Y9cBg4kZZjsBspjE504Do5cpD30BqmH6pACdt0L0I4phvyMFuyMQnZBdmkw8okmQxSnv3J4q+QDClakb7PTG4HCp3lZiftkqgeOzr8xsULfomno/7rUe4FT9xDwAerB6DKIPsqswTx9Ra8Myf8tZultyNOYYFECuS6W4MazjumhENvtaqnBYHJ3e484y1okfYFuZg7u6YRjbEZ4G6Ex5gkOdKYga/BMqFimXDomx+mU3BToJ1P/A+Lb5aygIdkzttGz2YuMDTwpvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qlqCrwIS9z+twgOjkjcWlXPoO26XC6+w2JI/l8UDRRY=; b=e1xK9Uqh+k1tAfdq0964bwPLsuedDJLeQiCkbsZUxBSYGRBNMoNx0PrsQfNb77zZDsPx1svnHEa/J1o6o1eMyjqWkA1K4AVYBNt3Hc+Trc+O29G2oSPLtA0mFagkl2MpBaX+oIQU0VaFYvTdzNkUpSkFCH1pZ4E2gPqe34LMqXc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by DM4PR12MB6615.namprd12.prod.outlook.com (2603:10b6:8:8d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15; Fri, 26 May 2023 07:27:32 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e566:9ca5:28e0:a42b]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e566:9ca5:28e0:a42b%4]) with mapi id 15.20.6433.018; Fri, 26 May 2023 07:27:32 +0000 Message-ID: <5b5c7b06-ef99-d275-3693-b2e3d114cac9@amd.com> Date: Fri, 26 May 2023 09:27:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] drm: Remove unnecessary (void*) conversions Content-Language: en-US To: Su Hui , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, evan.quan@amd.com, l.stach@pengutronix.de, linux+etnaviv@armlinux.org.uk, christian.gmeiner@gmail.com, bskeggs@redhat.com, kherbst@redhat.com, lyude@redhat.com, tomba@kernel.org, emma@anholt.net, airlied@redhat.com, kraxel@redhat.com, abrodkin@synopsys.com, ray.huang@amd.com, gurchetansingh@chromium.org, olvaffe@gmail.com, zackr@vmware.com, linux-graphics-maintainer@vmware.com, sumit.semwal@linaro.org Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, nouveau@lists.freedesktop.org, virtualization@lists.linux-foundation.org, spice-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, kernel-janitors@vger.kernel.org References: <20230526033225.1310824-1-suhui@nfschina.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20230526033225.1310824-1-suhui@nfschina.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0186.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::13) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|DM4PR12MB6615:EE_ X-MS-Office365-Filtering-Correlation-Id: 91c78d7a-0db9-491f-92b8-08db5dbaab28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cntyKeaf0LUylv9dUiN4pVghtl3sjFllDigJFxLpMJdopBTXH/yxZFBfyo3Gub47ZeIplFgjeYbj3mMTZcMzoTw98+qjC0g+fTl54Q2pGLdUOUnSS/ss05Rtt2vP44V5F2x0KaPgQarZN3FK4Tn53TDzNS0iUE/Tls3AlCJ9E3w/wwbu+PQh9N02IF/Ja234FLJxUOL7fnNKeiQwB8rbaU7Cs0qxbEq7Xl9nwskA9f5YaDLG4gfAcKgB83+wxN19v7al60FZBkXslno/2OvUQgWW7z9r9dxEK64omcD7pwB+0N62StpVyOE22xE8LfzsLNzE+Q+UdHNbBsMXildt99COaalliRNhUSHryd8rci509LEqtkxGCazCeQ2nR4nXyZceg66pLW+Sv6keVrCT0yATtP8ADFodc7eadpGx2LCOardnTsIRFXvLZ1cj/lI8jV9yy7h1CS84aN1hX9kHCOw+/VoVsFzBltnSJt4+f4Zzhkzmun9S6tb4SedPy20EUPPfNyWrDMzHJGKxClPjBwJNnawBQ6OGji0zHLKppowlR/LPZqDs6NiXwhYmLQiU2eb9rfw4dAerqwGaxX9hM0iXqHvgSW1nqQGQwubNfqpH3jK7bltKRb541vlaaNj+oORkkDbWk1z0obU5p3Zu+yetaTiHkBSjlWLOw0WzjqY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199021)(4326008)(7416002)(36756003)(8676002)(5660300002)(8936002)(66556008)(66946007)(66476007)(316002)(478600001)(31686004)(110136005)(6486002)(41300700001)(6666004)(38100700002)(921005)(2906002)(6512007)(186003)(30864003)(83380400001)(6506007)(2616005)(31696002)(86362001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZU9tMzNpbyt2Q2ZOR094UTQ5bThzdmhXaVVrOW51c2UrSFRHQ0pOYm1DM3h5?= =?utf-8?B?MU5QUjJYcHNJZkRLcm56bERRNC9td3JiMlRjbG9ETGFZYjZLemFJanEwUG9U?= =?utf-8?B?cktWOXA4a1J5RVNSQmNkZ0t0eHZqM0QwZ29ENWwrbmVYMzh0VGxhSVYyOFBW?= =?utf-8?B?U2FqVEpna1RoNDhnUGdOcUdreHZaRlpBdEJrK2hQc1JpMTNQMFVXWlBoSmdV?= =?utf-8?B?VkNPVHY0Q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lKSjd6RHRNamVO?= =?utf-8?B?TnBmYzRSeHIyR3JBd3pjY2hQNDAwTVhuM0xXNEJwTlk3cjZ0dW95QmpIUXlS?= =?utf-8?B?bHhtRFVXVUQ3RE5lbE9YZVBNM1R5TlpPL2tJRU5qK2FPUzFWTzlvZ0ZVenZT?= =?utf-8?Q?Tns36qVVX5qwUwl5/eDi2zujO/UfuihOvOrh+Kbo16ls?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91c78d7a-0db9-491f-92b8-08db5dbaab28 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2023 07:27:32.2476 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l8jyQr1zHk7Y5ehS67v5Ju8wlz/8amvecN3eo4KVd1O85TLDdXh8nvkG+VVjyWcD X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6615 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 26.05.23 um 05:32 schrieb Su Hui: > Pointer variables of (void*) type do not require type cast. Please split that up by subsystem/driver. Taking it through the misc tree might just cause merge conflicts. Christian. > > Signed-off-by: Su Hui > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +- > drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +- > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 ++-- > drivers/gpu/drm/nouveau/nouveau_debugfs.c | 2 +- > drivers/gpu/drm/omapdrm/omap_debugfs.c | 6 +++--- > drivers/gpu/drm/pl111/pl111_debugfs.c | 2 +- > drivers/gpu/drm/qxl/qxl_debugfs.c | 4 ++-- > drivers/gpu/drm/tiny/arcpgu.c | 2 +- > drivers/gpu/drm/ttm/ttm_resource.c | 3 +-- > drivers/gpu/drm/virtio/virtgpu_debugfs.c | 6 +++--- > drivers/gpu/drm/vmwgfx/ttm_object.c | 5 ++--- > drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 2 +- > 12 files changed, 19 insertions(+), 21 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c > index 827fcb4fb3b3..8a2c39927167 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c > @@ -3312,7 +3312,7 @@ static ssize_t dtn_log_write( > > static int mst_topo_show(struct seq_file *m, void *unused) > { > - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; > + struct amdgpu_device *adev = m->private; > struct drm_device *dev = adev_to_drm(adev); > struct drm_connector *connector; > struct drm_connector_list_iter conn_iter; > diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c > index 58c2246918fd..e6c870bd307b 100644 > --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c > +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c > @@ -3671,7 +3671,7 @@ static void amdgpu_parse_cg_state(struct seq_file *m, u64 flags) > > static int amdgpu_debugfs_pm_info_show(struct seq_file *m, void *unused) > { > - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; > + struct amdgpu_device *adev = m->private; > struct drm_device *dev = adev_to_drm(adev); > u64 flags = 0; > int r; > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > index 31a7f59ccb49..dd57f7164e9a 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c > @@ -198,7 +198,7 @@ static int etnaviv_ring_show(struct etnaviv_gpu *gpu, struct seq_file *m) > > static int show_unlocked(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > int (*show)(struct drm_device *dev, struct seq_file *m) = > node->info_ent->data; > @@ -208,7 +208,7 @@ static int show_unlocked(struct seq_file *m, void *arg) > > static int show_each_gpu(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > struct etnaviv_drm_private *priv = dev->dev_private; > struct etnaviv_gpu *gpu; > diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c > index 2a36d1ca8fda..96b59d5d68ed 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c > +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c > @@ -37,7 +37,7 @@ > static int > nouveau_debugfs_vbios_image(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct nouveau_drm *drm = nouveau_drm(node->minor->dev); > int i; > > diff --git a/drivers/gpu/drm/omapdrm/omap_debugfs.c b/drivers/gpu/drm/omapdrm/omap_debugfs.c > index a3d470468e5b..a94ce502e152 100644 > --- a/drivers/gpu/drm/omapdrm/omap_debugfs.c > +++ b/drivers/gpu/drm/omapdrm/omap_debugfs.c > @@ -19,7 +19,7 @@ > > static int gem_show(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > struct omap_drm_private *priv = dev->dev_private; > > @@ -33,7 +33,7 @@ static int gem_show(struct seq_file *m, void *arg) > > static int mm_show(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > struct drm_printer p = drm_seq_file_printer(m); > > @@ -45,7 +45,7 @@ static int mm_show(struct seq_file *m, void *arg) > #ifdef CONFIG_DRM_FBDEV_EMULATION > static int fb_show(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > struct drm_fb_helper *helper = dev->fb_helper; > struct drm_framebuffer *fb; > diff --git a/drivers/gpu/drm/pl111/pl111_debugfs.c b/drivers/gpu/drm/pl111/pl111_debugfs.c > index 6744fa16f464..4df03ec5d368 100644 > --- a/drivers/gpu/drm/pl111/pl111_debugfs.c > +++ b/drivers/gpu/drm/pl111/pl111_debugfs.c > @@ -32,7 +32,7 @@ static const struct { > > static int pl111_debugfs_regs(struct seq_file *m, void *unused) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct drm_device *dev = node->minor->dev; > struct pl111_drm_dev_private *priv = dev->dev_private; > int i; > diff --git a/drivers/gpu/drm/qxl/qxl_debugfs.c b/drivers/gpu/drm/qxl/qxl_debugfs.c > index 2d9ed3b94574..5b4fe3049529 100644 > --- a/drivers/gpu/drm/qxl/qxl_debugfs.c > +++ b/drivers/gpu/drm/qxl/qxl_debugfs.c > @@ -38,7 +38,7 @@ > static int > qxl_debugfs_irq_received(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct qxl_device *qdev = to_qxl(node->minor->dev); > > seq_printf(m, "%d\n", atomic_read(&qdev->irq_received)); > @@ -52,7 +52,7 @@ qxl_debugfs_irq_received(struct seq_file *m, void *data) > static int > qxl_debugfs_buffers_info(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct qxl_device *qdev = to_qxl(node->minor->dev); > struct qxl_bo *bo; > > diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c > index e5b10e41554a..09f728355aba 100644 > --- a/drivers/gpu/drm/tiny/arcpgu.c > +++ b/drivers/gpu/drm/tiny/arcpgu.c > @@ -338,7 +338,7 @@ static int arcpgu_unload(struct drm_device *drm) > #ifdef CONFIG_DEBUG_FS > static int arcpgu_show_pxlclock(struct seq_file *m, void *arg) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct drm_device *drm = node->minor->dev; > struct arcpgu_drm_private *arcpgu = dev_to_arcpgu(drm); > unsigned long clkrate = clk_get_rate(arcpgu->clk); > diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c > index 7333f7a87a2f..540faabcf8a4 100644 > --- a/drivers/gpu/drm/ttm/ttm_resource.c > +++ b/drivers/gpu/drm/ttm/ttm_resource.c > @@ -727,9 +727,8 @@ ttm_kmap_iter_linear_io_fini(struct ttm_kmap_iter_linear_io *iter_io, > > static int ttm_resource_manager_show(struct seq_file *m, void *unused) > { > - struct ttm_resource_manager *man = > - (struct ttm_resource_manager *)m->private; > struct drm_printer p = drm_seq_file_printer(m); > + struct ttm_resource_manager *man = m->private; > ttm_resource_manager_debug(man, &p); > return 0; > } > diff --git a/drivers/gpu/drm/virtio/virtgpu_debugfs.c b/drivers/gpu/drm/virtio/virtgpu_debugfs.c > index 853dd9aa397e..577691af9707 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_debugfs.c > +++ b/drivers/gpu/drm/virtio/virtgpu_debugfs.c > @@ -43,7 +43,7 @@ static void virtio_gpu_add_int(struct seq_file *m, const char *name, int value) > > static int virtio_gpu_features(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; > > virtio_gpu_add_bool(m, "virgl", vgdev->has_virgl_3d); > @@ -68,7 +68,7 @@ static int virtio_gpu_features(struct seq_file *m, void *data) > static int > virtio_gpu_debugfs_irq_info(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_info_node *node = m->private; > struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; > > seq_printf(m, "fence %llu %lld\n", > @@ -80,7 +80,7 @@ virtio_gpu_debugfs_irq_info(struct seq_file *m, void *data) > static int > virtio_gpu_debugfs_host_visible_mm(struct seq_file *m, void *data) > { > - struct drm_info_node *node = (struct drm_info_node *)m->private; > + struct drm_info_node *node = m->private; > struct virtio_gpu_device *vgdev = node->minor->dev->dev_private; > struct drm_printer p; > > diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.c b/drivers/gpu/drm/vmwgfx/ttm_object.c > index ddf8373c1d77..e9e3cc8f5b49 100644 > --- a/drivers/gpu/drm/vmwgfx/ttm_object.c > +++ b/drivers/gpu/drm/vmwgfx/ttm_object.c > @@ -513,8 +513,7 @@ static void ttm_prime_refcount_release(struct ttm_base_object **p_base) > */ > static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf) > { > - struct ttm_prime_object *prime = > - (struct ttm_prime_object *) dma_buf->priv; > + struct ttm_prime_object *prime = dma_buf->priv; > struct ttm_base_object *base = &prime->base; > struct ttm_object_device *tdev = base->tfile->tdev; > > @@ -554,7 +553,7 @@ int ttm_prime_fd_to_handle(struct ttm_object_file *tfile, > if (dma_buf->ops != &tdev->ops) > return -ENOSYS; > > - prime = (struct ttm_prime_object *) dma_buf->priv; > + prime = dma_buf->priv; > base = &prime->base; > *handle = base->handle; > ret = ttm_ref_object_add(tfile, base, NULL, false); > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c > index c0da89e16e6f..3267a4e61382 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gem.c > @@ -220,7 +220,7 @@ static void vmw_bo_print_info(int id, struct vmw_bo *bo, struct seq_file *m) > > static int vmw_debugfs_gem_info_show(struct seq_file *m, void *unused) > { > - struct vmw_private *vdev = (struct vmw_private *)m->private; > + struct vmw_private *vdev = m->private; > struct drm_device *dev = &vdev->drm; > struct drm_file *file; > int r;