Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp570577img; Thu, 28 Feb 2019 04:29:57 -0800 (PST) X-Google-Smtp-Source: AHgI3Iba1wjPx4ryhAJicvADO6FSPN0zeEaxCNhVcvgkyMVDNPDDHxAxqRHRu1nmoXsU6Srofcsv X-Received: by 2002:a63:29c9:: with SMTP id p192mr8301365pgp.176.1551356997400; Thu, 28 Feb 2019 04:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356997; cv=none; d=google.com; s=arc-20160816; b=hS5XrMdHpbHAUEXTpidcARy0YlXR+3/AMehqKi3YD78yBQVlR5oETa+mu5xceVaoxH oySDJfZylVzLQ7fCXpGSPzrxEPRb4TDu0roe/xY+ZdT9GX6no3G0dCMujHBMnXEXMJEN CSLzpGGTPw6bTbJDsbAWoG2mfc6oC9imwu6l6fQ03LfQ+1A3u8LX2HL6Ge8qs+KVRMwL 1jEuiZkVpJlD+PGYMQyZJ8JQzqvIepMNEJnbQ+sNKu/PV+Ix6lOeToBmzlvXmt/Zg8F+ b7Sbw19rMRhcXcJI+MhrJ/n0dy82TfZSNB8YVzijlbZZSh9Zm/1b/XL1YjoJCkjdDRAk pXtQ== 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=AHorr1ZlR75Xo7d2v5K+mRGtoatjeXhGXf2KD/PH1JI=; b=REPCwqrfa/IBb2Fy03EJCm6IKz6geG9acbddhmS8yxrj4o3xOuxYB0LGsmmQxdS/kL 9hZPivSSA5d0kvxvx5F+z2hNpVeTcxVZvk9lc9MxuAdFsnovdVNmzEI5ZDQ4dDNHs28+ cklwrGFuv0hRSPqs4U+cQNgUrPdbzf+U+182Q2Uc28lYFgKzasG9Ulj5QBz3dcUS/K6G taQ3lUbl6VO4wl/wRMojq9CVBzhYTvvkTFjsSdGBJEma0w9n59prqA4ktDeWMSS3lXHZ wfld1TYpCjlldST/MBUSckgZf+Fekoqcbxhp5IRLs0txEHBs9ZMA00m2Sc2FFNcJRSeT 51Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b="Bwa//9ZK"; 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 z185si17237848pgb.222.2019.02.28.04.29.42; Thu, 28 Feb 2019 04:29:57 -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=@kragniz.eu header.s=google header.b="Bwa//9ZK"; 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 S1732468AbfB1M2Y (ORCPT + 99 others); Thu, 28 Feb 2019 07:28:24 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35803 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732319AbfB1M2V (ORCPT ); Thu, 28 Feb 2019 07:28:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id t18so21752309wrx.2 for ; Thu, 28 Feb 2019 04:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kragniz.eu; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AHorr1ZlR75Xo7d2v5K+mRGtoatjeXhGXf2KD/PH1JI=; b=Bwa//9ZK5E5XJwlJ2GyBNfeEBpqaE34kTNiW8whqHng71syFwOyNjugihptAv3Ozd/ da4dSQ6UcQZrq06y/Lx6zv9hb6Jf1h739saBI6dgZGXksx5DfdKkaRzbWIhqEHk+9MSk vZbqTLOT12Ydio45RNc0twYd1Xpv0ISRxVeeU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AHorr1ZlR75Xo7d2v5K+mRGtoatjeXhGXf2KD/PH1JI=; b=ntnm4rEEPF9SqLHBJitexKtPqdOdF2hH7R/mMFEilR1k6oT28ypThan+lSTrUrPxRS ghSVbDXxmuERxMgGmpfXuWRgoX/AB1YamW8wHZFkRSF/NmRgFF3I7FBINPaX+6PdYv1c 71SY3MkTHh4Tyz71R/OK6eU/aU5NxdX4xD1H1WeSUmmqPjxK6SGFYxk8FLsU4UlscWwy ynMiYhFNgi6vabhobsW9sSdpMgEUnN7j+OfMwezDnn4JsLxR2iVsY7oVpDCaBBH7StmT mG+gWRDCJ6JlQxYyYfyfTVPkSvMuIaCdwiu+1791ojqOUMbJjwZpCQF4HTg3EcF2Q6AA ojkg== X-Gm-Message-State: APjAAAW5T88lfvslf/JcObSHiEcw7kM8UYsD3LY4dqId0wL3KDtWXvQC Q/ShLOCXXH5NgxULtyfzAjkXAQ== X-Received: by 2002:a5d:5681:: with SMTP id f1mr6206056wrv.95.1551356899270; Thu, 28 Feb 2019 04:28:19 -0800 (PST) Received: from localhost.localdomain ([5.148.119.11]) by smtp.gmail.com with ESMTPSA id a2sm12673753wrr.60.2019.02.28.04.28.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 04:28:18 -0800 (PST) From: Louis Taylor To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org, Louis Taylor Subject: [PATCH v2] wusb: use correct format characters Date: Thu, 28 Feb 2019 12:24:17 +0000 Message-Id: <20190228122417.9318-1-louis@kragniz.eu> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228115256.5446-1-louis@kragniz.eu> References: <20190228115256.5446-1-louis@kragniz.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When compiling with -Wformat, clang warns: ./include/linux/usb/wusb.h:245:5: warning: format specifies type 'unsigned short' but the argument has type 'u8' (aka 'unsigned char') [-Wformat] ckhdid->data[0], ckhdid->data[1], ^~~~~~~~~~~~~~~ ckhdid->data is unconditionally defined as `u8 data[16]`, so this patch updates the format characters to the correct one for unsigned char types. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor --- include/linux/usb/wusb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h index 9e4a3213f2c2..625366d3499e 100644 --- a/include/linux/usb/wusb.h +++ b/include/linux/usb/wusb.h @@ -240,8 +240,8 @@ static inline size_t ckhdid_printf(char *pr_ckhdid, size_t size, const struct wusb_ckhdid *ckhdid) { return scnprintf(pr_ckhdid, size, - "%02hx %02hx %02hx %02hx %02hx %02hx %02hx %02hx " - "%02hx %02hx %02hx %02hx %02hx %02hx %02hx %02hx", + "%02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx " + "%02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx", ckhdid->data[0], ckhdid->data[1], ckhdid->data[2], ckhdid->data[3], ckhdid->data[4], ckhdid->data[5], -- 2.20.1