[PATCH v2 1/4] x86/MCE/AMD: Redo function to get SMCA bank type

2018-02-15 Thread Yazen Ghannam
From: Yazen Ghannam Pass the bank number to smca_get_bank_type() since that's all we need. Also, we should compare the bank number to the size of the smca_banks array not the number of bank types. Bank types are reused for multiple banks, so the number of types can be

[PATCH v2 1/4] x86/MCE/AMD: Redo function to get SMCA bank type

2018-02-15 Thread Yazen Ghannam
From: Yazen Ghannam Pass the bank number to smca_get_bank_type() since that's all we need. Also, we should compare the bank number to the size of the smca_banks array not the number of bank types. Bank types are reused for multiple banks, so the number of types can be different from the number