diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2015-10-06 05:47:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-10 15:24:47 -0400 |
commit | 0df771dedf67622b9135709fe4cbfb3222481997 (patch) | |
tree | 85ec2ce5e1b233cd2782fe1077bb66e78ad552f6 /drivers/hwtracing/stm/stm.h | |
parent | fab6266e82a8981cccec55af47589665daf69fb6 (diff) |
stm class: Mark src::link __rcu
Source device's link is protected with srcu, mark it as such to have
proper build-time validation of accesses to this field. The update
side that's dereferencing it under an update lock also needs an
accessor to dereference this field to keep sparse happy.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm/stm.h')
-rw-r--r-- | drivers/hwtracing/stm/stm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/stm.h b/drivers/hwtracing/stm/stm.h index cf33bf976abe..95ece0292c99 100644 --- a/drivers/hwtracing/stm/stm.h +++ b/drivers/hwtracing/stm/stm.h | |||
@@ -74,7 +74,7 @@ struct stm_source_device { | |||
74 | struct device dev; | 74 | struct device dev; |
75 | struct stm_source_data *data; | 75 | struct stm_source_data *data; |
76 | spinlock_t link_lock; | 76 | spinlock_t link_lock; |
77 | struct stm_device *link; | 77 | struct stm_device __rcu *link; |
78 | struct list_head link_entry; | 78 | struct list_head link_entry; |
79 | /* one output per stm_source device */ | 79 | /* one output per stm_source device */ |
80 | struct stp_policy_node *policy_node; | 80 | struct stp_policy_node *policy_node; |