From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
To: Brian Masney <bmasney@redhat.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 12/13] MIPS: drop unused pic32.h header
Date: Sat, 10 Jan 2026 17:28:32 +0200 [thread overview]
Message-ID: <e3f6f4fb-8438-42a3-acd7-57926942117a@tuxon.dev> (raw)
In-Reply-To: <20260109-mips-pic32-header-move-v1-12-99859c55783d@redhat.com>
Hi, Brian,
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@redhat.com>
>
> ---
> To: Thomas Bogendoerfer<tsbogend@alpha.franken.de>
> Cc:linux-mips@vger.kernel.org
> Cc:linux-kernel@vger.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@microchip.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));
| ^~~~~~~
../arch/mips/pic32/common/reset.c:27:17: error: initialization of 'void
*' from 'int' makes pointer from integer without a cast [-Wint-conversion]
../arch/mips/pic32/common/reset.c:32:9: error: implicit declaration of
function '__raw_writel'; did you mean '_raw_write_lock'?
[-Wimplicit-function-declaration]
32 | __raw_writel(1, reg);
| ^~~~~~~~~~~~
| _raw_write_lock
CC fs/iomap/iter.o
../arch/mips/pic32/common/reset.c:33:15: error: implicit declaration of
function '__raw_readl'; did you mean '_raw_read_lock'?
[-Wimplicit-function-declaration]
33 | (void)__raw_readl(reg);
| ^~~~~~~~~~~
| _raw_read_lock
CC arch/mips/vdso/vgettimeofday.o
make[6]: *** [../scripts/Makefile.build:287:
arch/mips/pic32/common/reset.o] Error 1
CC arch/mips/pic32/pic32mzda/early_clk.o
In file included from ../arch/mips/pic32/pic32mzda/early_clk.c:6:
../include/linux/platform_data/pic32.h:29:54: error: unknown type name
'ulong'; did you mean 'long'?
29 | void pic32_syskey_unlock_debug(const char *fn, const ulong ln);
| ^~~~~
| long
In file included from ../arch/mips/pic32/pic32mzda/early_clk.c:8:
../arch/mips/pic32/pic32mzda/pic32mzda.h:10:1: error: unknown type name
'u32'
10 | u32 pic32_get_pbclk(int bus);
| ^~~
../arch/mips/pic32/pic32mzda/pic32mzda.h:11:1: error: unknown type name
'u32'
11 | u32 pic32_get_sysclk(void);
| ^~~
../arch/mips/pic32/pic32mzda/pic32mzda.h:14:13: error: expected '=',
',', ';', 'asm' or '__attribute__' before 'pic32_config_init'
14 | void __init pic32_config_init(void);
| ^~~~~~~~~~~~~~~~~
../arch/mips/pic32/pic32mzda/pic32mzda.h:16:41: error: unknown type name
'u32'
16 | int pic32_set_sdhci_adma_fifo_threshold(u32 rthrs, u32 wthrs);
| ^~~
../arch/mips/pic32/pic32mzda/pic32mzda.h:16:52: error: unknown type name
'u32'
16 | int pic32_set_sdhci_adma_fifo_threshold(u32 rthrs, u32 wthrs);
| ^~~
../arch/mips/pic32/pic32mzda/pic32mzda.h:17:1: error: unknown type name
'u32'
17 | u32 pic32_get_boot_status(void);
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:28:1: error: unknown type name
'u32'
28 | u32 pic32_get_sysclk(void)
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c: In function 'pic32_get_sysclk':
../arch/mips/pic32/pic32mzda/early_clk.c:30:9: error: unknown type name
'u32'
30 | u32 osc_freq = 0;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:31:9: error: unknown type name
'u32'
31 | u32 pllclk;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:32:9: error: unknown type name
'u32'
32 | u32 frcdivn;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:33:9: error: unknown type name
'u32'
33 | u32 osccon;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:34:9: error: unknown type name
'u32'
34 | u32 spllcon;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:37:9: error: unknown type name
'u32'
37 | u32 plliclk;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:38:9: error: unknown type name
'u32'
38 | u32 pllidiv;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:39:9: error: unknown type name
'u32'
39 | u32 pllodiv;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:40:9: error: unknown type name
'u32'
40 | u32 pllmult;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:41:9: error: unknown type name
'u32'
41 | u32 frcdiv;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:43:34: error: implicit
declaration of function 'ioremap' [-Wimplicit-function-declaration]
43 | void __iomem *osc_base = ioremap(PIC32_BASE_OSC, 0x200);
| ^~~~~~~
../arch/mips/pic32/pic32mzda/early_clk.c:43:34: error: initialization of
'void *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
../arch/mips/pic32/pic32mzda/early_clk.c:45:18: error: implicit
declaration of function '__raw_readl' [-Wimplicit-function-declaration]
45 | osccon = __raw_readl(osc_base + OSCCON);
| ^~~~~~~~~~~
../arch/mips/pic32/pic32mzda/early_clk.c:81:9: error: implicit
declaration of function 'iounmap' [-Wimplicit-function-declaration]
81 | iounmap(osc_base);
| ^~~~~~~
../arch/mips/pic32/pic32mzda/early_clk.c: At top level:
../arch/mips/pic32/pic32mzda/early_clk.c:86:1: error: unknown type name
'u32'
86 | u32 pic32_get_pbclk(int bus)
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c: In function 'pic32_get_pbclk':
../arch/mips/pic32/pic32mzda/early_clk.c:88:9: error: unknown type name
'u32'
88 | u32 clk_freq;
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:89:34: error: initialization of
'void *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
89 | void __iomem *osc_base = ioremap(PIC32_BASE_OSC, 0x200);
| ^~~~~~~
../arch/mips/pic32/pic32mzda/early_clk.c:90:9: error: unknown type name
'u32'
90 | u32 pbxdiv = PB1DIV + ((bus - 1) * 0x10);
| ^~~
../arch/mips/pic32/pic32mzda/early_clk.c:91:9: error: unknown type name
'u32'
91 | u32 pbdiv = (__raw_readl(osc_base + pbxdiv) & PB_MASK) + 1;
| ^~~
make[6]: *** [../scripts/Makefile.build:287:
arch/mips/pic32/pic32mzda/early_clk.o] Error 1
Thank you,
Claudiu
next prev parent reply other threads:[~2026-01-10 15:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 16:41 [PATCH 00/13] MIPS: move pic32.h header file from asm to platform_data Brian Masney
2026-01-09 16:41 ` [PATCH 01/13] MIPS: copy pic32.h header file from asm/mach-pic32/ to include/platform-data/ Brian Masney
2026-01-09 16:41 ` [PATCH 02/13] MAINTAINERS: add include/linux/platform_data/pic32.h to MIPS entry Brian Masney
2026-01-09 16:41 ` [PATCH 03/13] MIPS: update include to use pic32.h from platform_data Brian Masney
2026-01-09 16:41 ` [PATCH 04/13] clk: microchip: core: " Brian Masney
2026-01-09 16:41 ` [PATCH 05/13] irqchip/irq-pic32-evic: " Brian Masney
2026-01-09 16:41 ` [PATCH 06/13] mmc: sdhci-pic32: " Brian Masney
2026-01-12 8:40 ` Adrian Hunter
2026-01-12 20:54 ` Brian Masney
2026-01-09 16:41 ` [PATCH 07/13] pinctrl: pic32: " Brian Masney
2026-01-09 23:25 ` Linus Walleij
2026-01-09 16:41 ` [PATCH 08/13] rtc: " Brian Masney
2026-01-09 17:42 ` Alexandre Belloni
2026-01-09 16:41 ` [PATCH 09/13] serial: pic32_uart: " Brian Masney
2026-01-09 16:41 ` [PATCH 10/13] watchdog: pic32-dmt: " Brian Masney
2026-01-09 17:08 ` Guenter Roeck
2026-01-09 17:11 ` Brian Masney
2026-01-09 16:41 ` [PATCH 11/13] watchdog: pic32-wdt: " Brian Masney
2026-01-09 17:09 ` Guenter Roeck
2026-01-09 16:41 ` [PATCH 12/13] MIPS: drop unused pic32.h header Brian Masney
2026-01-10 15:28 ` Claudiu Beznea [this message]
2026-01-12 20:41 ` Brian Masney
2026-01-09 16:41 ` [PATCH 13/13] clk: microchip: core: allow driver to be compiled with COMPILE_TEST Brian Masney
2026-01-09 17:14 ` [PATCH 00/13] MIPS: move pic32.h header file from asm to platform_data Brian Masney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3f6f4fb-8438-42a3-acd7-57926942117a@tuxon.dev \
--to=claudiu.beznea@tuxon.dev \
--cc=bmasney@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®