diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-21 20:11:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 13:01:20 -0500 |
commit | a455589f181e60439c736c6c6a068bb7e6dc23f0 (patch) | |
tree | 48d377e7db8d21fd606ba8c84a72b95f3d23c10b /arch | |
parent | 41d28bca2da4bd75a8915c1ccf2cacf7f4a2e531 (diff) |
assorted conversions to %p[dD]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/oprofile/cell/spu_task_sync.c | 10 | ||||
-rw-r--r-- | arch/s390/hypfs/hypfs_dbfs.c | 3 | ||||
-rw-r--r-- | arch/x86/ia32/ia32_aout.c | 8 |
3 files changed, 9 insertions, 12 deletions
diff --git a/arch/powerpc/oprofile/cell/spu_task_sync.c b/arch/powerpc/oprofile/cell/spu_task_sync.c index 28f1af2db1f5..1c27831df1ac 100644 --- a/arch/powerpc/oprofile/cell/spu_task_sync.c +++ b/arch/powerpc/oprofile/cell/spu_task_sync.c | |||
@@ -331,8 +331,7 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, | |||
331 | 331 | ||
332 | if (mm->exe_file) { | 332 | if (mm->exe_file) { |
333 | app_cookie = fast_get_dcookie(&mm->exe_file->f_path); | 333 | app_cookie = fast_get_dcookie(&mm->exe_file->f_path); |
334 | pr_debug("got dcookie for %s\n", | 334 | pr_debug("got dcookie for %pD\n", mm->exe_file); |
335 | mm->exe_file->f_dentry->d_name.name); | ||
336 | } | 335 | } |
337 | 336 | ||
338 | for (vma = mm->mmap; vma; vma = vma->vm_next) { | 337 | for (vma = mm->mmap; vma; vma = vma->vm_next) { |
@@ -342,15 +341,14 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, | |||
342 | if (!vma->vm_file) | 341 | if (!vma->vm_file) |
343 | goto fail_no_image_cookie; | 342 | goto fail_no_image_cookie; |
344 | 343 | ||
345 | pr_debug("Found spu ELF at %X(object-id:%lx) for file %s\n", | 344 | pr_debug("Found spu ELF at %X(object-id:%lx) for file %pD\n", |
346 | my_offset, spu_ref, | 345 | my_offset, spu_ref, vma->vm_file); |
347 | vma->vm_file->f_dentry->d_name.name); | ||
348 | *offsetp = my_offset; | 346 | *offsetp = my_offset; |
349 | break; | 347 | break; |
350 | } | 348 | } |
351 | 349 | ||
352 | *spu_bin_dcookie = fast_get_dcookie(&vma->vm_file->f_path); | 350 | *spu_bin_dcookie = fast_get_dcookie(&vma->vm_file->f_path); |
353 | pr_debug("got dcookie for %s\n", vma->vm_file->f_dentry->d_name.name); | 351 | pr_debug("got dcookie for %pD\n", vma->vm_file); |
354 | 352 | ||
355 | up_read(&mm->mmap_sem); | 353 | up_read(&mm->mmap_sem); |
356 | 354 | ||
diff --git a/arch/s390/hypfs/hypfs_dbfs.c b/arch/s390/hypfs/hypfs_dbfs.c index 2badf2bf9cd7..47fe1055c714 100644 --- a/arch/s390/hypfs/hypfs_dbfs.c +++ b/arch/s390/hypfs/hypfs_dbfs.c | |||
@@ -83,10 +83,9 @@ static ssize_t dbfs_read(struct file *file, char __user *buf, | |||
83 | 83 | ||
84 | static long dbfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | 84 | static long dbfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
85 | { | 85 | { |
86 | struct hypfs_dbfs_file *df; | 86 | struct hypfs_dbfs_file *df = file_inode(file)->i_private; |
87 | long rc; | 87 | long rc; |
88 | 88 | ||
89 | df = file->f_path.dentry->d_inode->i_private; | ||
90 | mutex_lock(&df->lock); | 89 | mutex_lock(&df->lock); |
91 | if (df->unlocked_ioctl) | 90 | if (df->unlocked_ioctl) |
92 | rc = df->unlocked_ioctl(file, cmd, arg); | 91 | rc = df->unlocked_ioctl(file, cmd, arg); |
diff --git a/arch/x86/ia32/ia32_aout.c b/arch/x86/ia32/ia32_aout.c index df91466f973d..ae6aad1d24f7 100644 --- a/arch/x86/ia32/ia32_aout.c +++ b/arch/x86/ia32/ia32_aout.c | |||
@@ -342,8 +342,8 @@ static int load_aout_binary(struct linux_binprm *bprm) | |||
342 | time_after(jiffies, error_time + 5*HZ)) { | 342 | time_after(jiffies, error_time + 5*HZ)) { |
343 | printk(KERN_WARNING | 343 | printk(KERN_WARNING |
344 | "fd_offset is not page aligned. Please convert " | 344 | "fd_offset is not page aligned. Please convert " |
345 | "program: %s\n", | 345 | "program: %pD\n", |
346 | bprm->file->f_path.dentry->d_name.name); | 346 | bprm->file); |
347 | error_time = jiffies; | 347 | error_time = jiffies; |
348 | } | 348 | } |
349 | #endif | 349 | #endif |
@@ -429,8 +429,8 @@ static int load_aout_library(struct file *file) | |||
429 | if (time_after(jiffies, error_time + 5*HZ)) { | 429 | if (time_after(jiffies, error_time + 5*HZ)) { |
430 | printk(KERN_WARNING | 430 | printk(KERN_WARNING |
431 | "N_TXTOFF is not page aligned. Please convert " | 431 | "N_TXTOFF is not page aligned. Please convert " |
432 | "library: %s\n", | 432 | "library: %pD\n", |
433 | file->f_path.dentry->d_name.name); | 433 | file); |
434 | error_time = jiffies; | 434 | error_time = jiffies; |
435 | } | 435 | } |
436 | #endif | 436 | #endif |