]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: add missing fall through comment
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 10 Jul 2017 20:23:07 +0000 (13:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 14:54:00 +0000 (07:54 -0700)
commitee35297aa3660e8450b3c22bbe223e635d09048d
treef5d0e709072da569f9430adb06f944f0697b0021
parent501d6202a646b6a003eda5aed5708ac7892cdc90
fm10k: add missing fall through comment

Newer versions of GCC starting with 7 now additionally warn when a case
statement may fall through without an explicit comment mentioning it.
Add such a comment to silence the warning, as this is expected.

Unfortunately the comment must come directly before the next case
statement, so we put it outside the #ifdef. Otherwise, the compiler
cannot properly detect it and thus the warning is displayed regardless.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c