Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2141207rwd; Mon, 15 May 2023 07:48:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bNs1k6Nf2f5L0zkWp/Z2pdEo7fQpHrcGRv3fvBa8Zjggx4ZczJvz5Qpiw/mKr2WQkUcUt X-Received: by 2002:a05:6a00:2183:b0:634:7ba3:d140 with SMTP id h3-20020a056a00218300b006347ba3d140mr41722067pfi.15.1684162118006; Mon, 15 May 2023 07:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684162117; cv=none; d=google.com; s=arc-20160816; b=wa+WLJmzLSqlzKFb15/b0T+G3F6EV4jiCjlwj43pvnA0zb96DKjjbaHAT+26eJ+S2u r3Ja6G2dN3E9CvODpjlB+3MnBaOa/xYkk3Roc4ywg/36lJl+Tmf0Ppx4ey5P01tXoF/D IyDfo4kG40m2f2AsN8bqz7hdLLK8wk0KCAg9jomn32Hyqca9QEuoisG2+m+qGirv5AJP zGD0/QKAXP9qyJYCQQcCB7frNPM+sbU17dSXx9Y8TaZXNxb73yJGo1EKIXZy0tYKAD3g B2PBcEANxeOQqaOcuRmugRzwF/VW4G8XW9oB1CHJZPwvK4kJOxnfNbezQO2WDB0pO9Uo lKaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mbrnFaoPoV6auTnbAVlCpOChJelNMoaQ+2iKpw9ZQo8=; b=Ou6zuoobD8UPl1JR3UW5pg+4zIUbeOm+TdSNGPXzsn5AdKnCa7dYTZDNblHOytCo4U xpYtgOaVnmHSG9TeAPx5pg2Kc5CK3thqC+qyJ2+Dr2H3ZACU9WIXa4NU5liqi36kzBAp DWS3p4OPuA1zzRkCwjittes+S5k9WRL9if88JSOcav4VWvtmZT9MbqPozhkvxwK/i+H8 ZPMEdgd7Ch1z5qQB4B4rOHX8OGf2hh//h5gV/KhmN599VInhpJFBAGK7KO3565w+Jax5 6IPRSjJ4m+6qYaUVSEf9zlw2SsglqZbmejad/lSj2hqAHkmvEM1KLaUQu2HfF1XNIitf WR8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WDeApaIr; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a636b03000000b0050bcbcaf7edsi16141043pgc.820.2023.05.15.07.48.22; Mon, 15 May 2023 07:48:37 -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=@linaro.org header.s=google header.b=WDeApaIr; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241839AbjEOOm1 (ORCPT + 99 others); Mon, 15 May 2023 10:42:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234481AbjEOOmX (ORCPT ); Mon, 15 May 2023 10:42:23 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A13771FCF for ; Mon, 15 May 2023 07:42:21 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f41d087b3bso98500435e9.0 for ; Mon, 15 May 2023 07:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684161740; x=1686753740; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=mbrnFaoPoV6auTnbAVlCpOChJelNMoaQ+2iKpw9ZQo8=; b=WDeApaIrAr+nh2FVyb9Z6WeHppbkgOb2aoo76JB8r2GU2gpn+xDvf7iEja0Uj0t0sq zz0SGP3rV8EL7vCCnmHRoibOo1wwNfGhKLNX6fXr7gM+0pHjPzO006kxoI+hIkXfmz5c NznoxgDGdmZD13gTlnhlFeDdUhiCFnqKSxYiKicqCHNTCElJKDOAZe/CEr5kiOuHifN1 lza/YD10Z1BKY+HNIwjR6juaMTHLKcbCnJfk3+ZWTnOv0TORHgQ5tG9z2Ut+ruizi+3+ QXLO1JoIOQenBxAoHqQprCf0TyWBUfSby8bdxjv03ewsdWp1wFbq2QMJEv9nEuPxDcPy Uweg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684161740; x=1686753740; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mbrnFaoPoV6auTnbAVlCpOChJelNMoaQ+2iKpw9ZQo8=; b=N8BZkOPbEFKJ5EibLRrulHz4OEgSENmpNwCv51ROFW8GhHu+WVejSMB69uhpDg3s5k iHTpu5978omkf2Mzl9AMaaVJ/MRcbjEp8qpqTSWZFLCxMpS5WvuQo5Zuxq4bqJl+vjBN 0gkDfwr90vRz3zrTb+P5TxUvA3nCj0PRQYKN70X19w8gKRYVNlTw00u5jPPQk8ZdCqmW mIYhdzBT6fSsI7LPEG/hMfEBci/bXqpLAGcJzImp01an1ElufYqcrpQ5CKcHVncBsInC uwH4g1AcIu35NR641Ta/fVFwQrYUvR132Rp4pSd4rP9a3Jr1Q66UpO7TmF86UyJSWz5z mcWg== X-Gm-Message-State: AC+VfDz0XuGHXc9UYsM0nfZVMdRpN8dVg7YENeZldfNwjVcSsJeXRssX 6/7x4qIOc4VQbF+OGYrcrhQajISEdCumuLsHU6I= X-Received: by 2002:a05:6000:1191:b0:306:462a:b78d with SMTP id g17-20020a056000119100b00306462ab78dmr21924023wrx.53.1684161740075; Mon, 15 May 2023 07:42:20 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id i6-20020adfdec6000000b002c70ce264bfsm32690343wrn.76.2023.05.15.07.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 07:42:18 -0700 (PDT) Date: Mon, 15 May 2023 17:42:14 +0300 From: Dan Carpenter To: Alex Deucher Cc: Su Hui , Xinhui.Pan@amd.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , christian.koenig@amd.com Subject: Re: [PATCH] drm/amdgpu: remove unnecessary (void*) conversions Message-ID: References: <20230515013428.38798-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, May 15, 2023 at 10:11:39AM -0400, Alex Deucher wrote: > On Mon, May 15, 2023 at 3:17 AM Dan Carpenter wrote: > > > > On Mon, May 15, 2023 at 09:34:28AM +0800, Su Hui wrote: > > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > > > index f60753f97ac5..c837e0bf2cfc 100644 > > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > > > @@ -1470,7 +1470,7 @@ int amdgpu_debugfs_regs_init(struct amdgpu_device *adev) > > > > > > static int amdgpu_debugfs_test_ib_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); > > > int r = 0, i; > > > > > > > This declaration block was originally written in reverse Christmas tree > > order: > > > > long long long variable name; > > medium length name; > > short name; > > > > So you probably want to change the order now that the lengths have > > changed. Same in the other places as well. > > I don't think it's possible due to the variable dependencies unless > you separate the declarations and assignments which doesn't seem like > a net win to me. Gar. I'm dumb. Sorry for the noise. regards, dan carpenter