Skip to content

Commit 639c39a

Browse files
committed
Fix sparse errors
apple_bce.h was using #pragma once, which is not acceptable by sparse
1 parent 418f3af commit 639c39a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apple_bce.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef APPLE_BCE_H
2+
#define APPLE_BCE_H
23

34
#include <linux/pci.h>
45
#include <linux/spinlock.h>
@@ -35,4 +36,6 @@ struct apple_bce_device {
3536
struct bce_vhci vhci;
3637
};
3738

38-
extern struct apple_bce_device *global_bce;
39+
extern struct apple_bce_device *global_bce;
40+
41+
#endif //APPLE_BCE_H

0 commit comments

Comments
 (0)