Skip to contentSkip to conversation

kernel-hwcap.h change causing full kernel rebuilds

DISCUSSION Jens Axboe 2 participants 3 messages Apr 21

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

Hi,

Maybe this has already been reported, but a quick search on lore did not find anything. So here goes... After commit:

commit abed23c3c44f565dc812563ac015be70dd61e97b

Author: Mark Brown <[email protected]>
Date:   Mon Mar 2 22:53:16 2026 +0000

arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps

arch/arm64/include/generated/asm/kernel-hwcap.h is generated for _every build_, which means that you can literally run make back to back without _any_ source changes and you are rewarded with a full kernel rebuild. Not sure how this ever got past any kind of testing, because it's very noticeable.

For now I've reverted this change locally as any kind of testing now kicks off a full build, when a single file rebuild is all that is needed.

Signature · 1 line
Jens Axboe
#1 lore raw

Hi!

Quoted 4 lines · Jens Axboe

Hi,

Maybe this has already been reported, but a quick search on lore did not find anything. So here goes... After commit:

Here you go!

https://lore.kernel.org/linux-arm-kernel/[email protected]/

and on it's in rc1 now:

https://lore.kernel.org/linux-arm-kernel/[email protected]/

Thanks,
Joey

Quoted 22 lines

commit abed23c3c44f565dc812563ac015be70dd61e97b

Author: Mark Brown <[email protected]>
Date:   Mon Mar 2 22:53:16 2026 +0000

arm64/hwcap: Generate the KERNEL_HWCAP_ definitions for the hwcaps

arch/arm64/include/generated/asm/kernel-hwcap.h is generated for _every build_, which means that you can literally run make back to back without _any_ source changes and you are rewarded with a full kernel rebuild. Not sure how this ever got past any kind of testing, because it's very noticeable.

For now I've reverted this change locally as any kind of testing now kicks off a full build, when a single file rebuild is all that is needed.

Signature · 1 line
Jens Axboe
author
#2 lore raw
Quoted 11 lines · Joey Gouly

Hi!

Quoted 4 lines · Jens Axboe

Hi,

Maybe this has already been reported, but a quick search on lore did not find anything. So here goes... After commit:

Here you go!

https://lore.kernel.org/linux-arm-kernel/[email protected]/

Thanks, glad it's fixed, because that was pretty terrible yesterday until I started pondering wtf any kind of testing was taking literally forever. Guess I'll rebase my 7.1 based branches after -rc1, anything post abed23c3c44f565dc812563ac015be70dd61e97b and pre that fix is basically unusable on arm64 for any kind of development.

Signature · 1 line
Jens Axboe