Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/testing/nvdimm: Fix fallthrough warning

Use the expected 'fall through' designation to fix:

tools/testing/nvdimm/test/nfit.c: In function ‘nd_intel_test_finish_query’:
tools/testing/nvdimm/test/nfit.c:433:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
fw->state = FW_STATE_UPDATED;
~~~~~~~~~~^~~~~~~~~~~~~~~~~~
tools/testing/nvdimm/test/nfit.c:435:2: note: here
case FW_STATE_UPDATED:
^~~~

Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/156521347159.1442374.1381360879102718899.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

+1 -2
+1 -2
tools/testing/nvdimm/test/nfit.c
··· 428 428 dev_dbg(dev, "%s: still verifying\n", __func__); 429 429 break; 430 430 } 431 - 432 431 dev_dbg(dev, "%s: transition out verify\n", __func__); 433 432 fw->state = FW_STATE_UPDATED; 434 - /* we are going to fall through if it's "done" */ 433 + /* fall through */ 435 434 case FW_STATE_UPDATED: 436 435 nd_cmd->status = 0; 437 436 /* bogus test version */