* [PATCH] fixmap: Remove unused set_fixmap_offset_io()
@ 2024-06-12 16:00 Steven Price
2024-06-12 20:02 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Steven Price @ 2024-06-12 16:00 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Steven Price, linux-arch, linux-kernel
The macro set_fixmap_offset_io() was added in commit f774b7d10e21
("arm64: fixmap: fix missing sub-page offset for earlyprintk") but then
commit 8ef0ed95ee04 ("arm64: remove arch specific earlyprintk") removed
the file causing the only user to be removed when the two commits were
merged. Since this has never been used again since the v3.15 release
remove it.
Signed-off-by: Steven Price <steven.price@arm.com>
---
This came up because for Arm CCA there is a need to override
set_fixmap_io() [1] and rather than also update set_fixmap_offset_io() I
thought it would be better to just drop the unused macro.
[1] https://lore.kernel.org/lkml/20240605093006.145492-6-steven.price@arm.com/
---
include/asm-generic/fixmap.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/asm-generic/fixmap.h b/include/asm-generic/fixmap.h
index 8cc7b09c1bc7..29cab7947980 100644
--- a/include/asm-generic/fixmap.h
+++ b/include/asm-generic/fixmap.h
@@ -97,8 +97,5 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
#define set_fixmap_io(idx, phys) \
__set_fixmap(idx, phys, FIXMAP_PAGE_IO)
-#define set_fixmap_offset_io(idx, phys) \
- __set_fixmap_offset(idx, phys, FIXMAP_PAGE_IO)
-
#endif /* __ASSEMBLY__ */
#endif /* __ASM_GENERIC_FIXMAP_H */
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] fixmap: Remove unused set_fixmap_offset_io()
2024-06-12 16:00 [PATCH] fixmap: Remove unused set_fixmap_offset_io() Steven Price
@ 2024-06-12 20:02 ` Arnd Bergmann
2024-06-27 13:58 ` Steven Price
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2024-06-12 20:02 UTC (permalink / raw)
To: Steven Price; +Cc: Linux-Arch, linux-kernel
On Wed, Jun 12, 2024, at 18:00, Steven Price wrote:
> The macro set_fixmap_offset_io() was added in commit f774b7d10e21
> ("arm64: fixmap: fix missing sub-page offset for earlyprintk") but then
> commit 8ef0ed95ee04 ("arm64: remove arch specific earlyprintk") removed
> the file causing the only user to be removed when the two commits were
> merged. Since this has never been used again since the v3.15 release
> remove it.
>
> Signed-off-by: Steven Price <steven.price@arm.com>
> ---
> This came up because for Arm CCA there is a need to override
> set_fixmap_io() [1] and rather than also update set_fixmap_offset_io() I
> thought it would be better to just drop the unused macro.
>
> [1] https://lore.kernel.org/lkml/20240605093006.145492-6-steven.price@arm.com/
I assume you want to keep this with your other patch, so
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] fixmap: Remove unused set_fixmap_offset_io()
2024-06-12 20:02 ` Arnd Bergmann
@ 2024-06-27 13:58 ` Steven Price
2024-07-10 12:45 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Steven Price @ 2024-06-27 13:58 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Linux-Arch, linux-kernel
On 12/06/2024 21:02, Arnd Bergmann wrote:
> On Wed, Jun 12, 2024, at 18:00, Steven Price wrote:
>> The macro set_fixmap_offset_io() was added in commit f774b7d10e21
>> ("arm64: fixmap: fix missing sub-page offset for earlyprintk") but then
>> commit 8ef0ed95ee04 ("arm64: remove arch specific earlyprintk") removed
>> the file causing the only user to be removed when the two commits were
>> merged. Since this has never been used again since the v3.15 release
>> remove it.
>>
>> Signed-off-by: Steven Price <steven.price@arm.com>
>> ---
>> This came up because for Arm CCA there is a need to override
>> set_fixmap_io() [1] and rather than also update set_fixmap_offset_io() I
>> thought it would be better to just drop the unused macro.
>>
>> [1] https://lore.kernel.org/lkml/20240605093006.145492-6-steven.price@arm.com/
>
> I assume you want to keep this with your other patch, so
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
Actually for now it looks[1] like we're going to drop the overriding of
set_fixmap_io() so if you want to apply this change separately please
do!
Thanks,
Steve
[1] https://lore.kernel.org/r/b611bb5f-b6f8-44a4-9b33-a92862974363%40arm.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-10 12:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-12 16:00 [PATCH] fixmap: Remove unused set_fixmap_offset_io() Steven Price
2024-06-12 20:02 ` Arnd Bergmann
2024-06-27 13:58 ` Steven Price
2024-07-10 12:45 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox