aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c4
-rw-r--r--mm/memory.c8
-rw-r--r--mm/slab.c8
3 files changed, 9 insertions, 11 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 9b9aeef8e590..f8feeeca6686 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1761,7 +1761,7 @@ static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp)
1761 * Unregister hstate attributes from a single node device. 1761 * Unregister hstate attributes from a single node device.
1762 * No-op if no hstate attributes attached. 1762 * No-op if no hstate attributes attached.
1763 */ 1763 */
1764void hugetlb_unregister_node(struct node *node) 1764static void hugetlb_unregister_node(struct node *node)
1765{ 1765{
1766 struct hstate *h; 1766 struct hstate *h;
1767 struct node_hstate *nhs = &node_hstates[node->dev.id]; 1767 struct node_hstate *nhs = &node_hstates[node->dev.id];
@@ -1805,7 +1805,7 @@ static void hugetlb_unregister_all_nodes(void)
1805 * Register hstate attributes for a single node device. 1805 * Register hstate attributes for a single node device.
1806 * No-op if attributes already registered. 1806 * No-op if attributes already registered.
1807 */ 1807 */
1808void hugetlb_register_node(struct node *node) 1808static void hugetlb_register_node(struct node *node)
1809{ 1809{
1810 struct hstate *h; 1810 struct hstate *h;
1811 struct node_hstate *nhs = &node_hstates[node->dev.id]; 1811 struct node_hstate *nhs = &node_hstates[node->dev.id];
diff --git a/mm/memory.c b/mm/memory.c
index f7a1fba85d14..6dc1882fbd72 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -715,11 +715,11 @@ static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr,
715 * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y 715 * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y
716 */ 716 */
717 if (vma->vm_ops) 717 if (vma->vm_ops)
718 print_symbol(KERN_ALERT "vma->vm_ops->fault: %s\n", 718 printk(KERN_ALERT "vma->vm_ops->fault: %pSR\n",
719 (unsigned long)vma->vm_ops->fault); 719 vma->vm_ops->fault);
720 if (vma->vm_file && vma->vm_file->f_op) 720 if (vma->vm_file && vma->vm_file->f_op)
721 print_symbol(KERN_ALERT "vma->vm_file->f_op->mmap: %s\n", 721 printk(KERN_ALERT "vma->vm_file->f_op->mmap: %pSR\n",
722 (unsigned long)vma->vm_file->f_op->mmap); 722 vma->vm_file->f_op->mmap);
723 dump_stack(); 723 dump_stack();
724 add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); 724 add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
725} 725}
diff --git a/mm/slab.c b/mm/slab.c
index 856e4a192d25..96079244c860 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2040,11 +2040,9 @@ static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines)
2040 } 2040 }
2041 2041
2042 if (cachep->flags & SLAB_STORE_USER) { 2042 if (cachep->flags & SLAB_STORE_USER) {
2043 printk(KERN_ERR "Last user: [<%p>]", 2043 printk(KERN_ERR "Last user: [<%p>](%pSR)\n",
2044 *dbg_userword(cachep, objp)); 2044 *dbg_userword(cachep, objp),
2045 print_symbol("(%s)", 2045 *dbg_userword(cachep, objp));
2046 (unsigned long)*dbg_userword(cachep, objp));
2047 printk("\n");
2048 } 2046 }
2049 realobj = (char *)objp + obj_offset(cachep); 2047 realobj = (char *)objp + obj_offset(cachep);
2050 size = cachep->object_size; 2048 size = cachep->object_size;