summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/kfifo.h2
-rw-r--r--lib/kfifo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/kfifo.h b/include/kfifo.h
index 6f8be10f67..3eb03cb17c 100644
--- a/include/kfifo.h
+++ b/include/kfifo.h
@@ -43,7 +43,7 @@ void kfifo_free(struct kfifo *fifo);
* bytes copied.
*/
unsigned int kfifo_put(struct kfifo *fifo,
- unsigned char *buffer, unsigned int len);
+ const unsigned char *buffer, unsigned int len);
/**
* kfifo_get - gets some data from the FIFO
diff --git a/lib/kfifo.c b/lib/kfifo.c
index bf5cee1de0..27d44e9bd8 100644
--- a/lib/kfifo.c
+++ b/lib/kfifo.c
@@ -96,7 +96,7 @@ void kfifo_free(struct kfifo *fifo)
*
*/
unsigned int kfifo_put(struct kfifo *fifo,
- unsigned char *buffer, unsigned int len)
+ const unsigned char *buffer, unsigned int len)
{
unsigned int l;