Re: [PATCH v2 11/53] MIPS: SGI-IP27: fold the dead SN1 arm out of klconfig.h

From: Thomas Bogendoerfer

Date: Sat Dec 05 2026 - 08:33:53 EST


On Tue, Oct 13, 2026 at 03:16:31PM +0200, Imre Kaloz wrote:
> klconfig.h's CONFIG_SGI_IP35 branch is unreachable: that symbol is
> never selected, and the branch names headers that do not exist in
> this tree. Fold its shared includes into the CONFIG_SGI_IP27 branch
> and drop the unreachable rest.
>
> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
> ---
> arch/mips/include/asm/sn/klconfig.h | 19 ++-----------------
> 1 file changed, 2 insertions(+), 17 deletions(-)
>
> diff --git a/arch/mips/include/asm/sn/klconfig.h b/arch/mips/include/asm/sn/klconfig.h
> index 3d1670b3e052..433d2d05aba3 100644
> --- a/arch/mips/include/asm/sn/klconfig.h
> +++ b/arch/mips/include/asm/sn/klconfig.h
> @@ -40,26 +40,11 @@
> //#include <sys/graph.h>
> //#include <sys/xtalk/xbow.h>
>
> -#elif defined(CONFIG_SGI_IP35)
> -
> -#include <asm/sn/sn1/addrs.h>
> -#include <sys/sn/router.h>
> -#include <sys/graph.h>
> -#include <asm/xtalk/xbow.h>
> -
> -#endif /* !CONFIG_SGI_IP27 && !CONFIG_SGI_IP35 */
> -
> -#if defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP35)
> #include <asm/sn/agent.h>
> #include <asm/fw/arc/types.h>
> #include <asm/fw/arc/hinv.h>
> -#if defined(CONFIG_SGI_IP35)
> -// The hack file has to be before vector and after sn0_fru....
> -#include <asm/hack.h>
> -#include <asm/sn/vector.h>
> -#include <asm/xtalk/xtalk.h>
> -#endif /* CONFIG_SGI_IP35 */
> -#endif /* CONFIG_SGI_IP27 || CONFIG_SGI_IP35 */
> +
> +#endif /* CONFIG_SGI_IP27 */
>
> typedef u64 nic_t;
>
> --
> 2.47.3

applied to mips-next

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]