summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzhanghongtao <zhanghongtao22@huawei.com>2022-08-01 16:13:40 +0800
committerzhanghongtao <zhanghongtao22@huawei.com>2022-08-01 16:13:40 +0800
commitab475c645ff9fc40e18af739eb4b81a5eb7f783c (patch)
treeb4bed4e51bf2c32798ed8319d977e1d548da3ede /src
parentb8de959615449fdf5b58ef08d881a77d397e86e2 (diff)
Add header protection macro in linux_devmem.h
Signed-off-by: zhanghongtao <zhanghongtao22@huawei.com>
Diffstat (limited to 'src')
-rw-r--r--src/linux_devmem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linux_devmem.h b/src/linux_devmem.h
index e69557f..0ae5452 100644
--- a/src/linux_devmem.h
+++ b/src/linux_devmem.h
@@ -30,5 +30,10 @@
* \author Ian Romanick <idr@us.ibm.com>
*/
+#ifndef LINUX_DEVMEM_H
+#define LINUX_DEVMEM_H
+
extern int pci_device_linux_devmem_read_rom(struct pci_device *dev,
void *buffer);
+
+#endif