Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1650180
| From | Peter Huewe <peterhuewe@gmx.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] tpm, tpmrm: Mark tpmrm_write as static |
| Date | 2017-05-25 07:40 +0200 |
| Message-ID | <tKTF7-45C-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
drivers/char/tpm/tpmrm-dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpmrm-dev.c b/drivers/char/tpm/tpmrm-dev.c
index c636e7f..1a0e97a 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;
--
2.10.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] tpm, tpmrm: Mark tpmrm_write as static Peter Huewe <peterhuewe@gmx.de> - 2017-05-25 07:40 +0200 Re: [PATCH] tpm, tpmrm: Mark tpmrm_write as static Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-05-30 06:50 +0200
csiph-web