[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aWVchtnpwjEC0FVC@redhat.com>
Date: Mon, 12 Jan 2026 15:41:42 -0500
From: Brian Masney <bmasney@...hat.com>
To: Claudiu Beznea <claudiu.beznea@...on.dev>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 12/13] MIPS: drop unused pic32.h header
Hi Claudiu,
On Sat, Jan 10, 2026 at 05:28:32PM +0200, Claudiu Beznea wrote:
> On 1/9/26 18:41, Brian Masney wrote:
> > All users of the MIPS pic32.h asm header have been migrated to
> > linux/platform_data/pic32.h, so let's go ahead and drop the unused asm
> > variant.
> >
> > Signed-off-by: Brian Masney<bmasney@...hat.com>
> >
> > ---
> > To: Thomas Bogendoerfer<tsbogend@...ha.franken.de>
> > Cc:linux-mips@...r.kernel.org
> > Cc:linux-kernel@...r.kernel.org
> > ---
> > arch/mips/include/asm/mach-pic32/pic32.h | 36 --------------------------------
> > 1 file changed, 36 deletions(-)
> >
> > diff --git a/arch/mips/include/asm/mach-pic32/pic32.h b/arch/mips/include/asm/mach-pic32/pic32.h
> > deleted file mode 100644
> > index 53918a671a4c39dba2a22121187cdd73e1935b24..0000000000000000000000000000000000000000
> > --- a/arch/mips/include/asm/mach-pic32/pic32.h
> > +++ /dev/null
> > @@ -1,36 +0,0 @@
> > -/* SPDX-License-Identifier: GPL-2.0-only */
> > -/*
> > - * Joshua Henderson<joshua.henderson@...rochip.com>
> > - * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
> > - */
> > -#ifndef _ASM_MACH_PIC32_H
> > -#define _ASM_MACH_PIC32_H
> > -
> > -#include <linux/io.h>
> > -
>
> There are compilation errors when building pic32mzda_defconfig (see below)
> and I presume those are related to the fact that this include was dropped
> from include/linux/platform_data/pic32.h:
>
> ../arch/mips/pic32/common/reset.c: In function 'pic32_machine_restart':
> ../arch/mips/pic32/common/reset.c:27:17: error: implicit declaration of
> function 'ioremap' [-Wimplicit-function-declaration]
> 27 | ioremap(PIC32_BASE_RESET + PIC32_RSWRST,
> sizeof(u32));
[snip]
I only tried compiling this on arm64, and that compiles fine. I setup
a mips cross compiler on a arm64 box and I can reproduce the compiler
errors.
So linux/io.h is not directly used by this header file. I think the
correct thing to do here is to update the files where it's actually
needed. There's 3 files that need linux/io.h, and one file needs
linux/types.h. I'll send a version two of this series with the cleanups.
Thanks,
Brian
Powered by blists - more mailing lists