Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp400054rwi; Wed, 19 Oct 2022 23:36:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7szenlgVINsw6Y4e6HlkG5sFhX/M4YQRcofDj4Vo+ix9V8tN3ns+EjER5cnnZufvJW6J8o X-Received: by 2002:a17:907:60c7:b0:78e:1cc:57de with SMTP id hv7-20020a17090760c700b0078e01cc57demr9694669ejc.33.1666247763144; Wed, 19 Oct 2022 23:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666247763; cv=none; d=google.com; s=arc-20160816; b=cIZ/3hTUZVs6XzVhp8taK/B7Ae0d/mvTtE0Ux/6QRIpLibe+b3IMPumaVVY5TIyqJs w/mVcQsw6ugEGc4M8m1aYex8fbHtCa5qFs/1k+Gd3patl5LZu0nobyg7xRNqo6F12XTP BO1QuWnwhr8GzacpOIOykO95NY8DOkGNjgHncJOUuU5vbg0h3XI9DAtewADvpBUZOUUW Ob+frwSiYqTZLx0zy+si8+TvdVSZZ/05S39CwPerdyaXoIac/4qejIGsIvLz0V1tp3qS Gdn0F+Ktc0C9E0CcRLng4se1GkQQJiaR0I+1hIHv/YnotbFZMX2JEU7hU01rBTIpsqYb B6fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=L5uleha1nzv3NDWgFG6RrLUbIce/IAvJbRw2gmfM1nA=; b=YQG9DARn5S547r63ZJuqXK/h1bERUTxnR6c5TbJyPgvfsIlbEVVCBHUAyvhEobgG1t rYA9f6ilNuCdJd10HjsJZh6R9k3MkovlFwRXs5JozcAEiAHfARri8ClzNJcIh9MVdvXL KeT9OD2JchHZI0wGrzJgkaR1w9i1fluXxWuSLq5Pqk351fgAnIAb8KRiMFUdzvaV1xNi BFRTmNSnCxWmslx8MdAYwXpw5VaOHgjJxwK00HoHLTqQHOikAPWZpXTnVvEZB2TUjiLQ Sgdweii3w2iEyy8CxAFzLeUBBJtrNOsLl8vfhwe/3XCde+4inMUMg4iFs3Gh4IdsRpCz drfg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd12-20020a170906b34c00b0073d7111c8e7si13040758ejb.710.2022.10.19.23.35.37; Wed, 19 Oct 2022 23:36:03 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiJTF3k (ORCPT + 99 others); Thu, 20 Oct 2022 01:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbiJTF3h (ORCPT ); Thu, 20 Oct 2022 01:29:37 -0400 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D91D110 for ; Wed, 19 Oct 2022 22:29:31 -0700 (PDT) Received: by mail-ed1-f49.google.com with SMTP id a67so28222834edf.12 for ; Wed, 19 Oct 2022 22:29:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L5uleha1nzv3NDWgFG6RrLUbIce/IAvJbRw2gmfM1nA=; b=srti/7oukxRPtb2grUZHENT66I4LILCUrUfd7ojAmtn382Wyv7k5sbPiF3OVSXnh2T 3wklQxQZ2t3IUaZ2m8l/ngPT3gLsAVREUTWivdYrAcj4CwqAtX30lwGr2xyW2yr5G2+l X1Z8CvpD2XIA0Kd9pEuaKemfo0iQugYJT8LdVNgXxzQUYmMjOSksFPAowjza0dLnV3Fx DVk3QlV6MiQqAaoNk697eKgCXcrql7dAoJXRHOtsrGq6FKYghKQMyX2/Rid7ubFnOfKZ xcNp4g8dNb3IHM1ws+EZhrkd93kCPdmFDXzBbRC+OTJt/LrnOLI66hTM4AfYnfLON2rN UNSw== X-Gm-Message-State: ACrzQf1navW18LYHET0R0sGJb74Y91t+1LYl2ERWilJ2pIrfpmeBTXE7 eUnGRU6jA2HKODtGMwh3WQGl8Y7KuXrg8w== X-Received: by 2002:aa7:d651:0:b0:459:d1c:394e with SMTP id v17-20020aa7d651000000b004590d1c394emr10827647edr.10.1666243769081; Wed, 19 Oct 2022 22:29:29 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id a16-20020aa7d910000000b00459ad800bbcsm11493000edr.33.2022.10.19.22.29.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Oct 2022 22:29:28 -0700 (PDT) Message-ID: Date: Thu, 20 Oct 2022 07:29:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH -next] tty: hvc: make hvc_rtas_dev static Content-Language: en-US To: ruanjinjie , gregkh@linuxfoundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20221019064412.3759874-1-ruanjinjie@huawei.com> From: Jiri Slaby In-Reply-To: <20221019064412.3759874-1-ruanjinjie@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS 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 On 19. 10. 22, 8:44, ruanjinjie wrote: > 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? Reviewed-by: Jiri Slaby > 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; -- js suse labs