Skip to content

Commit 270205b

Browse files
committed
tools/testing/cxl: Use DEFINE_STATIC_SRCU()
Starting with commit: 95433f7 ("srcu: Begin offloading srcu_struct fields to srcu_update") ...it is no longer possible to do: static DEFINE_SRCU(x) Switch to DEFINE_STATIC_SRCU(x) to fix: tools/testing/cxl/test/mock.c:22:1: error: duplicate ‘static’ 22 | static DEFINE_SRCU(cxl_mock_srcu); | ^~~~~~ Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/168392709546.1135523.10424917245934547117.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent ac9a786 commit 270205b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/cxl/test/mock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void register_cxl_mock_ops(struct cxl_mock_ops *ops)
1919
}
2020
EXPORT_SYMBOL_GPL(register_cxl_mock_ops);
2121

22-
static DEFINE_SRCU(cxl_mock_srcu);
22+
DEFINE_STATIC_SRCU(cxl_mock_srcu);
2323

2424
void unregister_cxl_mock_ops(struct cxl_mock_ops *ops)
2525
{

0 commit comments

Comments
 (0)