Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp834140pxb; Fri, 22 Apr 2022 12:10:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt6XoEHIX+bn9O1YKb20Y9MpmZOIjIiy0pptJrylbgcTwhtDJx60hNh0R3AxDMON6R/m2v X-Received: by 2002:a17:902:aa4b:b0:15a:44e6:4efb with SMTP id c11-20020a170902aa4b00b0015a44e64efbmr6035073plr.64.1650654642797; Fri, 22 Apr 2022 12:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650654642; cv=none; d=google.com; s=arc-20160816; b=PHj00qJkOCGe2lmxsyUwZxqWaPv2aVihJgSH8gKAHbBlNHD0TUAbhdkqq+4OCOakdz AqFVXs3yWr3UB6Ly464YuwZxS2DOOAfhk5AORiaVqaOLDU5C2PDtyPdbKIl7kRrkhgr3 l7kKXIdmZsWLU9uc1T/ovyWJCKjavK7OUTft1od0dC8eNBhOuwrcz6CQaG8TVU4GaE99 HtRAAne7/ClQbwFYV0pMtkad6aaCrpojtQgm8xMpAkhyCPby6vtKyVeXTIdQD846qkEC JMuAt1mRwzCsHH6aIp9wA6c3eZhuwBRzIw2kzbRciuGFeRrv4QOrwhlgBzjAQqxA1+FE TRMQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=4ZDmSqxvMSMnzvD66zwNXx1oaFSysSwdXwirsm7uH1U=; b=B8RUfmDNJ6KDDbOxn9YwH3peg/u1BZirN4vAOAGvRdgjgcSp/P/zlhXLdO+x6JhsYO 0DsC6zT+5579HS6vlJpCRq7mUaikclFpz3aVe2xTRoq8M4UMoE7JuUYZHuMLThZSwQab ucNLiuvYS92xgLQVMap/5VAxLV36r/fbJawgYFKXUERZsy5OE10VdQAWvdj9cgl1uvgu 44PCo7xo39x9woh4sS2UN6axaUvpSTe0pcNgV2/ClipqD1tZrjBO3ok9DByK/hwWu6ly uLUvJX3HJTXGTOhzZN0Z8qoQa2eWBPa78e3pz6HwdnwTYg6ck/ixDW35wW6vvjMNFPMH aBsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=GdUI6X2P; dkim=neutral (no key) header.i=@suse.cz header.b=w05mHH6T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l17-20020a056a00141100b004fabbccb1c3si9344542pfu.60.2022.04.22.12.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=GdUI6X2P; dkim=neutral (no key) header.i=@suse.cz header.b=w05mHH6T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 101B61A5F4C; Fri, 22 Apr 2022 11:28:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388295AbiDUKUO (ORCPT + 99 others); Thu, 21 Apr 2022 06:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388170AbiDUKT7 (ORCPT ); Thu, 21 Apr 2022 06:19:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31D822539; Thu, 21 Apr 2022 03:17:10 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 80D0E215FD; Thu, 21 Apr 2022 10:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650536229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4ZDmSqxvMSMnzvD66zwNXx1oaFSysSwdXwirsm7uH1U=; b=GdUI6X2P8dy3i3Mu4rned74AooRfbQ15jokbXg46TXhM39+Ah83oDRuCoZVCW+Qwe5ivC2 0CGoI/G+RpI2bVmxOrlPHcbYRCduFA7rpCxysh3nf7su51vnFq3tSqdcQ/M0gr53YEWyjT WNgfRv2b3YmkcjxXqqnWvoLnQot1q3U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650536229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4ZDmSqxvMSMnzvD66zwNXx1oaFSysSwdXwirsm7uH1U=; b=w05mHH6TFR+f4ofcPE4b0aaD79QbvniAyOjRKMuudWzlCYtlN0x7roK1X0sp8vLvhNezkD KZ/TMG3Dq/VwMkCg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4E8932C145; Thu, 21 Apr 2022 10:17:09 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 1/7] serial: sunplus-uart: mark sunplus_console_ports[] static Date: Thu, 21 Apr 2022 12:17:02 +0200 Message-Id: <20220421101708.5640-2-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220421101708.5640-1-jslaby@suse.cz> References: <20220421101708.5640-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 It's used only in the driver, so declare it as local to silence this correct sparse warning: sunplus-uart.c:501:26: warning: symbol 'sunplus_console_ports' was not declared. Should it be static? Signed-off-by: Jiri Slaby --- drivers/tty/serial/sunplus-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sunplus-uart.c b/drivers/tty/serial/sunplus-uart.c index 9f15922e681b..60c73662f955 100644 --- a/drivers/tty/serial/sunplus-uart.c +++ b/drivers/tty/serial/sunplus-uart.c @@ -498,7 +498,7 @@ static const struct uart_ops sunplus_uart_ops = { }; #ifdef CONFIG_SERIAL_SUNPLUS_CONSOLE -struct sunplus_uart_port *sunplus_console_ports[SUP_UART_NR]; +static struct sunplus_uart_port *sunplus_console_ports[SUP_UART_NR]; static void sunplus_uart_console_putchar(struct uart_port *port, unsigned char ch) -- 2.36.0