arm64: clean vdso files
Subsystems (2)
PATCH 1/1 arm64: clean vdso files
commit a5b8ca97fbf8 ("arm64: do not descend to vdso directories twice") changes the cleaning behavior of arm64's vdso files, in that vdso.lds, vdso.so, and vdso.so.dbg are not removed upon a 'make clean/mrproper':
$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf Would remove arch/arm64/kernel/vdso/vdso.lds Would remove arch/arm64/kernel/vdso/vdso.so Would remove arch/arm64/kernel/vdso/vdso.so.dbg
To remedy this, manually descend into arch/arm64/kernel/vdso upon cleaning.
After this commit:
$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf <empty>
--- arch/arm64/Makefile | 1 + 1 file changed, 1 insertion(+)
arch/arm64/Makefile +1 -0
@@ -181,6 +181,7 @@ archprepare: # We use MRPROPER_FILES and CLEAN_FILES now archclean: $(Q)$(MAKE) $(clean)=$(boot) + $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso ifeq ($(KBUILD_EXTMOD),) # We need to generate vdso-offsets.h before compiling certain files in kernel/.
Signature · 1 line
2.32.0.605.g8dce9f2422-goog
Greg KH
maintainerQuoted 22 lines · Andrew Delgadillo
commit
a5b8ca97fbf8("arm64: do not descend to vdso directories twice") changes the cleaning behavior of arm64's vdso files, in thatvdso.lds, vdso.so, and vdso.so.dbg are not removed upon a 'make clean/mrproper':$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf Would remove arch/arm64/kernel/vdso/vdso.lds Would remove arch/arm64/kernel/vdso/vdso.so Would remove arch/arm64/kernel/vdso/vdso.so.dbgTo remedy this, manually descend into
arch/arm64/kernel/vdsoupon cleaning.After this commit:
$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf <empty>
Quoted 5 lines
Signed-off-by Andrew Delgadillo <[email protected]>--- arch/arm64/Makefile | 1 + 1 file changed, 1 insertion(+)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
Will Deacon
maintainer[+Masahiro]
Quoted 15 lines · Andrew Delgadillo
commit
a5b8ca97fbf8("arm64: do not descend to vdso directories twice") changes the cleaning behavior of arm64's vdso files, in thatvdso.lds, vdso.so, and vdso.so.dbg are not removed upon a 'make clean/mrproper':$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf Would remove arch/arm64/kernel/vdso/vdso.lds Would remove arch/arm64/kernel/vdso/vdso.so Would remove arch/arm64/kernel/vdso/vdso.so.dbgTo remedy this, manually descend into
arch/arm64/kernel/vdsoupon cleaning.
Quoted 6 lines
After this commit:
$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf <empty>
Well spotted!
Quoted 10 lines
Signed-off-by Andrew Delgadillo <[email protected]>--- arch/arm64/Makefile | 1 + 1 file changed, 1 insertion(+)arch/arm64/Makefile +0
-0
arch/arm64/Makefile archprepare: · line 184
Quoted 4 lines
arch/arm64/Makefile +1
-0@@ -181,6 +181,7 @@ archprepare: # We use MRPROPER_FILES and CLEAN_FILES now archclean: $(Q)$(MAKE) $(clean)=$(boot) + $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdso
I think we also need to clean the vdso32 directory here. Please can you send a v2 with that added?
Cheers,
Will
Quoted 19 lines · Will Deacon
[+Masahiro]
Quoted 15 lines · Andrew Delgadillo
commit
a5b8ca97fbf8("arm64: do not descend to vdso directories twice") changes the cleaning behavior of arm64's vdso files, in thatvdso.lds, vdso.so, and vdso.so.dbg are not removed upon a 'make clean/mrproper':$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf Would remove arch/arm64/kernel/vdso/vdso.lds Would remove arch/arm64/kernel/vdso/vdso.so Would remove arch/arm64/kernel/vdso/vdso.so.dbgTo remedy this, manually descend into
arch/arm64/kernel/vdsoupon cleaning.
Quoted 8 lines
Quoted 6 lines
After this commit:
$ make defconfig ARCH=arm64 $ make ARCH=arm64 $ make mrproper ARCH=arm64 $ git clean -nxdf <empty>Well spotted!
Ah, I missed this. Sorry.
Yes, please do this for vdso,
and vdso32 as well.
Quoted 21 lines
Quoted 10 lines
Signed-off-by Andrew Delgadillo <[email protected]>--- arch/arm64/Makefile | 1 + 1 file changed, 1 insertion(+)arch/arm64/Makefile +0
-0arch/arm64/Makefile archprepare: · line 184
Quoted 4 lines
arch/arm64/Makefile +1
-0@@ -181,6 +181,7 @@ archprepare: # We use MRPROPER_FILES and CLEAN_FILES now archclean: $(Q)$(MAKE) $(clean)=$(boot) + $(Q)$(MAKE) $(clean)=arch/arm64/kernel/vdsoI think we also need to clean the vdso32 directory here. Please can you send a v2 with that added?
Cheers,
Will
Signature · 2 lines
Best Regards Masahiro Yamada