Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp314571ybb; Thu, 28 Mar 2019 03:08:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx0OlFRn8ftpSozSf0ZpDeUmVDUrxl9Dj+d/t+fHwjsN84sw55SMB+Ok+S6q4lRyvhQvCF X-Received: by 2002:a63:2c06:: with SMTP id s6mr39603561pgs.245.1553767730414; Thu, 28 Mar 2019 03:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553767730; cv=none; d=google.com; s=arc-20160816; b=raL+oyGTsZts9EixoS8L74DbXWW/kc9lOd3u7Nz7Cnwb+H3DX44Myg+uQd3+1uykJO RVEPKNjX5e0nAmDvYFbK8LdEhwyt/N9IM4gw3Gafj5si9/gYH2VufqSZgq56N+Zf0i6I hku557NFIulDWiGUNjdjADZVyTVvmWHkF33+WjRNGDkzoU3FaMd/FzWzYXiy4lUYrMQt S7Q86zM1P3XpN8MTJ4glyLrlnO+ILYBTdU2yR5tkyLphZ7qR9Bcm605w3VgnL/UYHaH3 qRkRFon6/jnOCQlCP8ipda4O1KhzyOqCad0XAoN1a6WhATuTDaMEKQk7Nv3Yt9fNVCt7 K7yw== 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=LVgSB30Z7z758QX0U1py50jNWhVD7RuHoT5+J+luTrM=; b=fW3oim5pCZMsg9c2HBAYZxrWu7m437a+PYWl5f2hUBZw1YmCtlTFAqweipBrqhvS9r KAT4IIOQorJ11Kq4vph7yo5cdNhN6KbS9v712ptEnPEpSnDl+BDwODVryiVt3DelBUkP qWjTJs9t9UIaNfTfaMGRyiw3nXcuejyfe+tyOX5CEb0bZsF7BYFRJldP+rlB8ZMyb02H 38xc03HFjX24515SiXuJ0rs8Bk06UmHkSz66AiJdBqNKqY4ImIwZIU0+LglTPcdi+kPT atVirb02X0xgIHwz0DtOxFYjwHIfT9fsbOOY+oBxTDTtFBFJjHLTFePdLUKHEzAcux3s oXrg== 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 f1si4517896pgq.4.2019.03.28.03.08.34; Thu, 28 Mar 2019 03:08:50 -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; 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 S1726363AbfC1KHz (ORCPT + 99 others); Thu, 28 Mar 2019 06:07:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37269 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC1KHz (ORCPT ); Thu, 28 Mar 2019 06:07:55 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E8AAA80AAF; Thu, 28 Mar 2019 11:07:44 +0100 (CET) Date: Thu, 28 Mar 2019 11:07:44 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Louis Taylor , Wolfram Sang , linux-i2c@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.0 009/262] i2c: sis630: correct format strings Message-ID: <20190328100744.GB19456@atrey.karlin.mff.cuni.cz> References: <20190327180158.10245-1-sashal@kernel.org> <20190327180158.10245-9-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190327180158.10245-9-sashal@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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); > ~~~~~ ^~~~~~~~~~~~~~~~~~~~ Warning with unsupported compiler; not a "serious bug". Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html