From patchwork Wed Jun 21 19:11:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 111283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4588203vqr; Wed, 21 Jun 2023 12:18:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58WY/xbydMcCM2Sl7Cqa32EeYKSKY4lqBOw+GWswWSJDA6sftzBLDd3/2xUMdUCvbeA1hp X-Received: by 2002:a17:90a:1990:b0:260:9ce1:2e82 with SMTP id 16-20020a17090a199000b002609ce12e82mr6444843pji.43.1687375110382; Wed, 21 Jun 2023 12:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687375110; cv=none; d=google.com; s=arc-20160816; b=yFYo91z/v2STwIZSk7eBU6C903G1S51AKQE3E799/pXJJNWEoJgxG+jnUq9NNDMpV1 7a38ZWYU4CANqzbWlNXzByy7nm/U6CsAhtbatK86XFjHPhRzo6h7rmz1xtsWxWGdFgJK XzAOqUU1/Y1Z440HD/RyvrmqPTKNffbXL03+2ZOwWKmwC5IUNZha8HCTA/29RvJ8bp6f kUKMJzIdv0JPDzuu9gfKgeK9B4JGQOo0q/L/z4LRQyWFAP0CNZZI+TGNwwbtF4mEBscQ cbHdKf5pK+HhxbLwQ0jiD8zED4xS6ezyU0jzmH7hRPBwJ/Cu/b3R38Rdr5i4en9R5Mg0 41JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uwUabHxkEG/aOkTK2oKDmXYzodxcFeobjmdHgpjJIyc=; b=P8Qi+A/5laxxSt+Ko1E6YnfxEFnC0HwMZhJXKIB+z5h6epXAj8OCwwZgMm3+JhWY8O 132OlstPnatzf3iwWjiyrPlqM8T61n4Aeg2uV06hewvCOgoEEjKw/geFJJlzNx9+DgMn QCl8k+PJUoIMF+aMKmpfnb5Hq1Y/0Goj759bd0QiFuhev9MUfn3bMTXE2ZhXc0w8mRGv pTDelFC9VMorZbGH7rZBc6nvogdwyRA0ReUTGQSJthQvNA5z5yPf4F3SxwXvhU2IFBAM ZreqF2TfRsCovqHi0ZKxoqGTcN873R4n7niNpJxM/uRMidkfzBgVBI3J++rIN8vRm6u1 LcSw== ARC-Authentication-Results: i=1; mx.google.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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a17090ad91000b0025e90530e49si4829901pjv.114.2023.06.21.12.18.15; Wed, 21 Jun 2023 12:18:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjFUTLq (ORCPT + 99 others); Wed, 21 Jun 2023 15:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbjFUTLo (ORCPT ); Wed, 21 Jun 2023 15:11:44 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9246A1710 for ; Wed, 21 Jun 2023 12:11:42 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8CxqMVtS5NkcEEAAA--.431S3; Thu, 22 Jun 2023 03:11:41 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Ax3c5rS5NkGRkBAA--.6502S2; Thu, 22 Jun 2023 03:11:39 +0800 (CST) From: Sui Jingfeng To: Dave Airlie , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/mgag200: Fix a warning reported by Fi.CI.SPARSE Date: Thu, 22 Jun 2023 03:11:39 +0800 Message-Id: <20230621191139.2291139-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Ax3c5rS5NkGRkBAA--.6502S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoWrKr1UtF4DWw48JFyDXF4DWrX_yoWfAFc_Ca nYyF9xZrWjvrs7Cr9rCF4xWFySv34UuF4fZ34ft3Zayr1DCr4DXF1qqr4Uur17JrWUt3Zr Ga4rtF13AF1DGosvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb28YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AK xVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7V AKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCj r7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6x IIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UMCJPUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769341043585288585?= X-GMAIL-MSGID: =?utf-8?q?1769341043585288585?= drivers/gpu/drm/mgag200/mgag200_drv.c:23:5: warning: symbol 'mgag200_modeset' was not declared. Should it be static? Found in the log of Fi.CI.SPARSE test [1] [1] https://patchwork.freedesktop.org/series/119249/ Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/mgag200/mgag200_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index 976f0ab2006b..abddf37f0ea1 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c @@ -20,7 +20,7 @@ #include "mgag200_drv.h" -int mgag200_modeset = -1; +static int mgag200_modeset = -1; MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); module_param_named(modeset, mgag200_modeset, int, 0400);