Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1272058ybg; Wed, 23 Oct 2019 13:06:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLMAl22aH20WtR/IjYCB6UDkWnoMjSVfjAnFOP0BAkexFzoZP55OqNOx2K92GxFVHHcop8 X-Received: by 2002:a17:906:b74f:: with SMTP id fx15mr34315219ejb.69.1571861173814; Wed, 23 Oct 2019 13:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861173; cv=none; d=google.com; s=arc-20160816; b=a3UFoLs6t3rTCeArwSwI6mK1eN8F88fkZzZ4vlYg/U9pLENmQ7K5wXmGhSRjuZJJ+u r9JGh7Jm6LdM6KJoARzveas3odVugJ7GptFtN34tecoICmyK7HdqsvxU3gxAMCo3W+CH AAoCPqIdIkgPoAXv89BLVMlHr85ocDWPCKQYUBiEVyCwX47QIV7uoopShWZphR/Rvdnm Aa04OZ6UHsMKYd52JP5iB2Aw7M9b2iWh82zH4CACWonvxCPOV89RCYxy5ACYV7E8CrI2 /barmZ1lFJfVCsHu0569dqSBJprSXNiAjlqRnsTK81h86amQS7adcGVbuBYOqvxyfTRH MZHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4iwB1pFJ+WYcAhLI264VtFX9lFO4UMgsQnEAOEDe1WM=; b=idpifong8kL+MEB/nwjs0M505La2QYmvvS6g9Yyx/x4ASHOmyOn9pgZYzv8VNIAQpp 6GCFUSBZCJonioY5myJIX+qMIEfdlPzdLMV4PhDVWtjdSoaBhp7qB5zQLftgGDMIFOf6 TMufnmWIxdADJaa7XP6TGef8B7CSzEvP35DWy1qc0ypt5lpov1oPx7RxtESbYOwB/Pqk 18JShgqLrIOh9z0ELyeUPM3y7/WXzF8aW9cUrzEbb8X/etJSSXzJK2RYt0PqjxOLpvrR QEpIfX0z8Zs5EF4xcPC5wXR1y9AtbmTDnP4L6eWfgw+RaYHGZcmZrhJnfGjpenBFa9H/ tF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KRZo+1m9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x25si14634761edr.128.2019.10.23.13.05.38; Wed, 23 Oct 2019 13:06:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KRZo+1m9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391172AbfJWNO4 (ORCPT + 99 others); Wed, 23 Oct 2019 09:14:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:48862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389590AbfJWNO4 (ORCPT ); Wed, 23 Oct 2019 09:14:56 -0400 Received: from earth.universe (monacowifi.monaco.mc [82.113.13.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D31E21906; Wed, 23 Oct 2019 13:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571836495; bh=E6T55uP3FrNoFRn1ScztDiriAouaJNVm+C23qSgGr54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KRZo+1m99h+6klvOJNcfToHQwLue1EIjCd65zwAMbXCJmUecwaD6rTEZZMg9+kYGQ X5a4WwTr2/f7Tv+/O8EavXhqMgoo2QXEcQz50Xv0uqv9yVI1aI0ToD4bwbFdEjF4FY xMiNVRLd3aBYkcz5+MbbKBcELuqBmnzcS8WN5k6k= Received: by earth.universe (Postfix, from userid 1000) id 6FA8C3C09B2; Wed, 23 Oct 2019 15:14:52 +0200 (CEST) Date: Wed, 23 Oct 2019 15:14:52 +0200 From: Sebastian Reichel To: Arnd Bergmann Cc: Matt Mackall , Herbert Xu , Greg Kroah-Hartman , Aaro Koskinen , Adam Ford , Pali =?utf-8?B?Um9ow6Fy?= , Tero Kristo , Tony Lindgren , Rob Herring , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwrng: omap3-rom - Fix unused function warnings Message-ID: <20191023131452.2rilepif7x5lpfma@earth.universe> References: <20191022142741.1794378-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sf4hte6kcc3ifsee" Content-Disposition: inline In-Reply-To: <20191022142741.1794378-1-arnd@arndb.de> User-Agent: NeoMutt/20180716 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --sf4hte6kcc3ifsee Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Oct 22, 2019 at 04:27:31PM +0200, Arnd Bergmann wrote: > When runtime-pm is disabled, we get a few harmless warnings: >=20 > drivers/char/hw_random/omap3-rom-rng.c:65:12: error: unused function 'oma= p_rom_rng_runtime_suspend' [-Werror,-Wunused-function] > drivers/char/hw_random/omap3-rom-rng.c:81:12: error: unused function 'oma= p_rom_rng_runtime_resume' [-Werror,-Wunused-function] >=20 > Mark these functions as __maybe_unused so gcc can drop them > silently. >=20 > Fixes: 8d9d4bdc495f ("hwrng: omap3-rom - Use runtime PM instead of custom= functions") > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/char/hw_random/omap3-rom-rng.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_ran= dom/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; > } > =20 > -static int omap_rom_rng_runtime_suspend(struct device *dev) > +static int __maybe_unused omap_rom_rng_runtime_suspend(struct device *de= v) > { > struct omap_rom_rng *ddata; > int r; > @@ -78,7 +78,7 @@ static int omap_rom_rng_runtime_suspend(struct device *= dev) > return 0; > } > =20 > -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; > --=20 > 2.20.0 >=20 --sf4hte6kcc3ifsee Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl2wUkQACgkQ2O7X88g7 +prkIQ//eDW6JCdb1BVZK+8ld4GNb5f9QiGBp78CEzw4Nt7b9sjiSkuODvtpwUEz LUYeSj3XJErABjT9CEteFHYmXlS4Tge9a12s4596KR1sut3960u83ZSVMD2MaFd7 jnNp9oZsiJivbZPWMqCiFPxpaV8nmvYvnyX5yMgDFrAMFFS6qk2w6ZznJctahXzs WyKmQQTOc7wFo0AsT3iomSxZsyPKjPWUcXF1fO49Anzka3+6aV5k6mmEVEhMep/r txA1zr6Fw3OKwF72r1x1bg2VcLluU4K66cm8R636W1FzujvHUgkWYr3BcUwaCqwr LlTzvVokm6Pq2L9hFVIo5WrCP2qnnlzKXu6M0BoFcSWq0sXi2slhE1J1jlg63NpG nHn/cpu8DPDfvZ/SdvDfESCGaMubItcv4EhauN/Ar8x2buf3duK4OE4ApJGUWnOV BzghZnt1iY6y1JC4Rbnl6NJYaZm54sYjMildCKza4OuoLYGeTZKEM/bqpbiVodtI Rm4nUpxCkZ2vfI2XxyDYuxmzzF/lu+1oZOTHDpVlv0OlqAJhgXzvUiuikMxS+6xQ LSAzY1uG14pfrwKAUtWoh1vG/ZVoK5UpRYyhBnAAPcXH3C4h6TKxBwGCJ0BrhLmI PfZIF2uCFofMB8Q3A8/cGxx6WGVgKWU1xkQhGr51TMgxA13+vwk= =uPzb -----END PGP SIGNATURE----- --sf4hte6kcc3ifsee--