Files
ack-tegra/include/linux
Marcelo Roberto Jimenez 0faa56389c mm: fix NR_SECTION_ROOTS == 0 when using using sparsemem extreme.
Got this while compiling for ARM/SA1100:

mm/sparse.c: In function '__section_nr':
mm/sparse.c:135: warning: 'root' is used uninitialized in this function

This patch follows Russell King's suggestion for a new calculation for
NR_SECTION_ROOTS.  Thanks also to Sergei Shtylyov for pointing out the
existence of the macro DIV_ROUND_UP.

Atsushi Nemoto observed:
: This fix doesn't just silence the warning - it fixes a real problem.
:
: Without this fix, mem_section[] might have 0 size so mem_section[0]
: will share other variable area.  For example, I got:
:
: c030c700 b __warned.16478
: c030c700 B mem_section
: c030c701 b __warned.16483
:
: This might cause very strange behavior.  Your patch actually fixes it.

Signed-off-by: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-25 08:07:01 -07:00
..
2010-05-17 22:39:48 -07:00
2010-05-03 08:33:00 -04:00
2010-05-14 17:08:01 -04:00
2010-05-19 13:38:54 -04:00
2010-05-10 16:08:01 -07:00
2010-05-17 16:30:58 -07:00
2010-05-21 19:30:44 +02:00
2010-05-18 16:19:30 +10:00
2010-05-25 08:07:01 -07:00
2010-05-21 09:34:29 -07:00
2010-05-11 12:01:10 -07:00
2010-05-11 14:40:55 +02:00
2010-05-03 11:50:57 +02:00
2010-05-21 09:37:29 -07:00
2010-05-14 15:09:32 -04:00
2010-05-17 12:17:10 +03:00
2010-05-25 08:06:59 -07:00
2010-05-11 14:40:55 +02:00
2010-05-17 05:27:42 +02:00
2010-05-19 13:44:27 +10:00
2010-05-10 23:08:19 +02:00
2010-05-21 19:30:44 +02:00
2010-05-03 15:53:54 -07:00
2010-05-11 10:09:47 +02:00
2010-05-06 10:56:07 +10:00
2010-05-17 17:18:50 -07:00
2010-05-10 11:08:35 -07:00
2010-05-25 08:06:59 -07:00
2010-05-15 23:28:39 -07:00
2010-05-12 23:02:23 -07:00
2010-05-21 09:34:29 -07:00
2010-05-19 22:15:46 +09:30