Skip to content

Commit ef3350c

Browse files
committed
genirq/msi: Add abuse prevention comment to msi header
Hope dies last. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent cc9a246 commit ef3350c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/linux/msi.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
#ifndef LINUX_MSI_H
33
#define LINUX_MSI_H
44

5+
/*
6+
* This header file contains MSI data structures and functions which are
7+
* only relevant for:
8+
* - Interrupt core code
9+
* - PCI/MSI core code
10+
* - MSI interrupt domain implementations
11+
* - IOMMU, low level VFIO, NTB and other justified exceptions
12+
* dealing with low level MSI details.
13+
*
14+
* Regular device drivers have no business with any of these functions and
15+
* especially storing MSI descriptor pointers in random code is considered
16+
* abuse. The only function which is relevant for drivers is msi_get_virq().
17+
*/
18+
519
#include <linux/cpumask.h>
620
#include <linux/mutex.h>
721
#include <linux/list.h>

0 commit comments

Comments
 (0)