Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4794204rwb; Mon, 8 Aug 2022 07:10:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR56TJE8WfK07ZmgmQuzqgHCy9s6a44VPyThuPABFUoM/i1iDjTMFnTLuSiiIi/AGr3Siz+n X-Received: by 2002:aa7:d053:0:b0:43d:b75:fd96 with SMTP id n19-20020aa7d053000000b0043d0b75fd96mr17777210edo.12.1659967838155; Mon, 08 Aug 2022 07:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659967838; cv=none; d=google.com; s=arc-20160816; b=BLs7HuL3zwHnlMDcb6Z36ubXODGhEdKRmSUMt6jlAWtIhEmvRcCjrG+OJAoTL6hsQ4 xwocyKFWdakeGNxAgoNIIPrhTmp2v4Ea+XLbG7tDKMDzAs7vT8vdsrQ8xTguo1TW3MIE NOJPGCmRl3QDJ6ov/mnMk3VbqIUvyC/XdkOMtlhQHLR/nu6yamoymBWwv0Ys93ljOlgG +DLtSocyQSUKRC/Xml2DMpyd4b1532/3SxDVMLtm7IE0yNxAjBBAtyYHVa9/ZSNwqysD e5M4sOqQcn8wAjzsGIITFtiPWg5RRP5LTQvaC53ub2kedqawhG0zaukZBjmULMwmUxz+ oUpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=/cwKw1oXK2BAcUZBUF1HGlwJN39sE5gD8XqZTYnWCZg=; b=ewaM2pONQmY71UtZMJgxzoemztTe7nXOLIjAJFcpjqXK1TeuEABio4R3ooqWH0hxPa YKayrF66HxhicErMVFl9SDIleTXfOl2+4ZBafBgRu98C0fOQvnEuIjQeMI/8fPv+LiVL OAlQ5RMyUBtAEJgsjY7nxlZWu5E9DpOmJLZyhrTgVJsOvHQ4CyflNSWc2Bxxf391zHlC pCKuvZ+TpyMqY74tpPaju9FsE0Vjo+tOW/gwfoVTLVlIjFXw/Gt6hpPtZQ6Q/+Avxx7R S/xz1b2z9rUL/daN+HI/1jaHyjxNzQ4PqyrMyuaau/dAm1xjmcUWPN69lrKvleh1ljlg Ai/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O8HGM/Ce"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va27-20020a17090711db00b0072a84586c63si9576304ejb.564.2022.08.08.07.10.00; Mon, 08 Aug 2022 07:10:38 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O8HGM/Ce"; 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 S243371AbiHHNbB (ORCPT + 99 others); Mon, 8 Aug 2022 09:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243341AbiHHNaw (ORCPT ); Mon, 8 Aug 2022 09:30:52 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56682C70; Mon, 8 Aug 2022 06:30:51 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id y141so8093222pfb.7; Mon, 08 Aug 2022 06:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=/cwKw1oXK2BAcUZBUF1HGlwJN39sE5gD8XqZTYnWCZg=; b=O8HGM/CeMJZUbrN9QYtc5puFOw69OoCjnsj+YVQ3CZSGm0Fvwt26dd/DtxV4JvMrCG /EUEYfVm/fdmqjEi6aC2yslfCFN+QT+UGVRt6dDw3dQypyDHuyw7zDb7wpwqoJTeOqV+ f1qgrvRtmW9gFk12p0PwxEywL5rKRUKR9BS1O3dczs9/7rUAShXHEG3m3YedQnXkv7QD wILcO3RdeZ3WeuGFMzXYOah/pmYH1cUTJtlqDDjkmHcnC7clnoBqFStbOLAIOXT2bhqG pU7o0HXjqRQLubWcm0kTag9lPTJa1uKUc9m6GaKUaJu6zuB/1PpcDJeE5VXgfxzKUu+2 S5aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=/cwKw1oXK2BAcUZBUF1HGlwJN39sE5gD8XqZTYnWCZg=; b=a2jYIhsk7Oc3PCuO6s/bAXfuXmNbgpNxvaKVe8oTx9QmYLAUfUC2GnoqEAhjfTrSMe 5GbaGTgsadm+dH6u8ngRldSxdLbKtC1Z1/GNrtazPd/N2P0cmmk+0EURl9SzPuFvmtg9 jNW8NK5V3h1vUsEuzqzDhLs7aaIZNYO5/nKUJWu1hjTv1N1chRzc6WCY6VDS0N/CBNbo 9COXCSiGnMNIgx9qjf0SxMZ0666i21Gq333TPJfZ5I+xQkTgT+6EpBmt1UejsZt9VYV2 8mlYLgTEelIFt8KHgb1efAXD8LC1J+B9oHDNgb4VZnZfmTjq4BpXFqreCvpu2lGqFQES qStA== X-Gm-Message-State: ACgBeo0bECyGNVyDWbukrIBNfnIoAbDKWycJfQnCZuO2gAhmhpXqI6Ir to3qVwyi3Pzuii1c+J+SRwg= X-Received: by 2002:a65:604f:0:b0:41a:77fe:2bbe with SMTP id a15-20020a65604f000000b0041a77fe2bbemr15196528pgp.242.1659965450820; Mon, 08 Aug 2022 06:30:50 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id bg22-20020a17090b0d9600b001f10c959aa2sm8104487pjb.42.2022.08.08.06.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 06:30:49 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 8 Aug 2022 06:30:46 -0700 From: Guenter Roeck To: sunliming Cc: wim@linux-watchdog.org, arnd@arndb.de, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, kelulanainsley@gmail.com, kernel test robot Subject: Re: [PATCH] watchdog: sa1100: make variable sa1100dog_driver static Message-ID: <20220808133046.GA2347272@roeck-us.net> References: <20220802020819.1226454-1-sunliming@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802020819.1226454-1-sunliming@kylinos.cn> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Aug 02, 2022 at 10:08:19AM +0800, sunliming wrote: > This symbol is not used outside of sa1100_wdt.c, so marks it static. > > Fixes the following warning: > > >> drivers/watchdog/sa1100_wdt.c:241:24: sparse: sparse: symbol 'sa1100dog_driver' > was not declared. Should it be static? > > Reported-by: kernel test robot > Signed-off-by: sunliming Reviewed-by: Guenter Roeck > --- > drivers/watchdog/sa1100_wdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c > index 2d0a06a158a8..82ac5d19f519 100644 > --- a/drivers/watchdog/sa1100_wdt.c > +++ b/drivers/watchdog/sa1100_wdt.c > @@ -238,7 +238,7 @@ static int sa1100dog_remove(struct platform_device *pdev) > return 0; > } > > -struct platform_driver sa1100dog_driver = { > +static struct platform_driver sa1100dog_driver = { > .driver.name = "sa1100_wdt", > .probe = sa1100dog_probe, > .remove = sa1100dog_remove, > -- > 2.25.1 >