linux/include
Adrian Bunk b50ec7d807 [PATCH] kcalloc(): INT_MAX -> ULONG_MAX
Since size_t has the same size as a long on all architectures, it's enough
for overflow checks to check against ULONG_MAX.

This change could allow a compiler better optimization (especially in the
n=1 case).

The practical effect seems to be positive, but quite small:

    text           data     bss      dec            hex filename
21762380        5859870 1848928 29471178        1c1b1ca vmlinux-old
21762211        5859870 1848928 29471009        1c1b121 vmlinux-patched

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:53:58 -08:00
..
acpi
asm-alpha
asm-arm [ARM] Fix cosmetic typo in asm/irq.h 2006-03-20 10:12:31 +00:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] add EXPORT_SYMBOL_GPL_FUTURE() 2006-03-20 13:42:58 -08:00
asm-h8300
asm-i386 [PATCH] don't call check_acpi_pci() on x86 with ACPI disabled 2006-03-22 07:53:54 -08:00
asm-ia64 Pull sn2-reduce-kmalloc-wrap into release branch 2006-03-21 08:22:56 -08:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2006-03-21 09:25:47 -08:00
asm-parisc
asm-powerpc
asm-ppc
asm-s390 [PATCH] mm: remove set_pgdir leftovers 2006-03-22 07:53:56 -08:00
asm-sh
asm-sh64 [PATCH] mm: remove set_pgdir leftovers 2006-03-22 07:53:56 -08:00
asm-sparc [SPARC]: Fixup SO_PEERSEC value on 32-bit sparc. 2006-03-20 22:53:42 -08:00
asm-sparc64 [SPARC64]: Fix 2 bugs in huge page support. 2006-03-20 01:17:17 -08:00
asm-um
asm-v850
asm-x86_64
asm-xtensa
keys
linux [PATCH] kcalloc(): INT_MAX -> ULONG_MAX 2006-03-22 07:53:58 -08:00
math-emu
media V4L/DVB (3513): Remove saa711x driver 2006-03-21 08:53:40 -08:00
mtd
net [LLC]: llc_mac_hdr_init const arguments 2006-03-20 22:59:36 -08:00
pcmcia
rdma IB/umad: Add support for large RMPP transfers 2006-03-20 10:08:23 -08:00
rxrpc
scsi
sound
video