mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
staging: gasket: unify multi-line string
Fix three checkpatch.pl warnings of 'quoted string split across lines' in gasket_core.c by merging the strings in one line. Though some strings are over 80 characters long, fixing this warning is necessary to ease grep-ing the source for printk. Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in> Link: https://lore.kernel.org/r/20200212175826.GA5967@kaaira-HP-Pavilion-Notebook Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
032974659b
commit
0e35fa615e
1 changed files with 3 additions and 6 deletions
|
@ -692,8 +692,7 @@ static bool gasket_mmap_has_permissions(struct gasket_dev *gasket_dev,
|
|||
(vma->vm_flags & (VM_WRITE | VM_READ | VM_EXEC));
|
||||
if (requested_permissions & ~(bar_permissions)) {
|
||||
dev_dbg(gasket_dev->dev,
|
||||
"Attempting to map a region with requested permissions "
|
||||
"0x%x, but region has permissions 0x%x.\n",
|
||||
"Attempting to map a region with requested permissions 0x%x, but region has permissions 0x%x.\n",
|
||||
requested_permissions, bar_permissions);
|
||||
return false;
|
||||
}
|
||||
|
@ -1180,8 +1179,7 @@ static int gasket_open(struct inode *inode, struct file *filp)
|
|||
inode->i_size = 0;
|
||||
|
||||
dev_dbg(gasket_dev->dev,
|
||||
"Attempting to open with tgid %u (%s) (f_mode: 0%03o, "
|
||||
"fmode_write: %d is_root: %u)\n",
|
||||
"Attempting to open with tgid %u (%s) (f_mode: 0%03o, fmode_write: %d is_root: %u)\n",
|
||||
current->tgid, task_name, filp->f_mode,
|
||||
(filp->f_mode & FMODE_WRITE), is_root);
|
||||
|
||||
|
@ -1258,8 +1256,7 @@ static int gasket_release(struct inode *inode, struct file *file)
|
|||
mutex_lock(&gasket_dev->mutex);
|
||||
|
||||
dev_dbg(gasket_dev->dev,
|
||||
"Releasing device node. Call origin: tgid %u (%s) "
|
||||
"(f_mode: 0%03o, fmode_write: %d, is_root: %u)\n",
|
||||
"Releasing device node. Call origin: tgid %u (%s) (f_mode: 0%03o, fmode_write: %d, is_root: %u)\n",
|
||||
current->tgid, task_name, file->f_mode,
|
||||
(file->f_mode & FMODE_WRITE), is_root);
|
||||
dev_dbg(gasket_dev->dev, "Current open count (owning tgid %u): %d\n",
|
||||
|
|
Loading…
Reference in a new issue