From patchwork Thu May 18 20:21:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 100133 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp8364qge; Thu, 18 May 2017 13:23:47 -0700 (PDT) X-Received: by 10.84.217.206 with SMTP id d14mr7158154plj.140.1495139027389; Thu, 18 May 2017 13:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495139027; cv=none; d=google.com; s=arc-20160816; b=y9BYbKITQH+sCXaSFx9gA46dgfcE9eNnezy/N5aIFOVQcIMI7GJ8ECMwEdpBEEFD5W Qsd1mtcxPQ/ttOq6V972dSuGKRRGkvQTfs7JVzfEtDOq+I7EJJ93loWYMe8+yQ17+4Hc 475ZcqyLMPaHt+cvaVTg8WVBpFFOnLHemiqOM/B5lpO2EF7hOEDeIpQHv4MQrZu5+yED gELoHwU7D5G4/w4/TEDYELN8hFiwZ3WJNKvktTJQmmja+aYqBpsBNypcdhr1aOjuPsS7 EIE22iTXdPqDDviyUrd5XYbhTp6Pcf6g7no4cz0czBdbDQZ4AsAzfCapBGcT1ypAEns5 A4hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=sPseHWdpcGVtgZZJJiH8rONIt0kmU9Lf2EOcA5Uv1DM=; b=tP7DSbz4jk9CrT8VgbfrtZd5mLU7tB5RCqlqN0rrN5jvm8UrcOe5C7NuSGid91+ayl bSSS8e0JFb4rbZMRdOoegbK49NHdDA2qdLEsRbyBLhEAnp+kHdSkrays0/aSsO6Q+0PM TABI26ZUBALU1AFnM5pR8Xvjv5Chj/WjIKGGPxxKwzFNKnY/sCGtZqp1M3evN6cWMNKl l3/56HArb4On8Sw5T9e2cAPncqqiqGGnCqhUfWxcBRXeqIJL/OuP432hinp7I3fSjP3r sSROpGOpptDD3fXnjSGhaIOXXRA9HdLq65klsB4FUplQbA5lh54t86F3eYQADmVOyAzP BCig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-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 g13si6211045plk.247.2017.05.18.13.23.47 for ; Thu, 18 May 2017 13:23:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753965AbdERUXa (ORCPT ); Thu, 18 May 2017 16:23:30 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:58492 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053AbdERUWi (ORCPT ); Thu, 18 May 2017 16:22:38 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0LhGOe-1dpEgQ0H1k-00mdl0; Thu, 18 May 2017 22:22:30 +0200 From: Arnd Bergmann To: Srinivas Pandruvada , Jiri Kosina Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de Subject: [PATCH v2 4/5] HID: intel_ish-hid: fix format string for size_t Date: Thu, 18 May 2017 22:21:43 +0200 Message-Id: <20170518202144.3482304-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170518202144.3482304-1-arnd@arndb.de> References: <20170518202144.3482304-1-arnd@arndb.de> X-Provags-ID: V03:K0:+xuMthQhX+dBShQwirP5TmOS9l3pL8l2MaTD5tRH0Eudb1r9RN2 Fewdu3Yb3bPDuebwK6P4MhB9vTiPdO4BDN4YkhC3Xfgl7NQHMpi5DWwTakE/T3+NLVKg8z5 7iBLXAz19w6rhnuziLXYCGLzUJbzrQiN4F/j/K7NfwgRgm8dHGO5cVkj4ncigSJmmSMXaZN lR9vquwN/w7kiDNTMdrfA== X-UI-Out-Filterresults: notjunk:1; V01:K0:dkVFRKlA8pQ=:ZWnDS2v7zKWnmdEU6tikTr XCJ55QP4+koimU4vwve7LLY0h1bpcM3w2YBGG1+865jy+4g3YP62TEOa4fuhO8j/NBh6EKOrd Nrm62D/JTFx2H6+dE2qomY6a2jT4iIriZaoUJf9EvBMsIEGFgzauwdwUJagOddSTcjVW82ps8 A3MKxRXukqVHOBuiU7Ib/0rnIJLRBjBC5Q/r5olyC/JGbmDfXHIfhcFQdY5oD3V27UOLk/wHP efz3q1oZRDK7D/VbbcdLX1yFvQfzpyJHk+2ZXO+o0XjUYJYTeQzFoCzhHznZ5FwiJjj3lmKpE Zw/URXEvN8nOUzWc/aJ7hHIRxyyIhQYzUA55Il/qeuJ7vMCTtH9k3DoMfRoOvATdCPwFvjgKi f0bjz/wHD6njNyKrW9nS9/Hvbrf9stowys4S5UIjoOZTmAgkWGssNQwdojjaoSnnJiybxWWpx Uk3DMhfy3Iq0EkzeUr0tNeXyRHQX1bzlR8MZ8uWcK4QpGltZ1prCWt3RDI117vWHuso2bSspZ eDucz/WCAHWWY6oJWhHkL1tijHAEYzgygkscivbXV3ljjA2hNIU7sCxQxear5Xq0vxLXD0zAZ Z9NqO5KPPy/GFBKED6Dshsp9d0uouhO+fyj/J90oDw0wRxxJz6OB+IvDWZa3R/E/WmVluce1K 8miutOUuMr8gA6VZfm8EhtgsdLTQuRBE6/dhLHYvCyso4HiSDUJ7ZbCI8vmsid9iO+ys= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org When building for 32-bit architectures, we get a harmless warning: intel-ish-hid/ishtp-hid-client.c: In function 'process_recv': intel-ish-hid/ishtp-hid-client.c:139:7: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Werror=format=] This changes the format string to print size_t variables using %zu instead. Signed-off-by: Arnd Bergmann --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hid/intel-ish-hid/ishtp-hid-client.c b/drivers/hid/intel-ish-hid/ishtp-hid-client.c index 5c643d7a07b2..157b44aacdff 100644 --- a/drivers/hid/intel-ish-hid/ishtp-hid-client.c +++ b/drivers/hid/intel-ish-hid/ishtp-hid-client.c @@ -136,10 +136,9 @@ static void process_recv(struct ishtp_cl *hid_ishtp_cl, void *recv_buf, if (1 + sizeof(struct device_info) * i >= payload_len) { dev_err(&client_data->cl_device->dev, - "[hid-ish]: [ENUM_DEVICES]: content size %lu is bigger than payload_len %u\n", + "[hid-ish]: [ENUM_DEVICES]: content size %zu is bigger than payload_len %zu\n", 1 + sizeof(struct device_info) - * i, - (unsigned int)payload_len); + * i, payload_len); } if (1 + sizeof(struct device_info) * i >=