On Wed, 2012-10-17 at 13:13 +0200, Borislav Petkov wrote: > mce_ser, mce_bios_cmci_threshold and mce_disabled are the last three > bools which need conversion. Move them to the mca_config struct and > adjust usage sites accordingly. [] > diff --git a/arch/x86/kernel/cpu/mcheck/mce.c > b/arch/x86/kernel/cpu/mcheck/mce.c [] > @@ -1009,6 +1004,7 @@ static void mce_clear_info(struct mce_info *mi) > */ > void do_machine_check(struct pt_regs *regs, long error_code) > { > + struct mca_config *cfg = &mca_cfg;
trivia: Why use cfg? This indirection and the cfg-> uses just seem obfuscating. Isn't mca_cfg. used everywhere else? No line wrapping is saved by indirecting. > @@ -1036,7 +1032,7 @@ void do_machine_check(struct pt_regs *regs, long > error_code) > > this_cpu_inc(mce_exception_count); > > - if (!mca_cfg.banks) > + if (!cfg->banks) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/