diff options
| author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-02-11 13:15:31 -0500 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2019-02-21 16:43:49 -0500 |
| commit | 0612fe604d862631da7f94224dd6ea633b722914 (patch) | |
| tree | b35f5516a642cb9f49f4fdccef44ff11c7e1c112 /drivers | |
| parent | 785c9f411eb2d9a6076d3511c631587d5e676bf3 (diff) | |
clk: samsung: s3c2443: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.
This patch fixes the following warnings:
drivers/clk/samsung/clk-s3c2443.c: In function ‘s3c2443_common_clk_init’:
drivers/clk/samsung/clk-s3c2443.c:390:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
samsung_clk_register_alias(ctx, s3c2450_aliases,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ARRAY_SIZE(s3c2450_aliases));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/samsung/clk-s3c2443.c:393:2: note: here
case S3C2416:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.
This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clk/samsung/clk-s3c2443.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/samsung/clk-s3c2443.c b/drivers/clk/samsung/clk-s3c2443.c index 884067e4f1a1..f38f0e24e3b6 100644 --- a/drivers/clk/samsung/clk-s3c2443.c +++ b/drivers/clk/samsung/clk-s3c2443.c | |||
| @@ -389,7 +389,7 @@ void __init s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f, | |||
| 389 | ARRAY_SIZE(s3c2450_gates)); | 389 | ARRAY_SIZE(s3c2450_gates)); |
| 390 | samsung_clk_register_alias(ctx, s3c2450_aliases, | 390 | samsung_clk_register_alias(ctx, s3c2450_aliases, |
| 391 | ARRAY_SIZE(s3c2450_aliases)); | 391 | ARRAY_SIZE(s3c2450_aliases)); |
| 392 | /* fall through, as s3c2450 extends the s3c2416 clocks */ | 392 | /* fall through - as s3c2450 extends the s3c2416 clocks */ |
| 393 | case S3C2416: | 393 | case S3C2416: |
| 394 | samsung_clk_register_div(ctx, s3c2416_dividers, | 394 | samsung_clk_register_div(ctx, s3c2416_dividers, |
| 395 | ARRAY_SIZE(s3c2416_dividers)); | 395 | ARRAY_SIZE(s3c2416_dividers)); |
