summaryrefslogtreecommitdiff
path: root/kernel/kfifo.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-06-26 11:02:03 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2009-06-26 11:02:03 +1000
commit2bd2224296556a8680877fc914ff38af7f90ffe0 (patch)
tree8c24978fbce994ea7ddf23015d0fbf22043701c6 /kernel/kfifo.c
parent09f092e68317cce9edc914d5a4f35f1f70edc3a0 (diff)
kfifo-const
Currently kfifo cannot be used by parts of the kernel that use "const" properly as kfifo itself does not use const for passed data blocks which are indeed const. Signed-off-by: Alan Cox <alan@linux.intel.com>
Diffstat (limited to 'kernel/kfifo.c')
-rw-r--r--kernel/kfifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kfifo.c b/kernel/kfifo.c
index 26539e3228e5..3765ff3c1bbe 100644
--- a/kernel/kfifo.c
+++ b/kernel/kfifo.c
@@ -117,7 +117,7 @@ EXPORT_SYMBOL(kfifo_free);
* writer, you don't need extra locking to use these functions.
*/
unsigned int __kfifo_put(struct kfifo *fifo,
- unsigned char *buffer, unsigned int len)
+ const unsigned char *buffer, unsigned int len)
{
unsigned int l;