Skip to content

Commit 9d1b3af

Browse files
Ben Widawskydjbw
authored andcommitted
cxl/uapi: Fix defined but not used warnings
Fix unused-const-variable warnings emitted by gcc when cxlmem.h is used by pretty much all files except pci.c Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/163072205652.2250120.16833548560832424468.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent da582aa commit 9d1b3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/cxl_mem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum { CXL_CMDS };
5050
#define ___C(a, b) { b }
5151
static const struct {
5252
const char *name;
53-
} cxl_command_names[] = { CXL_CMDS };
53+
} cxl_command_names[] __attribute__((__unused__)) = { CXL_CMDS };
5454

5555
/*
5656
* Here's how this actually breaks out:

0 commit comments

Comments
 (0)