From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by kanga.kvack.org (Postfix) with ESMTP id 0BCCA6B0005 for ; Mon, 25 Jan 2016 13:41:51 -0500 (EST) Received: by mail-ig0-f182.google.com with SMTP id t15so42089254igr.0 for ; Mon, 25 Jan 2016 10:41:51 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id u17si35180456ioi.22.2016.01.25.10.41.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jan 2016 10:41:50 -0800 (PST) Subject: Re: [PATCH 2/4] arm: let set_memory_xx(addr, 0) succeed. References: <1453561543-14756-1-git-send-email-mika.penttila@nextfour.com> <1453561543-14756-3-git-send-email-mika.penttila@nextfour.com> From: Laura Abbott Message-ID: <56A66C6B.7000806@redhat.com> Date: Mon, 25 Jan 2016 10:41:47 -0800 MIME-Version: 1.0 In-Reply-To: <1453561543-14756-3-git-send-email-mika.penttila@nextfour.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: mika.penttila@nextfour.com, linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, rientjes@google.com, linux@arm.linux.org.uk, "linux-arm-kernel@lists.infradead.org >> linux-arm-kernel" On 01/23/2016 07:05 AM, mika.penttila@nextfour.com wrote: > From: Mika PenttilA? > > This makes set_memory_xx() consistent with x86. > > Signed-off-by: Mika PenttilA? mika.penttila@nextfour.com > > --- > arch/arm/mm/pageattr.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c > index be7fe4b..9edf6b0 100644 > --- a/arch/arm/mm/pageattr.c > +++ b/arch/arm/mm/pageattr.c > @@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages, > WARN_ON_ONCE(1); > } > > + if (!numpages) > + return 0; > + > if (start < MODULES_VADDR || start >= MODULES_END) > return -EINVAL; > > Reviewed-by: Laura Abbott -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org