Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5658109img; Wed, 27 Mar 2019 12:36:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRHXAbwo3Jv3GfZ/bNkY6oZMyvTPSsnChkX79E63DZI55kSHfseAPeLWxD+SiRtdJwqnCY X-Received: by 2002:a17:902:2947:: with SMTP id g65mr38573544plb.258.1553715368928; Wed, 27 Mar 2019 12:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553715368; cv=none; d=google.com; s=arc-20160816; b=NWmxu9sks2e/ieGgf6ulgOqLwuHU4pdKPtCql9UZ2HOC74DagGUlsiS0HtOI1GtZqg Xs7bM5UO5IwUmyT7ReubvJksHmXAPmZNJWKT3LclmdVJpDlddycRNWMdpqxxHDR8rbrP BjiHurlYOmYgVR+rnyx7EAp2wdf59yDgZ+kZiF/oMFftkee9HMKdeoevhbAsgN+zIYZ0 Zul2bZj9O+PXX0fOf2eNMPGysr37KHZ+FUrHo2Hqcvi2RfiE2tBTO4iskS8tB8zU543f CsA+1WD+0fjdkDaLe2g2624FZC2MfB4WqxQUZhBlUgzfL6ijrMuwaCKrYFYHzSpORAxl 2ZhQ== 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:cc:to:from :dkim-signature; bh=8dZBWTLfg4jd3JhGXsJGGlzRUB+UoccqMHYfKi4ASb8=; b=uyhPKKqs4wAOWOVooFKq1fdMq7ejM8+zuKd9Wm0ypGOfGG6y1vMDVXNPIDEx1nSZZK NjmyZX0MvlSR9anbcHmpmU75JUp3kBXkQw7h/8/GRQaJwa9epx2sV3Eog2XCpqLYWATm XbC6TGt+aY9wQGWJyvCp9sL9c7jWUpIlJl9vj59eJnd46jaQN3X4PeE6DCjANPLTLBz0 cxo5oQIxK8DdgKRbAdJFzLLUxAE2a4gfcR2NVBwY1zV3nLVsUddFzBPG9zX0T7DvquGp aGJbL50MHule+Nbq0H4vlDTmq9lfmJVEkp+RoJot2UOybKw9W3oBfCZV3Tkb1uD2puV+ wcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H+ra5LiC; 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 60si21419820plf.122.2019.03.27.12.35.53; Wed, 27 Mar 2019 12:36:08 -0700 (PDT) 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=H+ra5LiC; 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 S1729547AbfC0SCP (ORCPT + 99 others); Wed, 27 Mar 2019 14:02:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:42014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729309AbfC0SCM (ORCPT ); Wed, 27 Mar 2019 14:02:12 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF9DE2082F; Wed, 27 Mar 2019 18:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709731; bh=LdnaTTwEfKeySI/RW2qOf3CLXnrpU6S599i+vNalKec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H+ra5LiC7hq25IQh+VZCN5fn4z8zBRxl5QP/COmN0vgtOUIWa7sZHPW2fWQMQqFdp PiO5Fh8uJjcvs8xS7IeZYZ4gBt6Aygt4VKkq3UtZLv5ujXo3J2r4tFwUJK+xECV18n PHob6da10VukxpWa1l2w/SIpiaM1jOb5l7UEGOgg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Louis Taylor , Wolfram Sang , Sasha Levin , linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 009/262] i2c: sis630: correct format strings Date: Wed, 27 Mar 2019 13:57:44 -0400 Message-Id: <20190327180158.10245-9-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Louis Taylor [ Upstream commit 60f7691c624b41a05bfc3493d9b0519e7951b7ef ] When compiling with -Wformat, clang warns: 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, ^~~~~~~~~~~~~~~~~~~~ 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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ~~~~~ ^~~~~~~~~~~~~~~~~~~~ This patch fixes the format strings to use the format type for int. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor Reviewed-by: Nick Desaulniers Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-sis630.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis630.c index 1e6805b5cef2..a57aa4fe51a4 100644 --- a/drivers/i2c/busses/i2c-sis630.c +++ b/drivers/i2c/busses/i2c-sis630.c @@ -478,7 +478,7 @@ static int sis630_setup(struct pci_dev *sis630_dev) if (!request_region(smbus_base + SMB_STS, SIS630_SMB_IOREGION, sis630_driver.name)) { dev_err(&sis630_dev->dev, - "I/O Region 0x%04hx-0x%04hx for SMBus already in use.\n", + "I/O Region 0x%04x-0x%04x for SMBus already in use.\n", smbus_base + SMB_STS, smbus_base + SMB_STS + SIS630_SMB_IOREGION - 1); retval = -EBUSY; @@ -528,7 +528,7 @@ static int sis630_probe(struct pci_dev *dev, const struct pci_device_id *id) sis630_adapter.dev.parent = &dev->dev; snprintf(sis630_adapter.name, sizeof(sis630_adapter.name), - "SMBus SIS630 adapter at %04hx", smbus_base + SMB_STS); + "SMBus SIS630 adapter at %04x", smbus_base + SMB_STS); return i2c_add_adapter(&sis630_adapter); } -- 2.19.1