diff options
author | Ben Widawsky <ben.widawsky@intel.com> | 2021-09-04 05:20:56 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-09-07 21:39:01 +0300 |
commit | 9d1b3afd73047d4dd30e3636412c9f9b5def2b14 (patch) | |
tree | 6972cda460fdf4037188dd9fa1902e635e8d8272 /include/uapi/linux/cxl_mem.h | |
parent | da582aa5ad5787c46e3f475ab3f4602ec84c1617 (diff) | |
download | linux-9d1b3afd73047d4dd30e3636412c9f9b5def2b14.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux/cxl_mem.h')
-rw-r--r-- | include/uapi/linux/cxl_mem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/cxl_mem.h b/include/uapi/linux/cxl_mem.h index f6e8a005b113..8d206f27bb6d 100644 --- a/include/uapi/linux/cxl_mem.h +++ b/include/uapi/linux/cxl_mem.h @@ -50,7 +50,7 @@ enum { CXL_CMDS }; #define ___C(a, b) { b } static const struct { const char *name; -} cxl_command_names[] = { CXL_CMDS }; +} cxl_command_names[] __attribute__((__unused__)) = { CXL_CMDS }; /* * Here's how this actually breaks out: |