|
@@ -104,15 +104,15 @@ union { \
|
|
|
|
|
|
#undef __kfifo_initializer
|
|
#undef __kfifo_initializer
|
|
|
|
|
|
-extern void kfifo_init(struct kfifo *fifo, unsigned char *buffer,
|
|
|
|
|
|
+extern void kfifo_init(struct kfifo *fifo, void *buffer,
|
|
unsigned int size);
|
|
unsigned int size);
|
|
extern __must_check int kfifo_alloc(struct kfifo *fifo, unsigned int size,
|
|
extern __must_check int kfifo_alloc(struct kfifo *fifo, unsigned int size,
|
|
gfp_t gfp_mask);
|
|
gfp_t gfp_mask);
|
|
extern void kfifo_free(struct kfifo *fifo);
|
|
extern void kfifo_free(struct kfifo *fifo);
|
|
extern unsigned int kfifo_in(struct kfifo *fifo,
|
|
extern unsigned int kfifo_in(struct kfifo *fifo,
|
|
- const unsigned char *from, unsigned int len);
|
|
|
|
|
|
+ const void *from, unsigned int len);
|
|
extern __must_check unsigned int kfifo_out(struct kfifo *fifo,
|
|
extern __must_check unsigned int kfifo_out(struct kfifo *fifo,
|
|
- unsigned char *to, unsigned int len);
|
|
|
|
|
|
+ void *to, unsigned int len);
|
|
|
|
|
|
/**
|
|
/**
|
|
* kfifo_reset - removes the entire FIFO contents
|
|
* kfifo_reset - removes the entire FIFO contents
|
|
@@ -194,7 +194,7 @@ static inline __must_check unsigned int kfifo_avail(struct kfifo *fifo)
|
|
* bytes copied.
|
|
* bytes copied.
|
|
*/
|
|
*/
|
|
static inline unsigned int kfifo_in_locked(struct kfifo *fifo,
|
|
static inline unsigned int kfifo_in_locked(struct kfifo *fifo,
|
|
- const unsigned char *from, unsigned int n, spinlock_t *lock)
|
|
|
|
|
|
+ const void *from, unsigned int n, spinlock_t *lock)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
unsigned int ret;
|
|
unsigned int ret;
|
|
@@ -219,7 +219,7 @@ static inline unsigned int kfifo_in_locked(struct kfifo *fifo,
|
|
* @to buffer and returns the number of copied bytes.
|
|
* @to buffer and returns the number of copied bytes.
|
|
*/
|
|
*/
|
|
static inline __must_check unsigned int kfifo_out_locked(struct kfifo *fifo,
|
|
static inline __must_check unsigned int kfifo_out_locked(struct kfifo *fifo,
|
|
- unsigned char *to, unsigned int n, spinlock_t *lock)
|
|
|
|
|
|
+ void *to, unsigned int n, spinlock_t *lock)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
unsigned int ret;
|
|
unsigned int ret;
|