Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp615639rwi; Wed, 19 Oct 2022 00:06:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4z2NXFl5h5J8C/MmvplhhJPBpcBoJvk7OsSkX+Q6sxFgaXo7U+RL4McNTi1K+ZpIHDqqI+ X-Received: by 2002:a17:902:a412:b0:185:43a2:3d16 with SMTP id p18-20020a170902a41200b0018543a23d16mr7215284plq.146.1666163214010; Wed, 19 Oct 2022 00:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666163214; cv=none; d=google.com; s=arc-20160816; b=bG9AXaxdjtVcKtlPaS5LG47/xD9/X42q6/DmhV77wKhq2OAHU4mddf9ok/Uu0n/UJ6 7ZQngrDvNcFrQPz4b5aGcHJR7NyJEILSP7KGj9I+eTY4T4uL2WvB0fs0+Q3P+2iUsCtW Mf5kL+9oyLZ6EylIlO4s0s0y0SP0OrAn5cx4LHnKYQG1s53OrZq4yH6rNB6zoiMWBXnu W0HNLVPBbIK3bWZGpk6afFkTqEErcEN0Z8bUmtkyrjAgsbd7Y7Ue/7bVNWSYm5NTvim1 58jzPFvK4dUUIluhpFwTgrF/g2/IyXDvt8lRz+iyL+8P0RHIuBJhZUBm7HUQ37+ydmhT UW7Q== 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=2Sr3MGmaU+gpJSlnrX0Ca93EGu6aVwMFfBwKZtzbKDM=; b=x1b+dxjW5msA9ECa6cZkEDVZYu15ndJNb4y8VkJ7JOMYQumBE39SFiklYm4DxoUwHQ WofbJxZgEZHduVewjZ0W6IVs2L/c6QPyNIF/vZAiI4BJ+M7KvIiIpUBUnvvT3gJ4bRvf CmojCGwwx+t18UvMJSUQwNFa8TSRJV//d4WXmuhz+dzJOZXdRIaXczmu0UJMIrbE0SHq o7Wa5l9vfhGstge0bS5O+a6XjRKgtdBnzxPBvf3wqnemjhjwmsfcvh58RKwViXvAibgF d3F1ucyZLw26w5ALUiawRqwD51yB/q4oeFZizMyJmDNo/4WYgrWLm1ZwDJNfmuFQxnLz 4R/w== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a17090a1fc900b00205a9b61353si22412372pjz.36.2022.10.19.00.06.42; Wed, 19 Oct 2022 00:06:53 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230108AbiJSGrz (ORCPT + 99 others); Wed, 19 Oct 2022 02:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiJSGrx (ORCPT ); Wed, 19 Oct 2022 02:47:53 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D4868CC4 for ; Tue, 18 Oct 2022 23:47:44 -0700 (PDT) Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Msh9z2ywFzHv4H; Wed, 19 Oct 2022 14:47:35 +0800 (CST) Received: from huawei.com (10.67.175.83) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 14:47:41 +0800 From: ruanjinjie To: , , , CC: Subject: [PATCH -next] tty: hvc: make hvc_rtas_dev static Date: Wed, 19 Oct 2022 14:44:12 +0800 Message-ID: <20221019064412.3759874-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.83] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/tty/hvc/hvc_rtas.c:29:19: warning: symbol 'hvc_rtas_dev' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/tty/hvc/hvc_rtas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/hvc/hvc_rtas.c b/drivers/tty/hvc/hvc_rtas.c index e8b8c645482b..184d325abeed 100644 --- a/drivers/tty/hvc/hvc_rtas.c +++ b/drivers/tty/hvc/hvc_rtas.c @@ -26,7 +26,7 @@ #include "hvc_console.h" #define hvc_rtas_cookie 0x67781e15 -struct hvc_struct *hvc_rtas_dev; +static struct hvc_struct *hvc_rtas_dev; static int rtascons_put_char_token = RTAS_UNKNOWN_SERVICE; static int rtascons_get_char_token = RTAS_UNKNOWN_SERVICE; -- 2.25.1