From patchwork Tue Mar 21 18:34:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13183038 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3573C6FD1D for ; Tue, 21 Mar 2023 18:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Am+ZvVrjhrA9xMHzimvcrrfjgN93IwAPskJ6rMV3E0Y=; b=dv6xBh46nRbVoP PeuubTwc7LqwB1vycQvMjHdX9euf83ks+PziwQUkFr42kohUvgNPz1jTyrH1TcF7A0axE4XMGLbe3 jbZ8lrOxzN8AECEdHxcokM0yDyTMlb6t/Gl1yyaDUxXqM8Xz+MXiPePs4yP+omb11gpMBUk8H8fMv uSSdDWDXY2obiSnN+j8QITR09yQwgOPRBCD7ftA9F/s/OYnegkg68kr2/viXPUw0S6pYF7uQEdP+Y q9Vr2s4td4YnM7KcQ1lkHpfdDcPfy7rWJ4GUFoCmsvGgsGQVghcAjTQks3coNWa5YTSgM4Bu7iXX7 g9CSjCdW4v+IliJdp3Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pegou-00DMMe-10; Tue, 21 Mar 2023 18:34:52 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pegop-00DMLu-2z for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 18:34:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679423684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sPS9ll6drXSpZudk7wgwyOxcgefAuYnobo/FFgs8jpQ=; b=bshZwLhEkNpguKUG8gg7QC+MrFzoKa0BQ16l0C2ZzRVtTP2yv1NArKNWha4lJ2p5FZLAvk cMJUEVTSedpfqluD4Ho7V0KiFRYON/AF8zfxdsKldaZSsfzik4o0U52OqiSQPnhRgpwHrl jiUr5m8YmSwOcGqkTwqJwYmkQatFw2c= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-505-ISvR0pEpPOat1tAiqfdunA-1; Tue, 21 Mar 2023 14:34:43 -0400 X-MC-Unique: ISvR0pEpPOat1tAiqfdunA-1 Received: by mail-qk1-f197.google.com with SMTP id 187-20020a3707c4000000b007468d9a30faso2878724qkh.23 for ; Tue, 21 Mar 2023 11:34:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679423683; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sPS9ll6drXSpZudk7wgwyOxcgefAuYnobo/FFgs8jpQ=; b=Osbq+lrWLgaCroGs3XVCGtbttY1F/QtMnJ6UbEcKdAkM0Nh06EvB79CX0FnJ0J8Cm2 UDx5xHDJuq6kESM3pMvqglfCtzbjaLTPJKWxuS7owk1ZBXyxH/sbeg9bRk81ARaL/pm8 CTGeq+F1FY+PWurTQyplGBJEBs36aCsjgvyGu88D5rdWkx6Ir8eBiCpiRnxKO0fS27fi HsqS/aGiBZZc8u0zyOuo3WBwkI+HzVbFgyPJT5PKskP6gRaGlIUObU03aa1Pf8TE3PPG nutWtzWDYOS2jupJu3Vhhz6XAuwY+j/YBVdiGCHgjhUMmRVfyXqf5g6U1+F5uP5Nh4jZ 9Q4A== X-Gm-Message-State: AO0yUKUwCye0qM5Vtg+LpkENPfvY1UlIAgE9xBM2TznVL+RQXLHZCIcd hvChrzWZWER4tYTJW6yojtKGqRnM8/oyS7VZMiidqNQaW9+Ksl13Kmo6Bmy8PiQPDSsAoTRsTo+ ui3AS99Ia9wERf121sRGXDYJphPMalIIWeoQ= X-Received: by 2002:a05:622a:c:b0:3b9:bc8c:c212 with SMTP id x12-20020a05622a000c00b003b9bc8cc212mr1130915qtw.29.1679423683056; Tue, 21 Mar 2023 11:34:43 -0700 (PDT) X-Google-Smtp-Source: AK7set8Nu0137AV03cS5KH42Ha1QHglBsq3KR/srTrXB0d2sDKNVBqq1BOANC35xWCA7cmroLW7GGw== X-Received: by 2002:a05:622a:c:b0:3b9:bc8c:c212 with SMTP id x12-20020a05622a000c00b003b9bc8cc212mr1130898qtw.29.1679423682803; Tue, 21 Mar 2023 11:34:42 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id i16-20020ac871d0000000b003d9a69b4876sm8778906qtp.11.2023.03.21.11.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 11:34:42 -0700 (PDT) From: Tom Rix To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, wim@linux-watchdog.org, linux@roeck-us.net, nathan@kernel.org, ndesaulniers@google.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] watchdog: s3c2410: remove unused freq_to_wdt and s3c2410wdt_is_running functions Date: Tue, 21 Mar 2023 14:34:39 -0400 Message-Id: <20230321183439.1826823-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_113448_459451_FDCB77DC X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org clang with W=1 reports drivers/watchdog/s3c2410_wdt.c:311:35: error: unused function 'freq_to_wdt' [-Werror,-Wunused-function] static inline struct s3c2410_wdt *freq_to_wdt(struct notifier_block *nb) ^ drivers/watchdog/s3c2410_wdt.c:446:19: error: unused function 's3c2410wdt_is_running' [-Werror,-Wunused-function] static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt) ^ These functions are not used, so remove them. Signed-off-by: Tom Rix Reviewed-by: Andi Shyti Reviewed-by: Guenter Roeck --- drivers/watchdog/s3c2410_wdt.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 200ba236a72e..6394dda7a5dc 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -308,11 +308,6 @@ static inline unsigned int s3c2410wdt_max_timeout(struct s3c2410_wdt *wdt) / S3C2410_WTCON_MAXDIV); } -static inline struct s3c2410_wdt *freq_to_wdt(struct notifier_block *nb) -{ - return container_of(nb, struct s3c2410_wdt, freq_transition); -} - static int s3c2410wdt_disable_wdt_reset(struct s3c2410_wdt *wdt, bool mask) { const u32 mask_val = BIT(wdt->drv_data->mask_bit); @@ -443,11 +438,6 @@ static int s3c2410wdt_start(struct watchdog_device *wdd) return 0; } -static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt) -{ - return readl(wdt->reg_base + S3C2410_WTCON) & S3C2410_WTCON_ENABLE; -} - static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned int timeout) {