mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
xps: add __rcu annotations
Avoid sparse warnings : add __rcu annotations and use rcu_dereference_protected() where necessary. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Cc: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b02038a17b
commit
a417786948
2 changed files with 17 additions and 11 deletions
|
|
@ -622,7 +622,7 @@ struct xps_map {
|
|||
*/
|
||||
struct xps_dev_maps {
|
||||
struct rcu_head rcu;
|
||||
struct xps_map *cpu_map[0];
|
||||
struct xps_map __rcu *cpu_map[0];
|
||||
};
|
||||
#define XPS_DEV_MAPS_SIZE (sizeof(struct xps_dev_maps) + \
|
||||
(nr_cpu_ids * sizeof(struct xps_map *)))
|
||||
|
|
@ -1049,7 +1049,7 @@ struct net_device {
|
|||
spinlock_t tx_global_lock;
|
||||
|
||||
#ifdef CONFIG_XPS
|
||||
struct xps_dev_maps *xps_maps;
|
||||
struct xps_dev_maps __rcu *xps_maps;
|
||||
#endif
|
||||
|
||||
/* These may be needed for future network-power-down code. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue