RDMA/cxgb3: Annotate an RCU pointer
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:48:51 +0000 (10:48 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 15 Oct 2017 00:47:05 +0000 (20:47 -0400)
Annotate t3cdev.l2opt with __rcu since it is used as an RCU pointer.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/chelsio/cxgb3/t3cdev.h

index 705713b56636d5162b7992d1febf085ac06817f8..3c3e6cf6aca606cb0afecc83621fd37ab06cc4a9 100644 (file)
@@ -60,7 +60,7 @@ struct t3cdev {
        int (*ctl)(struct t3cdev *dev, unsigned int req, void *data);
        void (*neigh_update)(struct t3cdev *dev, struct neighbour *neigh);
        void *priv;             /* driver private data */
-       void *l2opt;            /* optional layer 2 data */
+       void __rcu *l2opt;      /* optional layer 2 data */
        void *l3opt;            /* optional layer 3 data */
        void *l4opt;            /* optional layer 4 data */
        void *ulp;              /* ulp stuff */