Skip to contentSkip to conversation

powerpc/mm: Fix HAVE_ARCH_SOFT_DIRTY dependencies

PATCH Ben Hutchings 2 participants 3 messages Feb 20, 2016 – Feb 22, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

Soft dirty bit support was only implemented for 64-bit Book3S, and 32-bit configurations currently fail to build.

Fixes 7207f43665b8 ("powerpc/mm: Add page soft dirty tracking")

References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=4.5%7Erc4-1%7Eexp1&stamp=1455791718

---

arch/powerpc/Kconfig +2 -2
@@ -557,7 +557,7 @@ choice
 
 config PPC_4K_PAGES
 	bool "4k page size"
-	select HAVE_ARCH_SOFT_DIRTY if CHECKPOINT_RESTORE && PPC_BOOK3S
+	select HAVE_ARCH_SOFT_DIRTY if CHECKPOINT_RESTORE && PPC_BOOK3S_64
 
 config PPC_16K_PAGES
 	bool "16k page size"
@@ -566,7 +566,7 @@ config PPC_16K_PAGES
 config PPC_64K_PAGES
 	bool "64k page size"
 	depends on !PPC_FSL_BOOK3E && (44x || PPC_STD_MMU_64 || PPC_BOOK3E_64)
-	select HAVE_ARCH_SOFT_DIRTY if CHECKPOINT_RESTORE && PPC_BOOK3S
+	select HAVE_ARCH_SOFT_DIRTY if CHECKPOINT_RESTORE && PPC_BOOK3S_64
 
 config PPC_256K_PAGES
 	bool "256k page size"
#1 lore raw
Quoted 6 lines · Ben Hutchings

Soft dirty bit support was only implemented for 64-bit Book3S, and 32-bit configurations currently fail to build.

Fixes 7207f43665b8 ("powerpc/mm: Add page soft dirty tracking")

References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=4.5%7Erc4-1%7Eexp1&stamp=1455791718

Thanks for the patch Ben.

I merged a similar but not identical patch into my fixes branch last week, and Linus merged it over the weekend. Let me know if it isn't sufficient for you:

https://git.kernel.org/torvalds/c/19f97c983071

cheers

#2 lore raw
Quoted 8 lines · Michael Ellerman
Quoted 6 lines · Ben Hutchings

Soft dirty bit support was only implemented for 64-bit Book3S, and 32-bit configurations currently fail to build.

Fixes 7207f43665b8 ("powerpc/mm: Add page soft dirty tracking")

References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=4.5%7Erc4-1%7Eexp1&stamp=1455791718

Quoted 6 lines

Thanks for the patch Ben.

I merged a similar but not identical patch into my fixes branch last week, and Linus merged it over the weekend. Let me know if it isn't sufficient for you:

  https://git.kernel.org/torvalds/c/19f97c983071

Yes that works, thanks.

Ben.

Signature · 3 lines
Ben Hutchings
The generation of random numbers is too important to be left to chance.
                                                            - Robert Coveyou