Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761275AbcJ1VwT (ORCPT ); Fri, 28 Oct 2016 17:52:19 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:40402 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753955AbcJ1VwR (ORCPT ); Fri, 28 Oct 2016 17:52:17 -0400 Subject: Re: [PATCH] lpfc: use %zd format string for size_t To: Arnd Bergmann References: <20161017123605.2217411-1-arnd@arndb.de> <26e675e3-af5b-eaf7-fea0-b4aff9767332@synopsys.com> <18294392.WY3416IpNg@wuerfel> <27a8ca4b-3259-17bd-acbf-ee809ec4f67b@synopsys.com> CC: arcml , lkml , Claudiu Zissulescu Newsgroups: gmane.linux.kernel,gmane.linux.kernel.arc From: Vineet Gupta Message-ID: <3374da57-ecd8-6376-5fca-0466fb799777@synopsys.com> Date: Fri, 28 Oct 2016 14:52:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <27a8ca4b-3259-17bd-acbf-ee809ec4f67b@synopsys.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.161.37] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 490 Lines: 21 On 10/28/2016 02:44 PM, Vineet Gupta wrote: > This is configuration specific, and something caused your compiler to >> be built assuming that size_t is unsigned long, while the kernel >> headers are assuming it should be unsigned int. So yes this seems to be target specific gcc thing for ARC 4.8 #define PTRDIFF_TYPE "int" ARM #ifndef PTRDIFF_TYPE #define PTRDIFF_TYPE (TARGET_AAPCS_BASED ? "int" : "long int") #endif ARC gcc 6.2 #undef PTRDIFF_TYPE #define PTRDIFF_TYPE "long int"