diff options
author | Alan Cox <alan@linux.intel.com> | 2009-09-19 13:13:17 -0700 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 13:13:17 -0700 |
commit | f8a7c1a976a6672204c7f4f0f694f33715dfa617 (patch) | |
tree | cf515b038bb3765d57249b692d8989257befdabc /include | |
parent | 5342b77c4123ba39f911d92a813295fb3bb21f69 (diff) | |
download | linux-3.10-f8a7c1a976a6672204c7f4f0f694f33715dfa617.tar.gz linux-3.10-f8a7c1a976a6672204c7f4f0f694f33715dfa617.tar.bz2 linux-3.10-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 'include')
-rw-r--r-- | include/linux/kfifo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 29f62e1733f..ad6bdf5a597 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h @@ -38,7 +38,7 @@ extern struct kfifo *kfifo_alloc(unsigned int size, gfp_t gfp_mask, spinlock_t *lock); extern void kfifo_free(struct kfifo *fifo); extern unsigned int __kfifo_put(struct kfifo *fifo, - unsigned char *buffer, unsigned int len); + const unsigned char *buffer, unsigned int len); extern unsigned int __kfifo_get(struct kfifo *fifo, unsigned char *buffer, unsigned int len); @@ -77,7 +77,7 @@ static inline void kfifo_reset(struct kfifo *fifo) * bytes copied. */ static inline unsigned int kfifo_put(struct kfifo *fifo, - unsigned char *buffer, unsigned int len) + const unsigned char *buffer, unsigned int len) { unsigned long flags; unsigned int ret; |