Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95295
b: refs/heads/master
c: d40cee2
h: refs/heads/master
i:
  95293: b9b7331
  95291: e9c0878
  95287: 11d237e
  95279: defc507
  95263: 699f468
  95231: 9386f16
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Apr 30, 2008
1 parent 9d6aeec commit 147a742
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: d7853d1f8932c847a8d7b3b38e6baedf77148cfb
refs/heads/master: d40cee245ff6ad05d3448401d7320be82c1c5af1
4 changes: 2 additions & 2 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
*left_over = slab_size - nr_objs*buffer_size - mgmt_size;
}

#define slab_error(cachep, msg) __slab_error(__FUNCTION__, cachep, msg)
#define slab_error(cachep, msg) __slab_error(__func__, cachep, msg)

static void __slab_error(const char *function, struct kmem_cache *cachep,
char *msg)
Expand Down Expand Up @@ -2156,7 +2156,7 @@ kmem_cache_create (const char *name, size_t size, size_t align,
*/
if (!name || in_interrupt() || (size < BYTES_PER_WORD) ||
size > KMALLOC_MAX_SIZE) {
printk(KERN_ERR "%s: Early error in slab %s\n", __FUNCTION__,
printk(KERN_ERR "%s: Early error in slab %s\n", __func__,
name);
BUG();
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static unsigned long *__init sparse_early_usemap_alloc(unsigned long pnum)
/* Stupid: suppress gcc warning for SPARSEMEM && !NUMA */
nid = 0;

printk(KERN_WARNING "%s: allocation failed\n", __FUNCTION__);
printk(KERN_WARNING "%s: allocation failed\n", __func__);
return NULL;
}

Expand Down Expand Up @@ -302,7 +302,7 @@ struct page __init *sparse_early_mem_map_alloc(unsigned long pnum)
return map;

printk(KERN_ERR "%s: sparsemem memory map backing failed "
"some memory will not be available.\n", __FUNCTION__);
"some memory will not be available.\n", __func__);
ms->section_mem_map = 0;
return NULL;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask,
shrinker->nr += delta;
if (shrinker->nr < 0) {
printk(KERN_ERR "%s: nr=%ld\n",
__FUNCTION__, shrinker->nr);
__func__, shrinker->nr);
shrinker->nr = max_pass;
}

Expand Down Expand Up @@ -339,7 +339,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping,
if (PagePrivate(page)) {
if (try_to_free_buffers(page)) {
ClearPageDirty(page);
printk("%s: orphaned page\n", __FUNCTION__);
printk("%s: orphaned page\n", __func__);
return PAGE_CLEAN;
}
}
Expand Down

0 comments on commit 147a742

Please sign in to comment.