* [PATCH 1/4] arm64: errata: Fix missing space after comma
@ 2026-03-01 0:34 Josh Law
2026-03-01 0:34 ` [PATCH 2/4] arm64: fpsimd: make stack ctl_table const Josh Law
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Josh Law @ 2026-03-01 0:34 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Josh Law
Signed-off-by: Josh Law <objecting@objecting.org>
---
arch/arm64/kernel/cpu_errata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 5c0ab6bfd44a..5f8eaaf028ef 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -884,7 +884,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
.capability = ARM64_WORKAROUND_2658417,
/* Cortex-A510 r0p0 - r1p1 */
ERRATA_MIDR_RANGE(MIDR_CORTEX_A510, 0, 0, 1, 1),
- MIDR_FIXED(MIDR_CPU_VAR_REV(1,1), BIT(25)),
+ MIDR_FIXED(MIDR_CPU_VAR_REV(1, 1), BIT(25)),
},
#endif
#ifdef CONFIG_ARM64_ERRATUM_3194386
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/4] arm64: fpsimd: make stack ctl_table const
2026-03-01 0:34 [PATCH 1/4] arm64: errata: Fix missing space after comma Josh Law
@ 2026-03-01 0:34 ` Josh Law
2026-03-01 0:34 ` [PATCH 3/4] arm64: kernel: Move const after static in get_kaslr_seed Josh Law
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Josh Law @ 2026-03-01 0:34 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Josh Law
Signed-off-by: Josh Law <objecting@objecting.org>
---
arch/arm64/kernel/fpsimd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c
index 9de1d8a604cb..86035d48ed27 100644
--- a/arch/arm64/kernel/fpsimd.c
+++ b/arch/arm64/kernel/fpsimd.c
@@ -549,7 +549,7 @@ static int vec_proc_do_default_vl(const struct ctl_table *table, int write,
enum vec_type type = info->type;
int ret;
int vl = get_default_vl(type);
- struct ctl_table tmp_table = {
+ const struct ctl_table tmp_table = {
.data = &vl,
.maxlen = sizeof(vl),
};
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/4] arm64: kernel: Move const after static in get_kaslr_seed
2026-03-01 0:34 [PATCH 1/4] arm64: errata: Fix missing space after comma Josh Law
2026-03-01 0:34 ` [PATCH 2/4] arm64: fpsimd: make stack ctl_table const Josh Law
@ 2026-03-01 0:34 ` Josh Law
2026-03-01 0:34 ` [PATCH 4/4] arm64: kernel: Fix style in io.c macro Josh Law
2026-03-03 11:50 ` [PATCH 1/4] arm64: errata: Fix missing space after comma Will Deacon
3 siblings, 0 replies; 9+ messages in thread
From: Josh Law @ 2026-03-01 0:34 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Josh Law
Signed-off-by: Josh Law <objecting@objecting.org>
---
arch/arm64/kernel/pi/kaslr_early.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/pi/kaslr_early.c b/arch/arm64/kernel/pi/kaslr_early.c
index e0e018046a46..b1fb950f1564 100644
--- a/arch/arm64/kernel/pi/kaslr_early.c
+++ b/arch/arm64/kernel/pi/kaslr_early.c
@@ -20,7 +20,7 @@
static u64 __init get_kaslr_seed(void *fdt, int node)
{
- static char const seed_str[] __initconst = "kaslr-seed";
+ static const char seed_str[] __initconst = "kaslr-seed";
fdt64_t *prop;
u64 ret;
int len;
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/4] arm64: kernel: Fix style in io.c macro
2026-03-01 0:34 [PATCH 1/4] arm64: errata: Fix missing space after comma Josh Law
2026-03-01 0:34 ` [PATCH 2/4] arm64: fpsimd: make stack ctl_table const Josh Law
2026-03-01 0:34 ` [PATCH 3/4] arm64: kernel: Move const after static in get_kaslr_seed Josh Law
@ 2026-03-01 0:34 ` Josh Law
2026-03-02 14:51 ` Mark Rutland
2026-03-03 11:50 ` [PATCH 1/4] arm64: errata: Fix missing space after comma Will Deacon
3 siblings, 1 reply; 9+ messages in thread
From: Josh Law @ 2026-03-01 0:34 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Josh Law
Signed-off-by: Josh Law <objecting@objecting.org>
---
arch/arm64/kernel/io.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/kernel/io.c b/arch/arm64/kernel/io.c
index fe86ada23c7d..ce27fa5d2e37 100644
--- a/arch/arm64/kernel/io.c
+++ b/arch/arm64/kernel/io.c
@@ -17,10 +17,10 @@
#define memcpy_toio_aligned(to, from, count, bits) \
({ \
volatile u##bits __iomem *_to = to; \
- const u##bits *_from = from; \
+ const u##bits * _from = from; \
size_t _count = count; \
- const u##bits *_end_from = _from + ALIGN_DOWN(_count, 8); \
- \
+ const u##bits * _end_from = _from + ALIGN_DOWN(_count, 8);\
+\
for (; _from < _end_from; _from += 8, _to += 8) \
__const_memcpy_toio_aligned##bits(_to, _from, 8); \
if ((_count % 8) >= 4) { \
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: kernel: Fix style in io.c macro
2026-03-01 0:34 ` [PATCH 4/4] arm64: kernel: Fix style in io.c macro Josh Law
@ 2026-03-02 14:51 ` Mark Rutland
2026-03-02 15:45 ` Josh Law
0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2026-03-02 14:51 UTC (permalink / raw)
To: Josh Law
Cc: Catalin Marinas, Will Deacon, linux-arm-kernel, linux-kernel,
Josh Law
On Sun, Mar 01, 2026 at 12:34:07AM +0000, Josh Law wrote:
> Signed-off-by: Josh Law <objecting@objecting.org>
> ---
> arch/arm64/kernel/io.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/kernel/io.c b/arch/arm64/kernel/io.c
> index fe86ada23c7d..ce27fa5d2e37 100644
> --- a/arch/arm64/kernel/io.c
> +++ b/arch/arm64/kernel/io.c
> @@ -17,10 +17,10 @@
> #define memcpy_toio_aligned(to, from, count, bits) \
> ({ \
> volatile u##bits __iomem *_to = to; \
> - const u##bits *_from = from; \
> + const u##bits * _from = from; \
> size_t _count = count; \
> - const u##bits *_end_from = _from + ALIGN_DOWN(_count, 8); \
> - \
> + const u##bits * _end_from = _from + ALIGN_DOWN(_count, 8);\
> +\
There is no style violation here. There's no need to add a space between
'*' and the variable name.
Mark.
> for (; _from < _end_from; _from += 8, _to += 8) \
> __const_memcpy_toio_aligned##bits(_to, _from, 8); \
> if ((_count % 8) >= 4) { \
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: kernel: Fix style in io.c macro
2026-03-02 14:51 ` Mark Rutland
@ 2026-03-02 15:45 ` Josh Law
2026-03-02 18:08 ` Mark Rutland
0 siblings, 1 reply; 9+ messages in thread
From: Josh Law @ 2026-03-02 15:45 UTC (permalink / raw)
To: Mark Rutland
Cc: Catalin Marinas, Will Deacon, linux-arm-kernel, linux-kernel,
Josh Law
2 Mar 2026 14:51:19 Mark Rutland <mark.rutland@arm.com>:
> On Sun, Mar 01, 2026 at 12:34:07AM +0000, Josh Law wrote:
>> Signed-off-by: Josh Law <objecting@objecting.org>
>> ---
>> arch/arm64/kernel/io.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm64/kernel/io.c b/arch/arm64/kernel/io.c
>> index fe86ada23c7d..ce27fa5d2e37 100644
>> --- a/arch/arm64/kernel/io.c
>> +++ b/arch/arm64/kernel/io.c
>> @@ -17,10 +17,10 @@
>> #define memcpy_toio_aligned(to, from, count, bits) \
>> ({ \
>> volatile u##bits __iomem *_to = to; \
>> - const u##bits *_from = from; \
>> + const u##bits * _from = from; \
>> size_t _count = count; \
>> - const u##bits *_end_from = _from + ALIGN_DOWN(_count, 8); \
>> - \
>> + const u##bits * _end_from = _from + ALIGN_DOWN(_count, 8);\
>> +\
>
> There is no style violation here. There's no need to add a space between
> '*' and the variable name.
>
> Mark.
I used checkpatch.pl... it detected that
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: kernel: Fix style in io.c macro
2026-03-02 15:45 ` Josh Law
@ 2026-03-02 18:08 ` Mark Rutland
2026-03-02 18:21 ` Josh Law
0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2026-03-02 18:08 UTC (permalink / raw)
To: Josh Law
Cc: Catalin Marinas, Will Deacon, linux-arm-kernel, linux-kernel,
Josh Law
On Mon, Mar 02, 2026 at 03:45:16PM +0000, Josh Law wrote:
> 2 Mar 2026 14:51:19 Mark Rutland <mark.rutland@arm.com>:
>
> > On Sun, Mar 01, 2026 at 12:34:07AM +0000, Josh Law wrote:
> >> Signed-off-by: Josh Law <objecting@objecting.org>
> >> ---
> >> arch/arm64/kernel/io.c | 6 +++---
> >> 1 file changed, 3 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/arch/arm64/kernel/io.c b/arch/arm64/kernel/io.c
> >> index fe86ada23c7d..ce27fa5d2e37 100644
> >> --- a/arch/arm64/kernel/io.c
> >> +++ b/arch/arm64/kernel/io.c
> >> @@ -17,10 +17,10 @@
> >> #define memcpy_toio_aligned(to, from, count, bits) \
> >> ({ \
> >> volatile u##bits __iomem *_to = to; \
> >> - const u##bits *_from = from; \
> >> + const u##bits * _from = from; \
> >> size_t _count = count; \
> >> - const u##bits *_end_from = _from + ALIGN_DOWN(_count, 8); \
> >> - \
> >> + const u##bits * _end_from = _from + ALIGN_DOWN(_count, 8);\
> >> +\
> >
> > There is no style violation here. There's no need to add a space between
> > '*' and the variable name.
> >
> > Mark.
>
> I used checkpatch.pl... it detected that
So? Tools can be wrong.
In general, checkpatch.pl shouldn't be applied to existing files to find
issues, since there are many deliberate violations, and cases it cannot
parse correctly.
I checked out v7.0-rc2, and ran:
./scripts/checkpatch.pl -f arch/arm64/kernel/io.c
... and the warning you see seems to be:
| ERROR: need consistent spacing around '*' (ctx:WxV)
| #20: FILE: arch/arm64/kernel/io.c:20:
| + const u##bits *_from = from; \
| ^
From a quick scan of checkpatch.pl, that's because it has mis-parsed
this as a binary operator, where we *do* want consistent space around
the '*'.
For types that's not the case, e.g.
| [mark@lakrids:~/src/linux]% cat test.c
| int *foo = 1;
|
| int * bar = 1;
| [mark@lakrids:~/src/linux]% ./scripts/checkpatch.pl -f test.c
| WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
| #1: FILE: test.c:1:
| +int *foo = 1;
|
| ERROR: "foo * bar" should be "foo *bar"
| #3: FILE: test.c:3:
| +int * bar = 1;
Mark.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: kernel: Fix style in io.c macro
2026-03-02 18:08 ` Mark Rutland
@ 2026-03-02 18:21 ` Josh Law
0 siblings, 0 replies; 9+ messages in thread
From: Josh Law @ 2026-03-02 18:21 UTC (permalink / raw)
To: Mark Rutland
Cc: Catalin Marinas, Will Deacon, linux-arm-kernel, linux-kernel,
Josh Law
2 Mar 2026 18:08:29 Mark Rutland <mark.rutland@arm.com>:
> On Mon, Mar 02, 2026 at 03:45:16PM +0000, Josh Law wrote:
>> 2 Mar 2026 14:51:19 Mark Rutland <mark.rutland@arm.com>:
>>
>>> On Sun, Mar 01, 2026 at 12:34:07AM +0000, Josh Law wrote:
>>>> Signed-off-by: Josh Law <objecting@objecting.org>
>>>> ---
>>>> arch/arm64/kernel/io.c | 6 +++---
>>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>>
>>>> diff --git a/arch/arm64/kernel/io.c b/arch/arm64/kernel/io.c
>>>> index fe86ada23c7d..ce27fa5d2e37 100644
>>>> --- a/arch/arm64/kernel/io.c
>>>> +++ b/arch/arm64/kernel/io.c
>>>> @@ -17,10 +17,10 @@
>>>> #define memcpy_toio_aligned(to, from, count, bits) \
>>>> ({ \
>>>> volatile u##bits __iomem *_to = to; \
>>>> - const u##bits *_from = from; \
>>>> + const u##bits * _from = from; \
>>>> size_t _count = count; \
>>>> - const u##bits *_end_from = _from + ALIGN_DOWN(_count, 8); \
>>>> - \
>>>> + const u##bits * _end_from = _from + ALIGN_DOWN(_count, 8);\
>>>> +\
>>>
>>> There is no style violation here. There's no need to add a space between
>>> '*' and the variable name.
>>>
>>> Mark.
>>
>> I used checkpatch.pl... it detected that
>
> So? Tools can be wrong.
>
> In general, checkpatch.pl shouldn't be applied to existing files to find
> issues, since there are many deliberate violations, and cases it cannot
> parse correctly.
>
> I checked out v7.0-rc2, and ran:
>
> ./scripts/checkpatch.pl -f arch/arm64/kernel/io.c
>
> ... and the warning you see seems to be:
>
> | ERROR: need consistent spacing around '*' (ctx:WxV)
> | #20: FILE: arch/arm64/kernel/io.c:20:
> | + const u##bits *_from = from; \
> | ^
>
> From a quick scan of checkpatch.pl, that's because it has mis-parsed
> this as a binary operator, where we *do* want consistent space around
> the '*'.
>
> For types that's not the case, e.g.
>
> | [mark@lakrids:~/src/linux]% cat test.c
> | int *foo = 1;
> |
> | int * bar = 1;
> | [mark@lakrids:~/src/linux]% ./scripts/checkpatch.pl -f test.c
> | WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
> | #1: FILE: test.c:1:
> | +int *foo = 1;
> |
> | ERROR: "foo * bar" should be "foo *bar"
> | #3: FILE: test.c:3:
> | +int * bar = 1;
>
> Mark.
Sorry Mark, I'm sure I'll do a real useful patch to you very soon
V/R
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/4] arm64: errata: Fix missing space after comma
2026-03-01 0:34 [PATCH 1/4] arm64: errata: Fix missing space after comma Josh Law
` (2 preceding siblings ...)
2026-03-01 0:34 ` [PATCH 4/4] arm64: kernel: Fix style in io.c macro Josh Law
@ 2026-03-03 11:50 ` Will Deacon
3 siblings, 0 replies; 9+ messages in thread
From: Will Deacon @ 2026-03-03 11:50 UTC (permalink / raw)
To: Josh Law; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel, Josh Law
On Sun, Mar 01, 2026 at 12:34:04AM +0000, Josh Law wrote:
> Signed-off-by: Josh Law <objecting@objecting.org>
We don't tend to take patches without commit messages. Please read
Documentation/process/submitting-patches.rst, have a look at the git log
to see what other patches look like, include a cover letter when sending
multiple patches at once and also bear in mind that purely cosmetic
changes such as these are often considered as "churn" and consequently
ignored.
You probably also need to fix your mail setup so that the author and
the SoB line match.
Will
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-03-03 11:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-01 0:34 [PATCH 1/4] arm64: errata: Fix missing space after comma Josh Law
2026-03-01 0:34 ` [PATCH 2/4] arm64: fpsimd: make stack ctl_table const Josh Law
2026-03-01 0:34 ` [PATCH 3/4] arm64: kernel: Move const after static in get_kaslr_seed Josh Law
2026-03-01 0:34 ` [PATCH 4/4] arm64: kernel: Fix style in io.c macro Josh Law
2026-03-02 14:51 ` Mark Rutland
2026-03-02 15:45 ` Josh Law
2026-03-02 18:08 ` Mark Rutland
2026-03-02 18:21 ` Josh Law
2026-03-03 11:50 ` [PATCH 1/4] arm64: errata: Fix missing space after comma Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox