commit | 21b2f44315d735345f02356239a819debdd89462 | [log] [tgz] |
---|---|---|
author | Stefani Seibold <stefani@seibold.net> | Tue Mar 22 14:27:42 2016 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Mar 22 15:36:02 2016 -0700 |
tree | d3eb0155d79f1182f4c510268cdd27987d576443 | |
parent | ad4db3b24a93e52a92ad8f9b0273a9416f202c23 [diff] |
kfifo: fix sparse complaints This patch fix complaints by the sparse tool when using kfifo_put() with non scalar types like structures (i.e. drivers/iio/industrialio-event.c). Casting a pointer to the value and read this pointer instead of directly casting the value will fix this. The generated code is equal. Signed-off-by: Stefani Seibold <stefani@seibold.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>