[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120605.152058.828742127223799137.davem@davemloft.net>
Date: Tue, 05 Jun 2012 15:20:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: benh@...nel.crashing.org
Cc: r65777@...escale.com, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org, galak@...nel.crashing.org,
bharat.bhushan@...escale.com
Subject: Re: [PATCH] powerpc: Fix assmption of end_of_DRAM() returns end
address
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Date: Wed, 06 Jun 2012 08:17:39 +1000
> On Tue, 2012-06-05 at 19:25 +0530, Bharat Bhushan wrote:
>> memblock_end_of_DRAM() returns end_address + 1, not end address.
>> While some code assumes that it returns end address.
>
> Shouldn't we instead fix it the other way around ? IE, make
> memblock_end_of_DRAM() does what the name implies, which is to return
> the last byte of DRAM, and fix the -other- callers not to make bad
> assumptions ?
That was my impression too when I saw this patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists