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 @@ -224,11 +224,11 @@ struct msi_dev_domain {
224
224
225
225
int msi_setup_device_data (struct device * dev );
226
226
227
- void msi_lock_descs (struct device * dev );
228
- void msi_unlock_descs (struct device * dev );
227
+ void __msi_lock_descs (struct device * dev );
228
+ void __msi_unlock_descs (struct device * dev );
229
229
230
- DEFINE_LOCK_GUARD_1 (msi_descs_lock , struct device , msi_lock_descs (_T -> lock ),
231
- msi_unlock_descs (_T -> lock ));
230
+ DEFINE_LOCK_GUARD_1 (msi_descs_lock , struct device , __msi_lock_descs (_T -> lock ),
231
+ __msi_unlock_descs (_T -> lock ));
232
232
233
233
struct msi_desc * msi_domain_first_desc (struct device * dev , unsigned int domid ,
234
234
enum msi_desc_filter filter );
Original file line number Diff line number Diff line change @@ -338,26 +338,30 @@ int msi_setup_device_data(struct device *dev)
338
338
}
339
339
340
340
/**
341
- * msi_lock_descs - Lock the MSI descriptor storage of a device
341
+ * __msi_lock_descs - Lock the MSI descriptor storage of a device
342
342
* @dev: Device to operate on
343
+ *
344
+ * Internal function for guard(msi_descs_lock). Don't use in code.
343
345
*/
344
- void msi_lock_descs (struct device * dev )
346
+ void __msi_lock_descs (struct device * dev )
345
347
{
346
348
mutex_lock (& dev -> msi .data -> mutex );
347
349
}
348
- EXPORT_SYMBOL_GPL (msi_lock_descs );
350
+ EXPORT_SYMBOL_GPL (__msi_lock_descs );
349
351
350
352
/**
351
- * msi_unlock_descs - Unlock the MSI descriptor storage of a device
353
+ * __msi_unlock_descs - Unlock the MSI descriptor storage of a device
352
354
* @dev: Device to operate on
355
+ *
356
+ * Internal function for guard(msi_descs_lock). Don't use in code.
353
357
*/
354
- void msi_unlock_descs (struct device * dev )
358
+ void __msi_unlock_descs (struct device * dev )
355
359
{
356
360
/* Invalidate the index which was cached by the iterator */
357
361
dev -> msi .data -> __iter_idx = MSI_XA_MAX_INDEX ;
358
362
mutex_unlock (& dev -> msi .data -> mutex );
359
363
}
360
- EXPORT_SYMBOL_GPL (msi_unlock_descs );
364
+ EXPORT_SYMBOL_GPL (__msi_unlock_descs );
361
365
362
366
static struct msi_desc * msi_find_desc (struct msi_device_data * md , unsigned int domid ,
363
367
enum msi_desc_filter filter )
You can’t perform that action at this time.
0 commit comments