Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56513
b: refs/heads/master
c: ade3aff
h: refs/heads/master
i:
  56511: 6169015
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 17, 2007
1 parent be316ed commit fb8f70d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b44f7a5b5078d737b3f5914978aabb761254840
refs/heads/master: ade3aff25fb2dce76e2a9b53e1334bd0a174f739
7 changes: 6 additions & 1 deletion trunk/include/linux/slub_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ static inline struct kmem_cache *kmalloc_slab(size_t size)
if (index == 0)
return NULL;

if (index < 0) {
/*
* This function only gets expanded if __builtin_constant_p(size), so
* testing it here shouldn't be needed. But some versions of gcc need
* help.
*/
if (__builtin_constant_p(size) && index < 0) {
/*
* Generate a link failure. Would be great if we could
* do something to stop the compile here.
Expand Down

0 comments on commit fb8f70d

Please sign in to comment.