From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH v2 3/4] i2c: highlander: Use proper printk format for iomem pointer Date: Wed, 15 Jan 2020 18:43:37 +0100 Message-ID: <20200115174337.GH1239@ninjato> References: <1578992765-1418-1-git-send-email-krzk@kernel.org> <1578992765-1418-3-git-send-email-krzk@kernel.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2754474161084713773==" Return-path: In-Reply-To: <1578992765-1418-3-git-send-email-krzk@kernel.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane-mx.org@lists.infradead.org To: Krzysztof Kozlowski Cc: Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, Jean Delvare , Vladimir Zapolskiy , Jarkko Nikula , linux-i2c@vger.kernel.org, Sylvain Lemieux , linux-arm-kernel@lists.infradead.org List-Id: linux-i2c@vger.kernel.org --===============2754474161084713773== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rCwQ2Y43eQY6RBgR" Content-Disposition: inline --rCwQ2Y43eQY6RBgR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 14, 2020 at 10:06:04AM +0100, Krzysztof Kozlowski wrote: > iomem pointers should be printed with pointer format to hide the > actual value and fix warnings when compiling on 64-bit platform (e.g. with > COMPILE_TEST): >=20 > drivers/i2c/busses/i2c-highlander.c: In function =E2=80=98highlander_= i2c_smbus_xfer=E2=80=99: > drivers/i2c/busses/i2c-highlander.c:325:22: warning: > format =E2=80=98%d=E2=80=99 expects argument of type =E2=80=98int= =E2=80=99, > but argument 3 has type =E2=80=98size_t {aka long unsigned int}= =E2=80=99 [-Wformat=3D] >=20 > Signed-off-by: Krzysztof Kozlowski Wrong commit message. buf_len is size_t and not an iomem pointer. > --- >=20 > Changes since v1: > 1. None > --- > drivers/i2c/busses/i2c-highlander.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/i2c/busses/i2c-highlander.c b/drivers/i2c/busses/i2c= -highlander.c > index abfe3094c047..803dad70e2a7 100644 > --- a/drivers/i2c/busses/i2c-highlander.c > +++ b/drivers/i2c/busses/i2c-highlander.c > @@ -322,7 +322,7 @@ static int highlander_i2c_smbus_xfer(struct i2c_adapt= er *adap, u16 addr, > tmp |=3D (SMMR_MODE0 | SMMR_MODE1); > break; > default: > - dev_err(dev->dev, "unsupported xfer size %d\n", dev->buf_len); > + dev_err(dev->dev, "unsupported xfer size %zu\n", dev->buf_len); > return -EINVAL; > } > =20 > --=20 > 2.7.4 >=20 --rCwQ2Y43eQY6RBgR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl4fT0kACgkQFA3kzBSg KbbwjhAAk6+rX4a8YIXUi9hKqaLS8QYdLjBJt8KuuQUFUjDSZVwgkuGtOu60Y+ru AB+/Io9mdeCkPFmL1PNn1kTrQMLmYiu8yuZL1Ppe4PgZN4J5ZAXaqqM8YbYCl7Wn F+eY2OIgWJakkMSEb6wsEDFtD1OzydFut/0LKNY83IxkL+VNR4WI8IfPLZtTlTWE Pa1fnN4AuXlfTB6LIWE9J4LWnDOCYjtiJvYu1PePASrFadtm/Al5PBILzYML5ZsM S3B8kDMYA1k9E0IkPzx1qF0NTlUfrKZ4+QE+9GV5t3ONGIfRXqvsEWCB9BqKqkS1 1gd2cnEbDMDaMBzL1rDrMFE6Kb/E3cMhIxHIxyzx946BHN26RH+ZW7+5+BZ7S0bN 22kOrhei2l5OByVh/8gwftYg2S//DlDX5NnDloaKMlMp4mqcF868okMj0QKlwzTn jCgrwjXCEiex0aynBAchp87UWCOOjnbdbxm81jw0sAVEASvvydR5wwBxzXYEOkcf 0OfICAwJsusdZEdznYT3jQF8z/mqp87iB1t+ZtdDYbXd7CG+gC6Z6sz1d4yDeIc/ jYkxDykxfklxP04MluX4vcp/btcpZLek1BDZcHeKFz8RY0betjQUSrDd9ybVMO/+ QhmI0MXmKYK8pDo7UMGHAESg43lOKEv168eree4Qido50G0TzFU= =Z5e7 -----END PGP SIGNATURE----- --rCwQ2Y43eQY6RBgR-- --===============2754474161084713773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2754474161084713773==--