Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tpm, tpmrm: Mark tpmrm_write as static

sparse complains that tpmrm_write can be made static, and since it is
right we make it static.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

authored by

Peter Huewe and committed by
Jarkko Sakkinen
5e9fefd2 8816188f

+1 -1
+1 -1
drivers/char/tpm/tpmrm-dev.c
··· 45 45 return 0; 46 46 } 47 47 48 - ssize_t tpmrm_write(struct file *file, const char __user *buf, 48 + static ssize_t tpmrm_write(struct file *file, const char __user *buf, 49 49 size_t size, loff_t *off) 50 50 { 51 51 struct file_priv *fpriv = file->private_data;