tpm, tpmrm: Mark tpmrm_write as static
authorPeter Huewe <peterhuewe@gmx.de>
Thu, 25 May 2017 05:43:05 +0000 (07:43 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 13 Jun 2017 19:02:08 +0000 (22:02 +0300)
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>
drivers/char/tpm/tpmrm-dev.c

index c636e7fdd1f5136e0eb50e7c8a72a6fbec2d8513..1a0e97a5da5a452d8aa7b486392ebcad4e1654bc 100644 (file)
@@ -45,7 +45,7 @@ static int tpmrm_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-ssize_t tpmrm_write(struct file *file, const char __user *buf,
+static ssize_t tpmrm_write(struct file *file, const char __user *buf,
                   size_t size, loff_t *off)
 {
        struct file_priv *fpriv = file->private_data;