Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942831AbcJ1Vt0 (ORCPT ); Fri, 28 Oct 2016 17:49:26 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:56230 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942371AbcJ1VtY (ORCPT ); Fri, 28 Oct 2016 17:49:24 -0400 From: Arnd Bergmann To: Vineet Gupta Cc: arcml , lkml , Claudiu Zissulescu Subject: Re: [PATCH] lpfc: use %zd format string for size_t Date: Fri, 28 Oct 2016 23:48:46 +0200 Message-ID: <13484858.soC083COth@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <27a8ca4b-3259-17bd-acbf-ee809ec4f67b@synopsys.com> References: <20161017123605.2217411-1-arnd@arndb.de> <18294392.WY3416IpNg@wuerfel> <27a8ca4b-3259-17bd-acbf-ee809ec4f67b@synopsys.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Xzvx0EZ58xze85S5hd9k2H1YzYngjRVz9EqiuJqHD2Q2BlZAdL3 SWgq964Lwd4dc9OCGzGn041gzZkgCALmP3L+KkTIYwz/Hku3cR7iGeLXIbDX2UGaAf+49t+ cu+RX0uzffWjAc8FZHsKnz5+NK/3JYlg2kSKSqgnWm2CGj0aTGqKS0ciz3sOLRfCiyFE4E0 Y8L7z3hqF5mQDD/ibSrkA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Rz/ZPvQMNgA=:qE8hS/dYAemNBjehoPJl23 l8TlZaaXyJn7fQh/UXgD3sP5I0QN2wKjQTA/GfX6yRJ8xyk8NclNBoxl/xEqefMDCbiMF5yLn 5hMfSLGrLU5NOr0yqyrIYq3vmclNUMtZsSGULuGGI2kTgWz2bTJ2XclgVyHZGVrwIPMSNWWfa V0WScaa098GlJPh2zyrj9V57Mi+DydKd6UOg8FMZfpX/KDCrb25KYjgCAxPymn9fZY+Y4lX+o 7eoepnIP7DbrEOhBJ7WQmfhypDqQIeIp0Jx+usEtk/5HMRQWqqOu9nzvJwllKGxrn9M0lZ8l6 Jn5OJixsVgeZZZ+J2BREY6gQlj8FqOLXhiEOczjkeV/xf3iXdj/ImAD5hHsX832ZMk01RGfoM at0iP3QLkP2agjHJVShS4sMf8XeRNdlin8wj2xtQKpzp8NymuNXeSnQ065ndXIuG3+1c21yZa XeTPwESc3XacFXcstLVpomCqWSCojC1qqE4z2iA5dQwv51OX0e8cYZrpm7njIxpwJpZPfIvu1 2QsaPoPQIarudWSFZrmNDroghD9OIXToqBrofcSKBYqA/kc+0P4TFO4up9vb4hIiGbapCJXAA uCvTPXLtOH54TnttPquA2z3iK59/Z+tr/imOkL/9CtbDGIPvCHP8jBRDwfwddRjfCg6YW23T1 zhe8HFLmH2jznozkk94d6Vq8kDD99bQqp4MA1TIdfoKbb6Zia1ATFM8oEiq7yxCda58Wb0nCg Y1okUs1WeqxV8io5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 466 Lines: 15 On Friday, October 28, 2016 2:44:13 PM CEST Vineet Gupta wrote: > > Indeed if I hack include/linux/types.h > > -typedef __kernel_size_t size_t; > +typedef unsigned long size_t; > > then the warning goes away, so gcc is indeed assuming size_t to be unsigned long > and not unsigned int. That helps a lot. Ok, just be aware that this will introduce warnings for any compiler that is built to expect an 'unsigned int size_t' typedef. Arnd