[RFC PATCH] staging: most: set_cfg_buffer_size() can be static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes: 7c85575b16e9 ("staging: most: enable configfs support")
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
 configfs.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/most/configfs.c b/drivers/staging/most/configfs.c
index cefce69..36d40d7 100644
--- a/drivers/staging/most/configfs.c
+++ b/drivers/staging/most/configfs.c
@@ -31,7 +31,7 @@ struct mdev_link {
 	char param[MAX_LEN];
 };
 
-int set_cfg_buffer_size(struct mdev_link *link)
+static int set_cfg_buffer_size(struct mdev_link *link)
 {
 	if (!link->buffer_size)
 		return -ENODATA;
@@ -39,7 +39,7 @@ int set_cfg_buffer_size(struct mdev_link *link)
 					link->buffer_size);
 }
 
-int set_cfg_subbuffer_size(struct mdev_link *link)
+static int set_cfg_subbuffer_size(struct mdev_link *link)
 {
 	if (!link->subbuffer_size)
 		return -ENODATA;
@@ -47,7 +47,7 @@ int set_cfg_subbuffer_size(struct mdev_link *link)
 					   link->subbuffer_size);
 }
 
-int set_cfg_dbr_size(struct mdev_link *link)
+static int set_cfg_dbr_size(struct mdev_link *link)
 {
 	if (!link->dbr_size)
 		return -ENODATA;
@@ -55,7 +55,7 @@ int set_cfg_dbr_size(struct mdev_link *link)
 				     link->dbr_size);
 }
 
-int set_cfg_num_buffers(struct mdev_link *link)
+static int set_cfg_num_buffers(struct mdev_link *link)
 {
 	if (!link->num_buffers)
 		return -ENODATA;
@@ -63,7 +63,7 @@ int set_cfg_num_buffers(struct mdev_link *link)
 					link->num_buffers);
 }
 
-int set_cfg_packets_xact(struct mdev_link *link)
+static int set_cfg_packets_xact(struct mdev_link *link)
 {
 	if (!link->packets_per_xact)
 		return -ENODATA;
@@ -71,7 +71,7 @@ int set_cfg_packets_xact(struct mdev_link *link)
 					 link->packets_per_xact);
 }
 
-int set_cfg_direction(struct mdev_link *link)
+static int set_cfg_direction(struct mdev_link *link)
 {
 	if (!strlen(link->direction))
 		return -ENODATA;
@@ -79,7 +79,7 @@ int set_cfg_direction(struct mdev_link *link)
 				      link->direction);
 }
 
-int set_cfg_datatype(struct mdev_link *link)
+static int set_cfg_datatype(struct mdev_link *link)
 {
 	if (!strlen(link->datatype))
 		return -ENODATA;
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux