mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
kconfig: Update config changed flag before calling callback
Prior to commit5ee5465940("kconfig: change sym_change_count to a boolean flag"), the conf_updated flag was set to the new value *before* calling the callback. xconfig's save action depends on this behaviour, because xconfig calls conf_get_changed() directly from the callback and now sees the old value, thus never enabling the save button or the shortcut. Restore the previous behaviour. Fixes:5ee5465940("kconfig: change sym_change_count to a boolean flag") Signed-off-by: Jurica Vukadin <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
1 parent
ced0f245ed
commit
ee06a3ef7e
1 file changed
+4
-2
@@ -1226,10 +1226,12 @@ static void (*conf_changed_callback)(void);
|
||||
|
||||
void conf_set_changed(bool val)
|
||||
{
|
||||
if (conf_changed_callback && conf_changed != val)
|
||||
conf_changed_callback();
|
||||
bool changed = conf_changed != val;
|
||||
|
||||
conf_changed = val;
|
||||
|
||||
if (conf_changed_callback && changed)
|
||||
conf_changed_callback();
|
||||
}
|
||||
|
||||
bool conf_get_changed(void)
|
||||
|
||||
Reference in new issue
Block a user