aboutsummaryrefslogtreecommitdiff
path: root/kernel/kfifo.c
diff options
context:
space:
mode:
authorGravatar Alan Cox <alan@linux.intel.com> 2009-09-19 13:13:17 -0700
committerGravatar Live-CD User <linux@linux.site> 2009-09-19 13:13:17 -0700
commitf8a7c1a976a6672204c7f4f0f694f33715dfa617 (patch)
treecf515b038bb3765d57249b692d8989257befdabc /kernel/kfifo.c
parentslip: Clean up create and destroy (diff)
downloadlinux-f8a7c1a976a6672204c7f4f0f694f33715dfa617.tar.gz
linux-f8a7c1a976a6672204c7f4f0f694f33715dfa617.tar.bz2
linux-f8a7c1a976a6672204c7f4f0f694f33715dfa617.zip
kfifo: Use "const" definitions
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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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;