File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -229,11 +229,11 @@ struct msi_dev_domain {
229
229
230
230
int msi_setup_device_data (struct device * dev );
231
231
232
- void msi_lock_descs (struct device * dev );
233
- void msi_unlock_descs (struct device * dev );
232
+ void __msi_lock_descs (struct device * dev );
233
+ void __msi_unlock_descs (struct device * dev );
234
234
235
- DEFINE_LOCK_GUARD_1 (msi_descs_lock , struct device , msi_lock_descs (_T -> lock ),
236
- msi_unlock_descs (_T -> lock ));
235
+ DEFINE_LOCK_GUARD_1 (msi_descs_lock , struct device , __msi_lock_descs (_T -> lock ),
236
+ __msi_unlock_descs (_T -> lock ));
237
237
238
238
struct msi_desc * msi_domain_first_desc (struct device * dev , unsigned int domid ,
239
239
enum msi_desc_filter filter );
Original file line number Diff line number Diff line change @@ -343,26 +343,30 @@ int msi_setup_device_data(struct device *dev)
343
343
}
344
344
345
345
/**
346
- * msi_lock_descs - Lock the MSI descriptor storage of a device
346
+ * __msi_lock_descs - Lock the MSI descriptor storage of a device
347
347
* @dev: Device to operate on
348
+ *
349
+ * Internal function for guard(msi_descs_lock). Don't use in code.
348
350
*/
349
- void msi_lock_descs (struct device * dev )
351
+ void __msi_lock_descs (struct device * dev )
350
352
{
351
353
mutex_lock (& dev -> msi .data -> mutex );
352
354
}
353
- EXPORT_SYMBOL_GPL (msi_lock_descs );
355
+ EXPORT_SYMBOL_GPL (__msi_lock_descs );
354
356
355
357
/**
356
- * msi_unlock_descs - Unlock the MSI descriptor storage of a device
358
+ * __msi_unlock_descs - Unlock the MSI descriptor storage of a device
357
359
* @dev: Device to operate on
360
+ *
361
+ * Internal function for guard(msi_descs_lock). Don't use in code.
358
362
*/
359
- void msi_unlock_descs (struct device * dev )
363
+ void __msi_unlock_descs (struct device * dev )
360
364
{
361
365
/* Invalidate the index which was cached by the iterator */
362
366
dev -> msi .data -> __iter_idx = MSI_XA_MAX_INDEX ;
363
367
mutex_unlock (& dev -> msi .data -> mutex );
364
368
}
365
- EXPORT_SYMBOL_GPL (msi_unlock_descs );
369
+ EXPORT_SYMBOL_GPL (__msi_unlock_descs );
366
370
367
371
static struct msi_desc * msi_find_desc (struct msi_device_data * md , unsigned int domid ,
368
372
enum msi_desc_filter filter )
You can’t perform that action at this time.
0 commit comments