Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1369865rdd; Wed, 10 Jan 2024 18:16:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1fJmzMfQaGWvl7KYPxMO8wI37bQp+EfgsrboCUxNp8doO9WEFaPjQlw6A60uNwZvUHapW X-Received: by 2002:a05:6e02:20c9:b0:360:62ef:202e with SMTP id 9-20020a056e0220c900b0036062ef202emr565268ilq.19.1704939413586; Wed, 10 Jan 2024 18:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704939413; cv=none; d=google.com; s=arc-20160816; b=OSIrp3JkarmnetrICSgpFfpxWYpvded1XZizAA1461mE53rCWE14Fj1QR1dK8jbi04 tjQyE2EEeTioWxTCcnF2oeFkUWq0gl86hobu6nFbc61EoreZj7qBKy97muRXIaX8mlMS m9FJyt26x0Wrlm/RSFkYFQuRIBji9v5HfG+ggDNM/rEeoJ2DC2I8wL4MEshNJ2Fy4ufW 3y8WvlfpUJizl9JL1XONMCKu7ztq55GjKZLlO4zc6FU3/0p/NIyLSGr7WWuisNmTLknx YFmHD/q+Xa9xoxWpTYnyFhuJvNWTwcV4iWz0wmZCFpteVMWTM4yFUGJuHwPRgbe4XkBJ Lscw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=IXEHNXRuUcKt6IyGJdZD0CF1X7wE5BQBAI9i8Netnf8=; fh=Z03MfNredJAJHe7l3GEymCdaKIYBU/wWiKGPFjOgjEI=; b=qz/ahWOJ2bTfVZA+FzqeKHIfS1Zo/ovpyOJlhYWSk+8zsc72CyEBoNpoNGDPGUNtCb hvpUBZ8RkGyQ3yfeN4TSDz04RlzJJCEy1frq0sCfxVMYKzLlTVYTNpKkzt9n9aO3Qh72 ApTLt0Qbpwp9SqqAlwgFiZfGRqKt15Npx+GZK9a1qh3OYwgVxmacuITXBmr9an7QWu5s 5ChvOvzsWXiHMXeZKSUt8Fke0OlkbsTuccL3k3xIWrD2xwDRayfWrUVPiItlIt1wOOsl AOw9FB9KczVM74iKyJBpZfXhwHaPXAr5ou0YGWRIAoha0QL0laC1ah3rLg1iLNPFdJeE PKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=nbG+wwG9; spf=pass (google.com: domain of linux-kernel+bounces-22962-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j190-20020a6380c7000000b005ce1372eb68si46608pgd.808.2024.01.10.18.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 18:16:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22962-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=nbG+wwG9; spf=pass (google.com: domain of linux-kernel+bounces-22962-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 23B27286B1C for ; Thu, 11 Jan 2024 02:16:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10F192106; Thu, 11 Jan 2024 02:16:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="nbG+wwG9" Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.8]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7857020E0 for ; Thu, 11 Jan 2024 02:16:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=IXEHNXRuUcKt6IyGJd ZD0CF1X7wE5BQBAI9i8Netnf8=; b=nbG+wwG9elFeqSBa8+vCi5EROJYYOh5gfc +5DRlJSzTNnyM7xEei0IzN2FIGYeaVw09mGO5KKfrmNsfIDqjkT966u9yWf9U6Id TQro4ck9N++4njxitGozKN3DtBPAuicSoMsEKXfVHa6gHtGiuDYFhTqfQf8HTcTF NAF+p21fE= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-1 (Coremail) with SMTP id _____wD3v4WAT59lAXGcAA--.59409S2; Thu, 11 Jan 2024 10:16:33 +0800 (CST) From: chenxuebing To: christian.koenig@amd.com, alexander.deucher@amd.com, Xinhui.Pan@amd.com, daniel@ffwll.ch, airlied@gmail.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, chenxuebing Subject: [PATCH] drm/amdgpu: Clean up errors in amdgpu_drv.c Date: Thu, 11 Jan 2024 02:16:31 +0000 Message-Id: <20240111021631.5974-1-chenxb_99091@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD3v4WAT59lAXGcAA--.59409S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ury8Gw48Zw1rKr4DtF4DXFb_yoW8Jw1fpa 1rWrn3tryUZF1UtrWDZas7WF90qa48XFyxGw1DZ347Xan8JF95Wa4rt3Z5WF9rWF4fCayx tF97J3y3u3Wa9FJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UjtC7UUUUU= X-CM-SenderInfo: hfkh05lebzmiizr6ij2wof0z/1tbiHAJixWV2zz5jswAAsL Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: do not initialise globals to 0 Signed-off-by: chenxuebing --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 880137774b4e..86d829055418 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -592,7 +592,7 @@ module_param_named(timeout_period, amdgpu_watchdog_timer.period, uint, 0644); #ifdef CONFIG_DRM_AMDGPU_SI #if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE) -int amdgpu_si_support = 0; +int amdgpu_si_support; MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))"); #else int amdgpu_si_support = 1; @@ -611,7 +611,7 @@ module_param_named(si_support, amdgpu_si_support, int, 0444); #ifdef CONFIG_DRM_AMDGPU_CIK #if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE) -int amdgpu_cik_support = 0; +int amdgpu_cik_support; MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))"); #else int amdgpu_cik_support = 1; -- 2.17.1