mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
backing-dev: kill unused pdflush_proc_obsolete()
After commit b35bd0d9f8, pdflush_proc_obsolete() is no longer
used. Kill the function and declaration.
Reported-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
5fdee2127f
commit
775d3a35dc
2 changed files with 0 additions and 22 deletions
|
|
@ -1072,23 +1072,3 @@ out:
|
|||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(wait_iff_congested);
|
||||
|
||||
int pdflush_proc_obsolete(struct ctl_table *table, int write,
|
||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||
{
|
||||
char kbuf[] = "0\n";
|
||||
|
||||
if (*ppos || *lenp < sizeof(kbuf)) {
|
||||
*lenp = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (copy_to_user(buffer, kbuf, sizeof(kbuf)))
|
||||
return -EFAULT;
|
||||
pr_warn_once("%s exported in /proc is scheduled for removal\n",
|
||||
table->procname);
|
||||
|
||||
*lenp = 2;
|
||||
*ppos += *lenp;
|
||||
return 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue