alpha: remove remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ The change in pci-iommu,c should be safe as arena has not been assigned when we get to this point. Some were within #if 0 blocks, have changed them and left the blocks as they appear to be debugging infrastructure. A #define FN __FUNCTION__ was removed and occurances of FN were replaced with __func__ as well. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
b901d40c97
commit
bbb8d343af
@@ -79,25 +79,21 @@ iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base,
|
||||
|
||||
#ifdef CONFIG_DISCONTIGMEM
|
||||
|
||||
if (!NODE_DATA(nid) ||
|
||||
(NULL == (arena = alloc_bootmem_node(NODE_DATA(nid),
|
||||
sizeof(*arena))))) {
|
||||
printk("%s: couldn't allocate arena from node %d\n"
|
||||
" falling back to system-wide allocation\n",
|
||||
__FUNCTION__, nid);
|
||||
arena = alloc_bootmem(sizeof(*arena));
|
||||
}
|
||||
arena = alloc_bootmem_node(NODE_DATA(nid), sizeof(*arena));
|
||||
if (!NODE_DATA(nid) || !arena) {
|
||||
printk("%s: couldn't allocate arena from node %d\n"
|
||||
" falling back to system-wide allocation\n",
|
||||
__func__, nid);
|
||||
arena = alloc_bootmem(sizeof(*arena));
|
||||
}
|
||||
|
||||
if (!NODE_DATA(nid) ||
|
||||
(NULL == (arena->ptes = __alloc_bootmem_node(NODE_DATA(nid),
|
||||
mem_size,
|
||||
align,
|
||||
0)))) {
|
||||
printk("%s: couldn't allocate arena ptes from node %d\n"
|
||||
" falling back to system-wide allocation\n",
|
||||
__FUNCTION__, nid);
|
||||
arena->ptes = __alloc_bootmem(mem_size, align, 0);
|
||||
}
|
||||
arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), mem_size, align, 0);
|
||||
if (!NODE_DATA(nid) || !arena->ptes) {
|
||||
printk("%s: couldn't allocate arena ptes from node %d\n"
|
||||
" falling back to system-wide allocation\n",
|
||||
__func__, nid);
|
||||
arena->ptes = __alloc_bootmem(mem_size, align, 0);
|
||||
}
|
||||
|
||||
#else /* CONFIG_DISCONTIGMEM */
|
||||
|
||||
|
Reference in New Issue
Block a user