From 61a9c903fefa3261ea04efd20918329d002a3702 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Wed, 21 Dec 2022 05:11:55 +0000 Subject: [PATCH] FROMLIST: pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES In commit [in -next: 76d62f24db07] ("pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion") I changed a lock to an rt_mutex. However, its possible that CONFIG_RT_MUTEXES is not enabled, which then results in a build failure, as the 0day bot detected: https://lore.kernel.org/linux-mm/202212211244.TwzWZD3H-lkp@intel.com/ Thus this patch changes CONFIG_PSTORE_PMSG to select CONFIG_RT_MUTEXES, which ensures the build will not fail. Cc: Wei Wang Cc: Midas Chien Cc: Connor O'Brien Cc: Kees Cook Cc: Anton Vorontsov Cc: Colin Cross Cc: Tony Luck Cc: kernel test robot Cc: kernel-team@android.com Reported-by: kernel test robot Signed-off-by: John Stultz Link: https://lore.kernel.org/lkml/20221221051855.15761-1-jstultz@google.com/ Change-Id: I56ef91f302aa9ed1be3858c03b72a79543a329e5 [jstultz: Tweaked commit message to avoid catching presubmit checks referencing shas that haven't landed upstream yet] Fixes: 943836e729c1 ("FROMGIT: pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion") Signed-off-by: John Stultz --- fs/pstore/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig index 8efe60487b48..71dbe9a2533f 100644 --- a/fs/pstore/Kconfig +++ b/fs/pstore/Kconfig @@ -118,6 +118,7 @@ config PSTORE_CONSOLE config PSTORE_PMSG bool "Log user space messages" depends on PSTORE + select RT_MUTEXES help When the option is enabled, pstore will export a character interface /dev/pmsg0 to log user space messages. On reboot