Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754948Ab2FDG5T (ORCPT ); Mon, 4 Jun 2012 02:57:19 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:59495 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866Ab2FDG5Q (ORCPT ); Mon, 4 Jun 2012 02:57:16 -0400 Date: Mon, 4 Jun 2012 07:57:12 +0100 From: Al Viro To: gerg@snapgear.com Cc: linux-kernel@vger.kernel.org, Greg Ungerer Subject: Re: [PATCH] nommu: fix compilation of nommu.c Message-ID: <20120604065712.GX30000@ZenIV.linux.org.uk> References: <1338784199-19286-1-git-send-email-gerg@snapgear.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1338784199-19286-1-git-send-email-gerg@snapgear.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 884 Lines: 21 On Mon, Jun 04, 2012 at 02:29:59PM +1000, gerg@snapgear.com wrote: > From: Greg Ungerer > > Compiling 3.5-rc1 for nommu targets gives: > > CC mm/nommu.o > mm/nommu.c: In function ???sys_mmap_pgoff???: > mm/nommu.c:1489:2: error: ???ret??? undeclared (first use in this function) > mm/nommu.c:1489:2: note: each undeclared identifier is reported only once for each function it appears in > > It is trivially fixed by replacing 'ret' with the local variable that is > already defined for the return value 'retval'. > > Signed-off-by: Greg Ungerer Acked-by: Al Viro -- 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/