diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2019-01-08 22:00:37 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-01-08 22:04:38 -0800 |
commit | ccb7f15a8a3c0c7a35389e4c8e083c424b4df79d (patch) | |
tree | 5223dd06ad635a6460887406bb663ed27f422971 /drivers/acpi/utils.c | |
parent | 8a7f02f67c395949c768ae1cf4f12905a81e3cde (diff) |
nfit: Mark some functions as __maybe_unused
On arm64 little endian allyesconfig:
drivers/acpi/nfit/intel.c:149:12: warning: unused function 'intel_security_unlock' [-Wunused-function]
static int intel_security_unlock(struct nvdimm *nvdimm,
^
drivers/acpi/nfit/intel.c:230:12: warning: unused function 'intel_security_erase' [-Wunused-function]
static int intel_security_erase(struct nvdimm *nvdimm,
^
drivers/acpi/nfit/intel.c:279:12: warning: unused function 'intel_security_query_overwrite' [-Wunused-function]
static int intel_security_query_overwrite(struct nvdimm *nvdimm)
^
drivers/acpi/nfit/intel.c:316:12: warning: unused function 'intel_security_overwrite' [-Wunused-function]
static int intel_security_overwrite(struct nvdimm *nvdimm,
^
4 warnings generated.
Mark these functions as __maybe_unused because they are only used when
CONFIG_X86 is set.
Fixes: 4c6926a23b76 ("acpi/nfit, libnvdimm: Add unlock of nvdimm support for Intel DIMMs")
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/utils.c')
0 files changed, 0 insertions, 0 deletions