aboutsummaryrefslogtreecommitdiff
path: root/hw/fsp
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-05-10 19:33:52 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-10-11 07:33:15 +1100
commitf4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33 (patch)
tree72ec6940a00e7363acc4bd791c180986f00520cd /hw/fsp
parentc17cec0fe9242689b888d50430ad9ed2abfe6529 (diff)
downloadskiboot-f4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33.zip
skiboot-f4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33.tar.gz
skiboot-f4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33.tar.bz2
GCC7: fixes for -Wimplicit-fallthrough expected regexes
It turns out GCC7 adds a useful warning and does fancy things like parsing your comments to work out that you intended to do the fallthrough. There's a few places where we don't match the regex. Fix them, as it's harmless to do so. Found by building on Fedora Rawhide in Travis. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit e58aeb1ca304835d65beed98db7f118d3c154cd4) Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r--hw/fsp/fsp-sysparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp-sysparam.c b/hw/fsp/fsp-sysparam.c
index 2dbf05c..5d7ae91 100644
--- a/hw/fsp/fsp-sysparam.c
+++ b/hw/fsp/fsp-sysparam.c
@@ -100,7 +100,7 @@ static int fsp_sysparam_process(struct sysparam_req *r)
case 0x00: /* XXX Is that even possible ? */
case 0x11: /* Data in request */
memcpy(r->ubuf, &r->resp.data.words[2], len);
- /* pass through */
+ /* fallthrough */
case 0x12: /* Data in TCE */
stlen = len;
break;