Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1647126rwd; Mon, 15 May 2023 00:34:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72VA1RVbTOdisZIFtOeVwNXDn0dobN67J95a1TV/qzHWcrnfE58uElyB6BsqFmGYYr9zd+ X-Received: by 2002:a05:6a20:734d:b0:105:94e5:f5c5 with SMTP id v13-20020a056a20734d00b0010594e5f5c5mr5826396pzc.56.1684136049973; Mon, 15 May 2023 00:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684136049; cv=none; d=google.com; s=arc-20160816; b=ZXdUdt6J/B5AALGJi4dy60wllV+wvY9EgtPBio0wrJccgewYwP9t4Sq3fKaYGbZl50 r244N9sqdlE4vDgGpCxpHUsmjgLws6GHszg6FVxJgc7wpGxARG62iL13VuM9ZLdCDa/p 1+PI4EsbYldnsSSIAAhU2A+kLik9TFWmD6KkdQmALxlMt9w5L0yqMNa5BOqRyX2Fqsh6 6dj43O/YIcOSkFK4KHxopSffWkvrg6zr5GfFq+dhXTiducMd83fatVL0qN6xAI/Rf38U AFvGOUS68tBOPPbYaKPFvOlgBP0cXrP1i0gm7NBqIQpyoE0XBdblSzMhT2JCB5wF4HWh TEPQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MPLWP3CUj7nXbwK1eig/zxowYW15P1YnC8aJ9O61dnk=; b=jNl9FGWyhZ2qDPFgbD9w3k1S7a3bwCEmbO+7Vw4pCi/yJdpYItCW4JVqugvI6Z8+KN GiuABszFCFmCeBeTa+hAO+TJgJLu5qtGobDSUkq/3y+RpO3B5C1HO7HQ94KXCyIRMKmR szGCVsqk3FkHisYSQHthE31UiworZHoJtBgwd9oglGFurzFjNqTVEcMTiZjsM4OzSVsc 0zYV5rrMVFsP50vxEwB8/womP0KruPUTtsoWm4drhstURVKlTvaZethewEYaUlKDNmEF C4ZP+vpBheD8gzjCUlrb1q4wOMpzRZ2jWV98kosoZ6Z4jb/PS4gxmBjK+eKAh0bVnwp6 xrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xb6ItDRV; 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 e16-20020aa798d0000000b0063b7e907032si16636421pfm.271.2023.05.15.00.33.57; Mon, 15 May 2023 00:34:09 -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=Xb6ItDRV; 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 S233811AbjEOHSI (ORCPT + 99 others); Mon, 15 May 2023 03:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240770AbjEOHRu (ORCPT ); Mon, 15 May 2023 03:17:50 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456872699 for ; Mon, 15 May 2023 00:17:08 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f41dceb9c9so64522555e9.3 for ; Mon, 15 May 2023 00:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684135026; x=1686727026; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=MPLWP3CUj7nXbwK1eig/zxowYW15P1YnC8aJ9O61dnk=; b=Xb6ItDRVMlzOOtJl7GbVYbqyugpgd2ZNrxB/ClgRnmCk7h7W076rSAs1VA2Zcrb9aE gXUgfq0+SF3gsgOjxNzXuawUHKpF+yXh90bm17bBHlgo/b8hKVyem/S6U/SeCLeVSCgL L7KwQuDD0FRFRf2qQSzATtju13vPd1YIZBPwcMq1b1sQtO+k2CnO/0k6QEsNe9DunfYo srzP1gDjTGkrN0mVdVkbiv45gZxf1qH8PK6DAp3pmz6lC4c3aCaOhr3lg/bQm3us9dy5 +JIMBEG02AwoQRx21icwGZzw4EAJeTBe/7rR5zF81bk2eGCwut7dc6ahRmul00bQqfzH Z/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684135026; x=1686727026; h=in-reply-to: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=MPLWP3CUj7nXbwK1eig/zxowYW15P1YnC8aJ9O61dnk=; b=Eu6N5qR9fyl4YklI6Vwgv2LRrOsYwHoFDr1AQ3OLrgXg7FjH5bPA+kkj7fI+d27k6V mM0oGLt3204gJlrT47G/MY2s/pi0+7lPpPi6Qb7RhRoCADacoUh5tL08ex3TiJ9+4Ui6 WZRU0JV5SL+F4jO28uoF2WYpZzN1VE1yxnPn79yHyCVUlBabrZ5WJROigpj+DM6xH82Z hImKeCDnFJV6Ik4nNxL50QhMNQoflYJ17Bwk2R8cZT8J8GJaBcCa5fNpdt3Dp3jN9pE9 e2v87JT86QxZno5Ao1tW2xUK7GWbbpdU90+n1iBTwgPdshv5cItLY1FGwFVrURuHJ6gk NtVw== X-Gm-Message-State: AC+VfDyr4xupmcutDOKU/IgI4TmP8DRThj9BMEyx6qnith6W4D1rwK9d 1kwZ9U5CHwbFe8bqjgi65yM1Pw== X-Received: by 2002:a05:600c:2195:b0:3f4:e4cd:f6e with SMTP id e21-20020a05600c219500b003f4e4cd0f6emr9797595wme.17.1684135026626; Mon, 15 May 2023 00:17:06 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id t25-20020a1c7719000000b003f43f82001asm16132768wmi.31.2023.05.15.00.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 00:17:04 -0700 (PDT) Date: Mon, 15 May 2023 10:17:00 +0300 From: Dan Carpenter To: Su Hui Cc: Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org 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=us-ascii Content-Disposition: inline In-Reply-To: <20230515013428.38798-1-suhui@nfschina.com> 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 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. regards, dan carpenter