Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5724813ybg; Tue, 22 Oct 2019 07:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGVE1G4tsa5hoC/GOOdDZJhRJn44wIx/jCBNPO2wQ7FoBR5h894JIABZXmV1nLMRuu6AH/ X-Received: by 2002:a50:e40c:: with SMTP id d12mr30834204edm.256.1571754608725; Tue, 22 Oct 2019 07:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571754608; cv=none; d=google.com; s=arc-20160816; b=xFqIYTTaep3squTWsepWwE7EhhmEGk0GHuLh87f4ohM0RLpOL2nzBHStthNjIdqfv6 hnnRDNBzC2vTCyUAWBajuM4Ix+KM1MtZUzY0aXSXiQBxsUILGX7iqKj3e+4RmM2PEIqo MX/s21XCzi1Ol9P4YwhFtlWS5EtZtGpS22dYo9qf0vQCqWAnMuiJmyZ5zyhyotOsxVOY 4JuScy5AwKLVQubXwtm7no+T9PH3QHxgyOqRTLIg3u/yWuQQ4RP1HWeVZWMxakWQRwAH Rr95PEK0tHXcssbRE5YQotG4FrdBjl9jvZvgHSCG9gLtDOJqDOQdvLSpyedNkC34P0ht caBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BVXvnWQYpnAAd/NDWq8FPgzuvtNpfuHdWhEi8zYzlwU=; b=HumnuHF+wA2YZKLVhA7MFcNGNCqqYGKU5MsziqC68KIUMkyH7jpByK3QMZz4ykaKLo vj9vtjSp4F8MLAnqWIkm67sTlKUU9WVMCMZ063nbKX7IzGFwyUrZM4EuZu14CNaIhhbh GJOP4NjY0IJCsLrm0LsZouF29BRGL5WkRiQNJGnZPPhTbESX42YG+1iQUJLHbfiSrNZc 4PyaZVUtSJNa5B3VsQRZ+irGS0SfuhXLWchf2N1aCC00iXlZUCASbhgFIpfDUt2n3HCW i8Oo5rKed1Xt479OCh6AbtkYK7FSHaeMIUGgABpeu//BPKrJm8aiNAgOB/ydagh0PEir jy6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y38si7065712edb.87.2019.10.22.07.29.36; Tue, 22 Oct 2019 07:30:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727309AbfJVO2S (ORCPT + 99 others); Tue, 22 Oct 2019 10:28:18 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:45591 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbfJVO2S (ORCPT ); Tue, 22 Oct 2019 10:28:18 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MN5aF-1idDT43P41-00J6G4; Tue, 22 Oct 2019 16:27:47 +0200 From: Arnd Bergmann To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman Cc: Aaro Koskinen , Adam Ford , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , Tero Kristo , Tony Lindgren , Rob Herring , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwrng: omap3-rom - Fix unused function warnings Date: Tue, 22 Oct 2019 16:27:31 +0200 Message-Id: <20191022142741.1794378-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MI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edtj91/ Y4DQrY0KpjrLYjZTBvnPBm5EflRX5Kki1hmyk5ScEZQ8hERqOmGEl3bY1jtfZaWL6Xzxjz1Be kY25MZEJbHMalz08x1sntIC1dKasN2delAgrDfjKfL4q1mcQn5YT3bV0OOMyGq82+mIXSAWaq TqWnK6DBylwqp8GwnGLg== Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org When runtime-pm is disabled, we get a few harmless warnings: drivers/char/hw_random/omap3-rom-rng.c:65:12: error: unused function 'omap_rom_rng_runtime_suspend' [-Werror,-Wunused-function] drivers/char/hw_random/omap3-rom-rng.c:81:12: error: unused function 'omap_rom_rng_runtime_resume' [-Werror,-Wunused-function] Mark these functions as __maybe_unused so gcc can drop them silently. Fixes: 8d9d4bdc495f ("hwrng: omap3-rom - Use runtime PM instead of custom functions") Signed-off-by: Arnd Bergmann --- drivers/char/hw_random/omap3-rom-rng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c index 0b90983c95c8..e08a8887e718 100644 --- a/drivers/char/hw_random/omap3-rom-rng.c +++ b/drivers/char/hw_random/omap3-rom-rng.c @@ -62,7 +62,7 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w) return r; } -static int omap_rom_rng_runtime_suspend(struct device *dev) +static int __maybe_unused omap_rom_rng_runtime_suspend(struct device *dev) { struct omap_rom_rng *ddata; int r; @@ -78,7 +78,7 @@ static int omap_rom_rng_runtime_suspend(struct device *dev) return 0; } -static int omap_rom_rng_runtime_resume(struct device *dev) +static int __maybe_unused omap_rom_rng_runtime_resume(struct device *dev) { struct omap_rom_rng *ddata; int r; -- 2.20.0