staging/fwserial: Annotate rcu pointers with __rcu
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 30 Jan 2013 22:44:16 +0000 (17:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2013 09:30:34 +0000 (10:30 +0100)
Fixes these sparse warnings:
drivers/staging/fwserial/fwserial.c:430:16: sparse: incompatible types in comparison expression (different address spaces)
drivers/staging/fwserial/fwserial.c:699:30: sparse: incompatible types in comparison expression (different address spaces)
drivers/staging/fwserial/fwserial.c:802:16: sparse: incompatible types in comparison expression (different address spaces)
drivers/staging/fwserial/fwserial.c:898:16: sparse: incompatible types in comparison expression (different address spaces)
drivers/staging/fwserial/fwserial.c:1842:14: sparse: incompatible types in comparison expression (different address spaces)

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.h

index 33a3a53..514f571 100644 (file)
@@ -280,7 +280,7 @@ struct fwtty_port {
                                   loopback:1;
        unsigned long              flags;
 
-       struct fwtty_peer          *peer;
+       struct fwtty_peer __rcu    *peer;
 
        struct async_icount        icount;
        struct stats               stats;