Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp199787pxf; Wed, 31 Mar 2021 00:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMD8wiWWkkInU044Di+B84irqhQKbbKRr5eobMnZFEgHIdcAqYj0JKBPkehajV+qRQfZ+s X-Received: by 2002:a17:906:32d1:: with SMTP id k17mr2142638ejk.94.1617176497464; Wed, 31 Mar 2021 00:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617176497; cv=none; d=google.com; s=arc-20160816; b=BAa379H1+LWk76s8Igomf0izeGOWEica2pjY5HHNOrIlk7ffbEa+RTNwPMoCIVD1PX Ul0itdS3srDh54ZaQfIxYgQYl2VUaeElRYXMhNhZNdB2TSHyhF551sqw6JBsQU8WlxAj KvPXO1DKBn7qxB/LHdt+xeJZG1Gx1Bq4X2rq7+7To4qE6cGwISU3FdPR6r8Fi20nO/P4 oZj5GbYBJXYvwPRmM+6DW8msrsllIuntdnqx+Q/nxa9TuaEWKtXljFYGPrBkpqXqGl72 ozVXY2InLLP+NFgUWMmGBETzNYGHjVYhickbEKMgTEapECYBvJEVh+9Ra65IS3guARyd lmow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+mzHZ047Vv5rP9BzVPd9W7MJNU8u8ZG5j2Vx+kRTsI0=; b=u81nLa/nWUiCGT0M4i//FT7uTIXTnu6VBZLR9l32uthcsGkk6kIbWbqQRBcSwkpkOu CWc88LCpo5Ik1xEG5tcWpUijeVFGLu75rBrjR2bn0LQSWv+IFAZ9N9SoaOXrZtVhsXZv k0/JyPGbPRmMFYrvCRWxWY/9NAIpTYK+Cwhwnko7IPSYt5/IYg1Rl0QfxbZ1apN0/bUV Np7o6dDoe7uDGrLMKvNlr0+W00JWVCFp2myAYLeNK5ID+kA+OWwerxvQkbkOsjSDrENp OEFDRrAGkT964vZuJjOkWfmeo249JXOqqoIAPzpDtYLDGlguWVgrACcTGysOrmWycdqW Utvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu23si1157760edb.336.2021.03.31.00.41.14; Wed, 31 Mar 2021 00:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234125AbhCaHiQ (ORCPT + 99 others); Wed, 31 Mar 2021 03:38:16 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54042 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234086AbhCaHhx (ORCPT ); Wed, 31 Mar 2021 03:37:53 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 637881F45429 From: Enric Balletbo i Serra To: Nathan Chancellor , Heikki Krogerus , Arnd Bergmann , Prashant Malani , Benson Leung , Nick Desaulniers Cc: clang-built-linux@googlegroups.com, Utkarsh Patel , Guenter Roeck , Greg Kroah-Hartman , Azhar Shaikh , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/chrome: cros_ec_typec: fix clang -Wformat warning Date: Wed, 31 Mar 2021 09:37:42 +0200 Message-Id: <161717624818.4118309.17703664770897659047.b4-ty@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210322115602.4003221-1-arnd@kernel.org> References: <20210322115602.4003221-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Mar 2021 12:55:55 +0100, Arnd Bergmann wrote: > Clang warns about using the %h format modifier to truncate an > integer: > > drivers/platform/chrome/cros_ec_typec.c:1031:3: error: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Werror,-Wformat] > typec->pd_ctrl_ver); > ^~~~~~~~~~~~~~~~~~ > include/linux/dev_printk.h:131:47: note: expanded from macro 'dev_dbg' > dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \ > ~~~ ^~~~~~~~~~~ > > [...] Applied, thanks! [1/1] platform/chrome: cros_ec_typec: fix clang -Wformat warning commit: c6e939c63c80c26460b25cf1150ebe8396e8adcf Best regards, -- Enric Balletbo i Serra