Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4971790ybl; Tue, 14 Jan 2020 01:07:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyoWg0Okvwr/PvBDba90Rmi0k6WsKzTAj6Ik8bqujlTr9LkD6vHGF7sopgUkryh3LR/mOYf X-Received: by 2002:a9d:198b:: with SMTP id k11mr16908324otk.295.1578992853709; Tue, 14 Jan 2020 01:07:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578992853; cv=none; d=google.com; s=arc-20160816; b=SUUlUDlqrmVsEZbcaKsjN16VMa92UcrEe1ylpIdjD3VUkU38vfVovHj79N+2iLBkBa up8xE4JFtzHF2VAnKVsx3qSFe/jnSwrFpuwxUGmKEWMBl2H3ODA3Qlz3DiFVt3Z0A3bF UtWECiz7MYF3dvc8iq1+GD+YnZiSP/3EaZrfn2xSg5eeb+VafNRdteqzmUPSZ0ehuujO sfK0+eKbf5SrsKlmdd1/xjyFIhuRpkKplOsUC0QYiAA1vdPpSWLrnOmnMVf1rXQwjHhj 2mXgDUwrnOnRrhsg3qXabwrN3kiC7nrpBtuEQw4jpSa+x2bUctj5DTFSrdbqXbv5IDgw jLiw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ibnz+wFbSIS5JRptkyFp5a+Ptxzn69/ZgFiog5+K3CE=; b=DNpFaODHehjSSk91irX53lqhRFO7Be/DNt4rvLVqIOxZMS6fv0oQxk/Cmj7JpNRsZl 9Ui8YxGefG9R01BVntv7B55YPYi+X10LaALGcrnd9iZ685imT6CHQrcJwUhliujEvynm fIM3u9GBURZFaUucNJ9jIXJp6EWvKxz2lPupOTYFzYAL3LJ9HsyzVJEa4+rpherx/6tj UbNswn7Ceyd1vysGmMRBp+9tHMeDEnWnggjw3Txeo/vht5BjrVJggX0qjjWeYMmJBCvB DN3+Z3azYW+AjPP+/yYhYyepNkxd4MMgbe+nTg4wCaUVCWfMKnfi/7wTaoubC7Xb84kb NI4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kMbXRtDb; 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; 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 u3si8129329oif.167.2020.01.14.01.07.21; Tue, 14 Jan 2020 01:07:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kMbXRtDb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbgANJGX (ORCPT + 99 others); Tue, 14 Jan 2020 04:06:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:45276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgANJGW (ORCPT ); Tue, 14 Jan 2020 04:06:22 -0500 Received: from PC-kkoz.proceq.com (unknown [213.160.61.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 028CD2187F; Tue, 14 Jan 2020 09:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578992781; bh=1QdT5zcgMqUV9FQI8pZN69jmKogFDORtHYamRxk5D/w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kMbXRtDbiem2zAJQlpe6HEH7Wj6+6TPStJ8CTlaxOdYOqvaq3+TZ6flAKq0lkTH7b LhSzd0v0DO5K2RlNP6DKiY1VndN6F77ikf/vj/1/uFFfZv/SBHNKarqpPr5MT++82y ZqZKfBNovlw6o1U2FrRxZ27llN4WsBtGaVYL8jSs= From: Krzysztof Kozlowski To: Vladimir Zapolskiy , Sylvain Lemieux , Linus Walleij , Krzysztof Kozlowski , Arnd Bergmann , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wolfram Sang , Jean Delvare , Jarkko Nikula Subject: [PATCH v2 3/4] i2c: highlander: Use proper printk format for iomem pointer Date: Tue, 14 Jan 2020 10:06:04 +0100 Message-Id: <1578992765-1418-3-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578992765-1418-1-git-send-email-krzk@kernel.org> References: <1578992765-1418-1-git-send-email-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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): drivers/i2c/busses/i2c-highlander.c: In function ‘highlander_i2c_smbus_xfer’: drivers/i2c/busses/i2c-highlander.c:325:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=] Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. None --- drivers/i2c/busses/i2c-highlander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_adapter *adap, u16 addr, tmp |= (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; } -- 2.7.4