Skip to content

Commit 0ec60e2

Browse files
Al Viroarndb
authored andcommitted
alpha: sys_sio: fix misspelled ifdefs
definitions of avanti_mv and noname_mv (and associated ALIAS_MV) are conditional upon the wrong thing - it should be CONFIG_ALPHA_{AVANTI,NONAME}_CH, not CONFIG_ALPHA_{AVANTI,NONAME}. The former is a system type; the latter is for the bits shared by AVANTI with XL and NONAME with ALPHA_BOOK1 resp. We want all those machine vectors defined (but not aliased - see ALIAS_MV() definition for details) for GENERIC build; for system-specfic builds we want only one mv, so avanti_mv should *not* be there for XL; it certainly should not be have alpha_mv aliased to it on such config - xl_mv will be there and alpha_mv can't be aliased to both of those. The same goes for Noname vs. Alphabook1. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 5759b57 commit 0ec60e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/alpha/kernel/sys_sio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ struct alpha_machine_vector alphabook1_mv __initmv = {
360360
ALIAS_MV(alphabook1)
361361
#endif
362362

363-
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_AVANTI)
363+
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_AVANTI_CH)
364364
struct alpha_machine_vector avanti_mv __initmv = {
365365
.vector_name = "Avanti",
366366
DO_EV4_MMU,
@@ -389,7 +389,7 @@ struct alpha_machine_vector avanti_mv __initmv = {
389389
ALIAS_MV(avanti)
390390
#endif
391391

392-
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_NONAME)
392+
#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_NONAME_CH)
393393
struct alpha_machine_vector noname_mv __initmv = {
394394
.vector_name = "Noname",
395395
DO_EV4_MMU,

0 commit comments

Comments
 (0)