Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6633430imb; Sat, 9 Mar 2019 01:55:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwxWMPfazS00XSTEiY/d4bUL9gHwzSKrMHF+iGd8ToMEH7bdWtrLsHGeFwcz+L80tPYrzes X-Received: by 2002:a17:902:8b83:: with SMTP id ay3mr22247381plb.1.1552125322461; Sat, 09 Mar 2019 01:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552125322; cv=none; d=google.com; s=arc-20160816; b=cm0K6oJb2TlCKopo1zBh++3c41ojRzACNAN7QoYfllqGXwZCuIY8FJgBvahzyeAf17 AgJUohgCv4p4asn0eTAFEO0f4dxAXa/JC1TsYHzHGveO/s+zqk10+iy6Sr/sJOMEvBt2 XO22zrGNgPtaMTzC/JZ1EivXvwqvYCMyYEa6jAeXCXObZbqiBsdpfnR+Cyae0SFb5XRg 0YsB+4dnjbGCoEw5T9AjmozUba4fKBGq+m1//5/kx/T52fFu8d8XkWf0zVlAYgD9+JOp RLV+kl6tVyrP1vXsjbla8+wH1vp//Jx3HBTGh9lT3+b/N2vbp5iWo0HXKxlaokU+khb+ /T4A== 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; bh=bnuO51ivehgCB+QlVLh+Jt5RD9Mz7QkPhkdy5Jbhv48=; b=yBNxC+PpUMws23wCmZz90sSrLtquWYl6sMPGcs3oGDDHZ/jc7B/UKtTuEPy4nbsPfu l2zydFBYtP5evHEEqvdjcOyF17aKR0EPaq4e8wZ7u69Uq5L+4Z23ldh28Je0IzfSN4sh r7nDnkfJY/JsaS5qLPeAbQhjg4wPIaPbWnopUTgXvD0Kqg/UMQS0fazjdr/NaCqhAYv9 NMLWvq3r4HimIpduaAuNSIbkea/HTPJ/3cqxd090ZJX83bkMyJNqty+BeLO6Hx2L1osc xyqRDQP3qsLut+UadWB6Wmcf3PTuuatJb9JOVeMbFbTUjCzjatTBlh3dAJKD5f8NE4xE 3fgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 ct12si86024plb.422.2019.03.09.01.55.06; Sat, 09 Mar 2019 01:55:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726257AbfCIJys (ORCPT + 99 others); Sat, 9 Mar 2019 04:54:48 -0500 Received: from sauhun.de ([88.99.104.3]:40092 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbfCIJys (ORCPT ); Sat, 9 Mar 2019 04:54:48 -0500 Received: from localhost (p5486CD1C.dip0.t-ipconnect.de [84.134.205.28]) by pokefinder.org (Postfix) with ESMTPSA id 7B8712E3551; Sat, 9 Mar 2019 10:54:46 +0100 (CET) Date: Sat, 9 Mar 2019 10:54:46 +0100 From: Wolfram Sang To: Louis Taylor Cc: jdelvare@suse.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org Subject: Re: [PATCH] i2c: sis630: correct format strings Message-ID: <20190309095446.GE1340@kunai> References: <20190302141836.24638-1-louis@kragniz.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YkJPYEFdoxh/AXLE" Content-Disposition: inline In-Reply-To: <20190302141836.24638-1-louis@kragniz.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YkJPYEFdoxh/AXLE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 02, 2019 at 02:18:36PM +0000, Louis Taylor wrote: > When compiling with -Wformat, clang warns: >=20 > drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type > 'unsigned short' but the argument has type 'int' [-Wformat] > smbus_base + SMB_STS, > ^~~~~~~~~~~~~~~~~~~~ >=20 > drivers/i2c/busses/i2c-sis630.c:483:4: warning: format specifies type > 'unsigned short' but the argument has type 'int' [-Wformat] > smbus_base + SMB_STS + SIS630_SMB_IOREGION - 1); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > drivers/i2c/busses/i2c-sis630.c:531:37: warning: format specifies type > 'unsigned short' but the argument has type 'int' [-Wformat] > "SMBus SIS630 adapter at %04hx", smbus_base + SMB_STS); > ~~~~~ ^~~~~~~~~~~~~~~~~~~~ >=20 > This patch fixes the format strings to use the format type for int. >=20 > Link: https://github.com/ClangBuiltLinux/linux/issues/378 > Signed-off-by: Louis Taylor Changed Jean's SoB to Rev-by and applied to for-current, thanks! --YkJPYEFdoxh/AXLE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlyDjWUACgkQFA3kzBSg Kba4BA//URuSLZFn9QiesoENmp23IEa9uj3gb+Ur18/pJ7muucYLqj+GGrZ9HdD8 NBbhUhqulclF1Cfwm354o/eoTl8JzMKUxwox0IMn93B5PdvIDxmTvmynleNVsSHp 2biWLGIdgk+jKm9ylNUdhGDcc9FDq1p82rK2stWjq9iI+A1nSkabxauzh5res+ZT NWJEkhHi0GfXC0P/Xoec1D+m0EpV7ll16QrNkHeFADntZ00y7Z3wEx9Gw7zuIwGb h0vvWp/M+Pmx5d09dOYQT/+PjR0M5q0Dq7vCVx1bqb3/G8I/jt8QX2hkjLY3IFu2 mzTMJC6hU9Wvm9zLLjXjC7osFS1QaAzx+dgGA4nTudOWlmiNsxYmGHzsr6BHCkbQ SlfnI+5WHqgKcxbgEofqHsXioawowMOJAV17YS7v2tAlarMLYRpHif5wu/nbmZxR i547iTLGtow8hgYJiYPmrd6LulJiYMKq+JLO4EQFV62LsPZGqXnvQwdr3dnOMmto 14sLgYYsbf+m4tHoo6OaidBD//MHVDHOJ6yvEZYrEHWfo03Zp8CVPH4aBMaJL7hq wKdkIc+I0a+J/39NuOhgjYeRXjzt0bl3bYlyKD5ldiQ+eNML1DhXZU6eQ/TvT2vu dGZKwJdGEYGbcweoMoT6NZjPaO7v9J+qGXZ6/qhdykGYTMteprk= =5puZ -----END PGP SIGNATURE----- --YkJPYEFdoxh/AXLE--