Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5596718img; Wed, 27 Mar 2019 11:22:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK3hgeKsg6wDB4ohPR3CAXqVKdQGg5nE+vKQkbE+VTsL1BqpoWz2tJTe6JVkXGbv4PcxcY X-Received: by 2002:a17:902:4301:: with SMTP id i1mr38947074pld.307.1553710969932; Wed, 27 Mar 2019 11:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553710969; cv=none; d=google.com; s=arc-20160816; b=WObsB1LL2NkFTECRF9LRSHpv8W2IjHrZ3Q3lh7BacRCkaLagC11Esb/KlOeeWd/vXa Vrken57upOaKK6aG6YmrhTP2aD+ZyATfY8JWaMpQPGxjvubAV8J5wnkUVhzMD1ZjQnAp dZkfc/blVU18jPStvBOjmi/LLvYyfQDVVNtk1YSE+yqjatIDEVs5iqi1KZo1QK6J4ULm y4tuRClLPJAOz6KjwxxecUQHHNK06lQD6LvTqLxVNVVM6Qxn3Fsf8UJS/NZ38Azz0lfW 8PNP2aHoPLmTHn//Scbvtc9xq4mwHzXfzwFZ/BjCKVQ2X1RwjXuEsDKnzQ/lpcoOGSy0 7HIw== 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=VShsg/rltUr6qHIpMKEYg+GPt4/6Va0C/OSICdYAho8IyUKpc28KAHKsJfRJv9TBcm DL7cR+nyrlATQV8+0v7xA4UD2F/th5kobl5/KmhQMOFycF2metLz4SgjIibmmpH4iGGQ kSxUwW+YEejU1ZPUpXtdY2Bxx2KdWrbYigZn2KoCi7SjMH8c7xn0ZVgz0JNAXjaN0Qd5 Kb1x3vl4CKDkMUfRKKNfeqbxJkZmLcStItsrNZ158PYEuUU1baTgAQShmkgvKc21zwvi zstTO7DlyMddVCK5GtDvmaVmtKOYTJAUs6ZHxafgg6dyStoOM5QNGrRrboZt6JdpQMCE oAVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ki2VabKZ; 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 z20si6361279pgu.43.2019.03.27.11.22.34; Wed, 27 Mar 2019 11:22:49 -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=Ki2VabKZ; 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 S2390696AbfC0SUq (ORCPT + 99 others); Wed, 27 Mar 2019 14:20:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:38430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390457AbfC0SUp (ORCPT ); Wed, 27 Mar 2019 14:20:45 -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 D60A520651; Wed, 27 Mar 2019 18:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710844; bh=LdnaTTwEfKeySI/RW2qOf3CLXnrpU6S599i+vNalKec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ki2VabKZ1Yd8Uvr18rqCiffan+JUA9LdffWbK9S5iQUuITf+JRpZHr+fhX2LpqQ+t uqs3YuwdL6VWnnglUogSeRHJQpyu9Rt415VgQQqUg9Arpo89q7R95HKlYrOndrotH8 5m2rjkgDX96iYi8zfvV754LCGt43OBrVQCdvLtlQ= 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 4.9 03/87] i2c: sis630: correct format strings Date: Wed, 27 Mar 2019 14:19:16 -0400 Message-Id: <20190327182040.17444-3-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-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