Commit f21453b0 authored by Dan Williams's avatar Dan Williams

tools/testing/nvdimm: Fix missing 'fallthrough' warning

Use "fallthrough;" to address:

tools/testing/nvdimm/test/nfit.c: In function ‘nd_intel_test_finish_query’:
tools/testing/nvdimm/test/nfit.c:436:37: warning: this statement may
	fall through [-Wimplicit-fallthrough=]
  436 |                 fw->missed_activate = false;
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~
tools/testing/nvdimm/test/nfit.c:438:9: note: here
  438 |         case FW_STATE_UPDATED:
      |         ^~~~
Reviewed-by: default avatarJeff Moyer <jmoyer@redhat.com>
Link: https://lore.kernel.org/r/162767522046.3313209.14767278726893995797.stgit@dwillia2-desk3.amr.corp.intel.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent d9cee9f8
...@@ -434,7 +434,7 @@ static int nd_intel_test_finish_query(struct nfit_test *t, ...@@ -434,7 +434,7 @@ static int nd_intel_test_finish_query(struct nfit_test *t,
dev_dbg(dev, "%s: transition out verify\n", __func__); dev_dbg(dev, "%s: transition out verify\n", __func__);
fw->state = FW_STATE_UPDATED; fw->state = FW_STATE_UPDATED;
fw->missed_activate = false; fw->missed_activate = false;
/* fall through */ fallthrough;
case FW_STATE_UPDATED: case FW_STATE_UPDATED:
nd_cmd->status = 0; nd_cmd->status = 0;
/* bogus test version */ /* bogus test version */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment