]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/linux/kfifo.h
kfifo: fix sparse complaints
[mirror_ubuntu-zesty-kernel.git] / include / linux / kfifo.h
index 473b43678ad12ef360801ffd9e32594285efd41a..41eb6fdf87a84d05ae43bfd769943a89abb47d98 100644 (file)
@@ -401,7 +401,7 @@ __kfifo_int_must_check_helper( \
                        ((typeof(__tmp->type))__kfifo->data) : \
                        (__tmp->buf) \
                        )[__kfifo->in & __tmp->kfifo.mask] = \
-                               (typeof(*__tmp->type))__val; \
+                               *(typeof(__tmp->type))&__val; \
                        smp_wmb(); \
                        __kfifo->in++; \
                } \