On 11/3/21 9:28 PM, Darrick J. Wong wrote:
On Wed, Nov 03, 2021 at 09:21:35PM -0500, Eric Sandeen wrote:
Move kernel stubs out of libxfs/xfs_shared.h, which is kernel
libxfs code and should not have userspace shims in it.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
diff --git a/include/libxfs.h b/include/libxfs.h
index 24424d0e..64b44af8 100644
--- a/include/libxfs.h
+++ b/include/libxfs.h
@@ -11,6 +11,7 @@
#include "platform_defs.h"
#include "xfs.h"
+#include "stubs.h"
#include "list.h"
#include "hlist.h"
#include "cache.h"
diff --git a/include/stubs.h b/include/stubs.h
new file mode 100644
index 00000000..41eaa0c4
--- /dev/null
+++ b/include/stubs.h
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0
This needs a C-style (not C++-style) comment for SPDX compliance.
(I still don't get why the committee who came up with SPDX required C++
style comments for C code...)
+
Needs a copyright statement too.
well that's what I get for cargo-culting bitops.h. :/