Fix checkpatch issue: "CHECK: spinlock_t definition without comment".
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
static struct {
struct list_head head;
int cnt;
- spinlock_t lock;
+ spinlock_t lock; /* protect structure fields */
} qos_free_list;
static void init_qos_entry_list(void)
int qos_list_cnt;
int qos_null_idx;
struct gdm_wimax_csr_s csr[QOS_MAX];
- spinlock_t qos_lock;
+ spinlock_t qos_lock; /* Protect structure fields */
int qos_limit_size;
};
struct list_head hci_list;
ktime_t sdu_stamp;
u8 *sdu_buf;
- spinlock_t lock;
+ spinlock_t lock; /* protect structure fields */
int can_send;
int stop_sdu_tx;
};
struct list_head free_list;
struct list_head req_list;
u8 *rx_buf;
- spinlock_t lock;
+ spinlock_t lock; /* protect structure fields */
};
struct sdiowm_dev {
#if defined(CONFIG_WIMAX_GDM72XX_USB_PM) || defined(CONFIG_WIMAX_GDM72XX_K_MODE)
struct list_head pending_list;
#endif
- spinlock_t lock;
+ spinlock_t lock; /* Protect structure fields */
};
struct usb_rx {
struct rx_cxt {
struct list_head free_list;
struct list_head used_list;
- spinlock_t lock;
+ spinlock_t lock; /* Protect structure fields */
};
struct usbwm_dev {
int ref_cnt;
struct sock *sock;
struct list_head evtq;
- spinlock_t evt_lock;
+ spinlock_t evt_lock; /*protect structure fields */
struct list_head freeq;
struct work_struct ws;
} wm_event;