diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2017-05-25 07:43:05 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-06-13 21:02:08 +0200 |
commit | 5e9fefd26b47205e423b23c3f0a41b068c84fa1d (patch) | |
tree | 028fc864cfaefe8e8a3d76e7394bdf0da7945c08 /drivers/char/tpm/tpmrm-dev.c | |
parent | tpm: remove struct tpm_pcrextend_in (diff) | |
download | linux-5e9fefd26b47205e423b23c3f0a41b068c84fa1d.tar.xz linux-5e9fefd26b47205e423b23c3f0a41b068c84fa1d.zip |
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>
Diffstat (limited to 'drivers/char/tpm/tpmrm-dev.c')
-rw-r--r-- | drivers/char/tpm/tpmrm-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpmrm-dev.c b/drivers/char/tpm/tpmrm-dev.c index c636e7fdd1f5..1a0e97a5da5a 100644 --- a/drivers/char/tpm/tpmrm-dev.c +++ b/drivers/char/tpm/tpmrm-dev.c @@ -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; |