From patchwork Tue Oct 22 14:27:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 177202 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4943587ill; Tue, 22 Oct 2019 07:28:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqdyFAtzXkI00s5XMsIy/v3TF0jxspPuBdVsUBQix6LZN+bSg2dpXBxjICDPEwgSpRiL+m X-Received: by 2002:a50:8f65:: with SMTP id 92mr32589628edy.9.1571754503295; Tue, 22 Oct 2019 07:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571754503; cv=none; d=google.com; s=arc-20160816; b=pIs3WfswREy4C9syT/NFQkSL6d8Ir35Fl3yNpwoo5sJy+mLgHe9k9f9TcYT5LW6h6s 5AKRnjTb3abebjsFtEMNzztNHUFmRBhDzWKLAzhGs58H1q0Txtbodasu43WqG7Gxr5Bj t+/9h90pd6IXdd7XXfLe2nXwwHQyMS6Jsdjh41fdJTcsIme0Ll1DSsZO0jOzAguEgIwi Iceb0w7MeGk62+kPZhg/m3rrYX+fCyD6lbHP0kzEWyFnPa4n3VUV90myvPg/Ubi4GrHT 66CG/J8OmEyDd58Hzz5+x1w/5dqh444JSsvJvKT/PkIp2D1PDJycrsa01D3JYAXr+nl8 QGcQ== 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 m55si12779769edc.17.2019.10.22.07.28.23; Tue, 22 Oct 2019 07:28:23 -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 + 3 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_Roh=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 MIME-Version: 1.0 X-Provags-ID: V03:K1:PBfTuEp8ZX4Ra2Ce3a9pZMSs9SwhMX1hftuoj/HSfQ/p0GlQWT4 wMj8mkLE7kG+8bdty5J1+ElmfuOTIR4PA6vdmHFsFLC0YXcpfucBrpTcccLMbR6YXng5JVu zE7vpU4lQC0NFySxsgbnkX4cEG95HGNmQWpd8uRboG0BVC4+FQgUOv15lgD8qAWPhbEnYba tNjqA/jWVavi2TrI1wYfg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:pKRLuV2+9dI=:6cTjtlK905RHJs9ndFcqmD juozbcR0cdC4bMaUv2wwl6wuJrWELOB45PPT6II7Kef6Vub0TSU5FFQk/iKBYuLi88kUDPtK7 7vaTpiHI3qkJQIUNBziBwkg8xIAeOlU/Ze7GkCT85tdTAF8Z2p+MQaV7Sc5Ie9PIYsMu8dOyP /LqJU8oAIJ2h8wnKKVhpoJ20FFmQj2ETCkxFs4EvykGt93Lof1ORVpTH0jd5mrXT4qfoGszXI xJk3RPilXcdGBszcps4Uc0xJu48ZgoybpIkvqQdgPAO+7PdhHL3pUkrgrTX5GiHWqfBGlGaAN JoKezIHCF5sq/q2fZSLG0Cg/yC6pj/KdBZFl8ntnxBHG6OlZ/LtZjhnuO7wRxRT82rmEWOyWp r9Iy+joHgPvnzw6HjnWfqPz0aGidOqjEA1EoDMeNsSgJUf/fMVnh7DxCyBDjdvtHCNezJXdwX HyN1jg6bOGbxFbo93wMXApStWS/WTikWUdStKZS5UTgVSbSS2HwPIrK6h5t7KIEYKsY667iNK +zKbvb6uc7JS6ZwcsNJhs5i8oyJ5Zbc3dL0yLOGbtfyDSfeGcGe6iavaFuo/kr3ZO4jF/EG2n dN4AoZ3H175TBYbr9+YV8B0PCByqpNbVHMvG6XLnKY2kl8vnZnxgXu1zKZ3llRKe2EUY3jhnq AMMOCTx04fbukNEpcKqVduYCJu0qXfDLeP24tQDFceNGbTmy7tD9twpmYJSe64+A6Iedtj91/ 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(-) -- 2.20.0 Reviewed-by: Sebastian Reichel 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;