From patchwork Fri Aug 26 08:52:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sunliming X-Patchwork-Id: 600846 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5D61ECAAA3 for ; Fri, 26 Aug 2022 08:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244907AbiHZIwy (ORCPT ); Fri, 26 Aug 2022 04:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242518AbiHZIwx (ORCPT ); Fri, 26 Aug 2022 04:52:53 -0400 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857F9D5DF7; Fri, 26 Aug 2022 01:52:52 -0700 (PDT) Received: by mail-pj1-f68.google.com with SMTP id e19so1033838pju.1; Fri, 26 Aug 2022 01:52:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=UvnkUHp7fvjOchXOHcZW1sP5sxYcVssJ0Jnc0XrW4HI=; b=xd7IvQPvwPRrdZfaCpgqnp25bM79RR1OCRbXR7U+BgmdbfjhM83rZqt6+mXlLrMSL9 s3qd/7qDAR2xDvVlD5whFQ8BgZMtCTYpIPkWdImpsLHCeuhkLRXxirhXWRjty8G6MPZA GhbJcg4uWTWakE1NmJxCCGkG6H2lJEQuK9mBQv8SPJuzM2Nbn7B8GWBq1dHOgzNlTNXQ Odng61kju9tHmIk6SpcZvamW2BoFfqfV1cb1nbMjWxkFeYUwrNNWulPzkV2OhXDP/DJn e+nm68qW+PkFhPSItfM+w0Jzqjvt+BXmWqIXNzbRCaVRLBoKsPJgMB/i8N7veFBwLIVB 871g== X-Gm-Message-State: ACgBeo3Hw9uCb9n5Chu+zk2yWs2rd3pAOmgj5u+Zf6kM3/1R/xF0pf68 5oL3a/re+uA4+S4MWikVKg== X-Google-Smtp-Source: AA6agR5v/MVYK7xa9wxbV8ZfXKmK4q3bQyLalN93d3IHhCjBSIMe4D2NwSmK8Q1wVuammwtaM/HEtw== X-Received: by 2002:a17:90b:4ad2:b0:1fa:f9d3:df64 with SMTP id mh18-20020a17090b4ad200b001faf9d3df64mr3270863pjb.19.1661503972112; Fri, 26 Aug 2022 01:52:52 -0700 (PDT) Received: from localhost.localdomain ([156.146.53.107]) by smtp.gmail.com with ESMTPSA id s12-20020a17090302cc00b00172ea8ff334sm1023067plk.7.2022.08.26.01.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 01:52:51 -0700 (PDT) From: sunliming To: wim@linux-watchdog.org, arnd@arndb.de Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, kelulanainsley@gmail.com, sunliming , kernel test robot , Guenter Roeck Subject: [PATCH RESEND] watchdog: sa1100: make variable sa1100dog_driver static Date: Fri, 26 Aug 2022 16:52:43 +0800 Message-Id: <20220826085243.95997-1-sunliming@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org 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 Acked-by: Arnd Bergmann 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,