Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756377AbZGHF3k (ORCPT ); Wed, 8 Jul 2009 01:29:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751199AbZGHF3a (ORCPT ); Wed, 8 Jul 2009 01:29:30 -0400 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 Message-ID: <4A542EA1.4010608@gmail.com> Date: Wed, 08 Jul 2009 08:29:05 +0300 From: Artem Bityutskiy User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Stephen Rothwell CC: Artem Bityutskiy , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: linux-next: ubi tree build warnings References: <20090708130921.a361f6d2.sfr@canb.auug.org.au> In-Reply-To: <20090708130921.a361f6d2.sfr@canb.auug.org.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 08 Jul 2009 05:29:06.0909 (UTC) FILETIME=[036370D0:01C9FF8D] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 31 Stephen Rothwell wrote: > Hi Artem, > > Today's linux-next build (x86_64 allmodconfig) produced these warnings: > > drivers/mtd/ubi/io.c: In function 'nor_erase_prepare': > drivers/mtd/ubi/io.c:484: warning: passing argument 5 of 'ubi->mtd->write' from incompatible pointer type > drivers/mtd/ubi/io.c:484: note: expected 'const u_char *' but argument 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->write' from incompatible pointer type > drivers/mtd/ubi/io.c:493: note: expected 'const u_char *' but argument is of type 'uint32_t *' > > Introduced by commit ebf53f421308c2f59c9bcbad4c5c297a0d00199a ("UBI: fix > NOR flash recovery"). Fixed 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=commit;h=83c2099f5e1f0a4621ed4f20fc539069c636a24b -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/