aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-16 17:12:33 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-16 17:12:33 -0500
commit36c0a48fe5fa119090749e5fa774e95c7bfd0f5e (patch)
treec9d5cad8fd47a50e90fb8bbd06e53cc47198e81b /arch
parenta643fc7253261be2275c02cb33fa7bf4bfc8cdc4 (diff)
parentfb59d007a0e44e2304e4fc8cf5c20b6fda7890f3 (diff)
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Will Deacon: "Given that my availability next week is likely to be poor, here are three arm64 fixes to resolve some issues introduced by features merged last week. I was going to wait until -rc1, but it doesn't make much sense to sit on fixes. Fix some fallout introduced during the merge window: - Build failure when PM_SLEEP is disabled but CPU_IDLE is enabled - Compiler warning from page table dumper w/ 48-bit VAs - Erroneous page table truncation in reported dump" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: mm: dump: don't skip final region arm64: mm: dump: fix shift warning arm64: psci: Fix build breakage without PM_SLEEP
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kernel/psci.c2
-rw-r--r--arch/arm64/mm/dump.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c
index 3425f311c49e..f1dbca7d5c96 100644
--- a/arch/arm64/kernel/psci.c
+++ b/arch/arm64/kernel/psci.c
@@ -540,6 +540,8 @@ const struct cpu_operations cpu_psci_ops = {
540 .name = "psci", 540 .name = "psci",
541#ifdef CONFIG_CPU_IDLE 541#ifdef CONFIG_CPU_IDLE
542 .cpu_init_idle = cpu_psci_cpu_init_idle, 542 .cpu_init_idle = cpu_psci_cpu_init_idle,
543#endif
544#ifdef CONFIG_ARM64_CPU_SUSPEND
543 .cpu_suspend = cpu_psci_cpu_suspend, 545 .cpu_suspend = cpu_psci_cpu_suspend,
544#endif 546#endif
545#ifdef CONFIG_SMP 547#ifdef CONFIG_SMP
diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
index bf69601be546..cf33f33333cc 100644
--- a/arch/arm64/mm/dump.c
+++ b/arch/arm64/mm/dump.c
@@ -182,9 +182,6 @@ static void note_page(struct pg_state *st, unsigned long addr, unsigned level,
182 static const char units[] = "KMGTPE"; 182 static const char units[] = "KMGTPE";
183 u64 prot = val & pg_level[level].mask; 183 u64 prot = val & pg_level[level].mask;
184 184
185 if (addr < LOWEST_ADDR)
186 return;
187
188 if (!st->level) { 185 if (!st->level) {
189 st->level = level; 186 st->level = level;
190 st->current_prot = prot; 187 st->current_prot = prot;
@@ -272,7 +269,7 @@ static void walk_pud(struct pg_state *st, pgd_t *pgd, unsigned long start)
272 269
273static void walk_pgd(struct pg_state *st, struct mm_struct *mm, unsigned long start) 270static void walk_pgd(struct pg_state *st, struct mm_struct *mm, unsigned long start)
274{ 271{
275 pgd_t *pgd = pgd_offset(mm, 0); 272 pgd_t *pgd = pgd_offset(mm, 0UL);
276 unsigned i; 273 unsigned i;
277 unsigned long addr; 274 unsigned long addr;
278 275