* [PATCH] Input: apm-power - Rename to apm-power-input
@ 2026-11-09 6:25 Nathan Chancellor
2026-11-09 7:07 ` Nicolas Schier
2026-11-09 8:09 ` Dmitry Torokhov
0 siblings, 2 replies; 4+ messages in thread
From: Nathan Chancellor @ 2026-11-09 6:25 UTC (permalink / raw)
To: Dmitry Torokhov, Nicolas Schier
Cc: linux-input, linux-kbuild, linux-kernel, Sasha Levin, Nathan Chancellor
When scripts/modules-check.sh is fixed to normalize the module's name
like name-fix-token does in scripts/Makefile.lib before checking that it
is unique [1], there is an error due to drivers/input/apm-power.ko and
drivers/power/supply/apm_power.ko having the same module name.
error: the following would cause module name conflict:
drivers/input/apm-power.ko
drivers/power/supply/apm_power.ko
$ modinfo drivers/input/apm-power.ko drivers/power/supply/apm_power.ko | grep name:
filename: drivers/input/apm-power.ko
name: apm_power
filename: drivers/power/supply/apm_power.ko
name: apm_power
Rename drivers/input/apm-power.c to apm-power-input.c to make the module
name unique and clear up the error.
Reported-by: Sasha Levin <sashal@kernel.org>
Closes: https://lore.kernel.org/20261108225808.1809266-1-sashal@kernel.org/
Link: https://lore.kernel.org/20261103110411.11698-1-info@daylightlinux.ch/ [1]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
We would like to take [1] for 7.5 in kbuild-next, so we would appreciate
an ack to take this directly or a stable branch that we can pull in.
---
drivers/input/Makefile | 2 +-
drivers/input/{apm-power.c => apm-power-input.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/Makefile b/drivers/input/Makefile
index 2cd6e1c9a778..842a7e4f7b50 100644
--- a/drivers/input/Makefile
+++ b/drivers/input/Makefile
@@ -27,6 +27,6 @@ obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/
obj-$(CONFIG_INPUT_MISC) += misc/
obj-$(CONFIG_INPUT_KUNIT_TEST) += tests/
-obj-$(CONFIG_INPUT_APMPOWER) += apm-power.o
+obj-$(CONFIG_INPUT_APMPOWER) += apm-power-input.o
obj-$(CONFIG_RMI4_CORE) += rmi4/
diff --git a/drivers/input/apm-power.c b/drivers/input/apm-power-input.c
similarity index 100%
rename from drivers/input/apm-power.c
rename to drivers/input/apm-power-input.c
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
change-id: 20261109-apm-power-input-rename-a2da3030d47a
Best regards,
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: apm-power - Rename to apm-power-input
2026-11-09 6:25 [PATCH] Input: apm-power - Rename to apm-power-input Nathan Chancellor
@ 2026-11-09 7:07 ` Nicolas Schier
2026-11-09 8:09 ` Dmitry Torokhov
1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Schier @ 2026-11-09 7:07 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Dmitry Torokhov, linux-input, linux-kbuild, linux-kernel, Sasha Levin
On Mon, Nov 09, 2026 at 01:25:26AM -0500, Nathan Chancellor wrote:
> When scripts/modules-check.sh is fixed to normalize the module's name
> like name-fix-token does in scripts/Makefile.lib before checking that it
> is unique [1], there is an error due to drivers/input/apm-power.ko and
> drivers/power/supply/apm_power.ko having the same module name.
>
> error: the following would cause module name conflict:
> drivers/input/apm-power.ko
> drivers/power/supply/apm_power.ko
>
> $ modinfo drivers/input/apm-power.ko drivers/power/supply/apm_power.ko | grep name:
> filename: drivers/input/apm-power.ko
> name: apm_power
> filename: drivers/power/supply/apm_power.ko
> name: apm_power
>
> Rename drivers/input/apm-power.c to apm-power-input.c to make the module
> name unique and clear up the error.
>
> Reported-by: Sasha Levin <sashal@kernel.org>
> Closes: https://lore.kernel.org/20261108225808.1809266-1-sashal@kernel.org/
> Link: https://lore.kernel.org/20261103110411.11698-1-info@daylightlinux.ch/ [1]
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> We would like to take [1] for 7.5 in kbuild-next, so we would appreciate
> an ack to take this directly or a stable branch that we can pull in.
> ---
> drivers/input/Makefile | 2 +-
> drivers/input/{apm-power.c => apm-power-input.c} | 0
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
Thanks!
Reviewed-by: Nicolas Schier <nsc@kernel.org>
--
Nicolas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: apm-power - Rename to apm-power-input
2026-11-09 6:25 [PATCH] Input: apm-power - Rename to apm-power-input Nathan Chancellor
2026-11-09 7:07 ` Nicolas Schier
@ 2026-11-09 8:09 ` Dmitry Torokhov
2026-11-09 16:39 ` Nathan Chancellor
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2026-11-09 8:09 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Nicolas Schier, Arnd Bergmann, linux-input, linux-kbuild,
linux-kernel, Sasha Levin
Hi Nathan,
On Mon, Nov 09, 2026 at 01:25:26AM -0500, Nathan Chancellor wrote:
> When scripts/modules-check.sh is fixed to normalize the module's name
> like name-fix-token does in scripts/Makefile.lib before checking that it
> is unique [1], there is an error due to drivers/input/apm-power.ko and
> drivers/power/supply/apm_power.ko having the same module name.
...
> Rename drivers/input/apm-power.c to apm-power-input.c to make the module
> name unique and clear up the error.
...
> We would like to take [1] for 7.5 in kbuild-next, so we would appreciate
> an ack to take this directly or a stable branch that we can pull in.
drivers/input/apm-power.c only reacts to EV_PWR/KEY_SUSPEND input events
to queue APM_USER_SUSPEND via APM emulation. The only in-tree users that
generate those events are the legacy Sharp Zaurus ARM machines
(spitz/borzoi/akita on PXA alongside SHARPSL_PM, and collie on SA1100
via locomokbd). None of them were converted to Device Tree, both
mach-pxa board files and mach-sa1100 were marked deprecated in 7.3, and
Arnd (added to Cc) already has their removal queued up for 7.5 after
holding it back from 7.4 LTS:
https://lore.kernel.org/r/e4da2f9d-d3b9-4267-9b64-b0f2cb43402a@app.fastmail.com
None of the remaining ARM platforms or other APM_EMULATION targets emit
EV_PWR input events or enable CONFIG_INPUT_APMPOWER (and pxa_defconfig
already dropped CONFIG_PXA_SHARPSL in commit cc7852314abd, leaving
CONFIG_INPUT_APMPOWER inert there).
Since you are targeting 7.5 for the modules-check change anyway, let's
just drop drivers/input/apm-power.c altogether instead of renaming a
module whose last users are going away in the same cycle. I will send
out a removal patch shortly, and either you can take it directly through
kbuild-next or I can put it on an immutable branch for you to pull.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Input: apm-power - Rename to apm-power-input
2026-11-09 8:09 ` Dmitry Torokhov
@ 2026-11-09 16:39 ` Nathan Chancellor
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Chancellor @ 2026-11-09 16:39 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Nicolas Schier, Arnd Bergmann, linux-input, linux-kbuild,
linux-kernel, Sasha Levin
On Mon, Nov 09, 2026 at 12:09:33AM -0800, Dmitry Torokhov wrote:
> Hi Nathan,
>
> On Mon, Nov 09, 2026 at 01:25:26AM -0500, Nathan Chancellor wrote:
> > When scripts/modules-check.sh is fixed to normalize the module's name
> > like name-fix-token does in scripts/Makefile.lib before checking that it
> > is unique [1], there is an error due to drivers/input/apm-power.ko and
> > drivers/power/supply/apm_power.ko having the same module name.
> ...
> > Rename drivers/input/apm-power.c to apm-power-input.c to make the module
> > name unique and clear up the error.
> ...
> > We would like to take [1] for 7.5 in kbuild-next, so we would appreciate
> > an ack to take this directly or a stable branch that we can pull in.
>
> drivers/input/apm-power.c only reacts to EV_PWR/KEY_SUSPEND input events
> to queue APM_USER_SUSPEND via APM emulation. The only in-tree users that
> generate those events are the legacy Sharp Zaurus ARM machines
> (spitz/borzoi/akita on PXA alongside SHARPSL_PM, and collie on SA1100
> via locomokbd). None of them were converted to Device Tree, both
> mach-pxa board files and mach-sa1100 were marked deprecated in 7.3, and
> Arnd (added to Cc) already has their removal queued up for 7.5 after
> holding it back from 7.4 LTS:
>
> https://lore.kernel.org/r/e4da2f9d-d3b9-4267-9b64-b0f2cb43402a@app.fastmail.com
>
> None of the remaining ARM platforms or other APM_EMULATION targets emit
> EV_PWR input events or enable CONFIG_INPUT_APMPOWER (and pxa_defconfig
> already dropped CONFIG_PXA_SHARPSL in commit cc7852314abd, leaving
> CONFIG_INPUT_APMPOWER inert there).
Ah, thanks a lot for doing this archaeology!
> Since you are targeting 7.5 for the modules-check change anyway, let's
> just drop drivers/input/apm-power.c altogether instead of renaming a
> module whose last users are going away in the same cycle. I will send
> out a removal patch shortly, and either you can take it directly through
> kbuild-next or I can put it on an immutable branch for you to pull.
Sounds good, I will reply on that patch.
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-09 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 6:25 [PATCH] Input: apm-power - Rename to apm-power-input Nathan Chancellor
2026-11-09 7:07 ` Nicolas Schier
2026-11-09 8:09 ` Dmitry Torokhov
2026-11-09 16:39 ` Nathan Chancellor
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®