Commit e3ccf6e3699c879973b616fe681ecaa363457d41
Committed by
Linus Torvalds
1 parent
53dd2b55c5
Exists in
master
and in
4 other branches
[PATCH] uml: add checkstack support
Make checkstack work for UML. We need to pass the underlying architecture name, rather than "um" to checkstack.pl. Signed-off-by: Jeff Dike <jdike@addtoit.com> Acked-by: Matt Mackall <mpm@selenic.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
Makefile
... | ... | @@ -1385,9 +1385,13 @@ |
1385 | 1385 | endif #ifeq ($(mixed-targets),1) |
1386 | 1386 | |
1387 | 1387 | PHONY += checkstack kernelrelease kernelversion |
1388 | + | |
1389 | +# Use $(SUBARCH) here instead of $(ARCH) so that this works for UML. | |
1390 | +# In the UML case, $(SUBARCH) is the name of the underlying | |
1391 | +# architecture, while for all other arches, it is the same as $(ARCH). | |
1388 | 1392 | checkstack: |
1389 | 1393 | $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \ |
1390 | - $(PERL) $(src)/scripts/checkstack.pl $(ARCH) | |
1394 | + $(PERL) $(src)/scripts/checkstack.pl $(SUBARCH) | |
1391 | 1395 | |
1392 | 1396 | kernelrelease: |
1393 | 1397 | $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \ |