From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: linux-next: ubi tree build warnings Date: Wed, 08 Jul 2009 08:29:05 +0300 Message-ID: <4A542EA1.4010608@gmail.com> References: <20090708130921.a361f6d2.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp.nokia.com ([192.100.122.233]:43738 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900AbZGHF33 (ORCPT ); Wed, 8 Jul 2009 01:29:29 -0400 In-Reply-To: <20090708130921.a361f6d2.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell Cc: Artem Bityutskiy , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Stephen Rothwell wrote: > Hi Artem, >=20 > Today's linux-next build (x86_64 allmodconfig) produced these warning= s: >=20 > drivers/mtd/ubi/io.c: In function 'nor_erase_prepare': > drivers/mtd/ubi/io.c:484: warning: passing argument 5 of 'ubi->mtd->w= rite' from incompatible pointer type > drivers/mtd/ubi/io.c:484: note: expected 'const u_char *' but argumen= t is of type 'uint32_t *' > drivers/mtd/ubi/io.c:486: warning: format '%zd' expects type 'signed = size_t', but argument 5 has type 'int' > drivers/mtd/ubi/io.c:486: warning: too many arguments for format > drivers/mtd/ubi/io.c:493: warning: passing argument 5 of 'ubi->mtd->w= rite' from incompatible pointer type > drivers/mtd/ubi/io.c:493: note: expected 'const u_char *' but argumen= t is of type 'uint32_t *' >=20 > Introduced by commit ebf53f421308c2f59c9bcbad4c5c297a0d00199a ("UBI: = fix > NOR flash recovery"). =46ixed the warnings. In fact I do see them, but did not notice them before. Thanks a lot for catching this and keeping our kernel clean. Pushed the fix: http://git.infradead.org/ubi-2.6.git?a=3Dcommit;h=3D83c2099f5e1f0a4621e= d4f20fc539069c636a24b --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9)