Commit a069c266ae5fdfbf5b4aecf2c672413aa33b2504
Committed by
Linus Torvalds
1 parent
02b12b7a28
Exists in
master
and in
4 other branches
lib: build list_sort() only if needed
Build list_sort() only for configs that need it -- those that don't save ~581 bytes (i386). Signed-off-by: Don Mullis <don.mullis@gmail.com> Cc: Dave Airlie <airlied@redhat.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Dave Chinner <david@fromorbit.com> Cc: Artem Bityutskiy <dedekind@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 4 changed files with 7 additions and 1 deletions Side-by-side Diff
drivers/gpu/drm/Kconfig
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | depends on (AGP || AGP=n) && PCI && !EMULATED_CMPXCHG && MMU |
10 | 10 | select I2C |
11 | 11 | select I2C_ALGOBIT |
12 | + select LIST_SORT | |
12 | 13 | help |
13 | 14 | Kernel-level support for the Direct Rendering Infrastructure (DRI) |
14 | 15 | introduced in XFree86 4.0. If you say Y here, you need to select |
fs/ubifs/Kconfig
lib/Kconfig
lib/Makefile
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | |
22 | 22 | obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \ |
23 | 23 | bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \ |
24 | - string_helpers.o gcd.o list_sort.o | |
24 | + string_helpers.o gcd.o | |
25 | 25 | |
26 | 26 | ifeq ($(CONFIG_DEBUG_KOBJECT),y) |
27 | 27 | CFLAGS_kobject.o += -DDEBUG |
... | ... | @@ -40,6 +40,7 @@ |
40 | 40 | lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o |
41 | 41 | obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o |
42 | 42 | obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o |
43 | +obj-$(CONFIG_LIST_SORT) += list_sort.o | |
43 | 44 | obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o |
44 | 45 | obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o |
45 | 46 | obj-$(CONFIG_DEBUG_LIST) += list_debug.o |