netatop: fix compilation warning for kernel module
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 13 May 2023 21:56:18 +0000 (23:56 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 14 May 2023 14:51:47 +0000 (16:51 +0200)
commitd3e10fd8235d8965a032bbe221f7693976c3f1ac
treef890b66c398e56532668efbf01cafeabdd50dc74
parentf95cd0b3873df94e062303e0396802a2b72837de
netatop: fix compilation warning for kernel module

Fix compilation warning for missing fallthrough.
Fix compilation warning:
/builder/shared-workdir/build/build_dir/target-mipsel_24kc_musl/netatop-3.1/module/netatop.c: In function 'getsockopt':
/builder/shared-workdir/build/build_dir/target-mipsel_24kc_musl/netatop-3.1/module/netatop.c:1619:26: error: this statement may fall through [-Werror=implicit-fallthrough=]
 1619 |                 tasktype = 'g';
      |                 ~~~~~~~~~^~~~~
/builder/shared-workdir/build/build_dir/target-mipsel_24kc_musl/netatop-3.1/module/netatop.c:1621:12: note: here
 1621 |            case NETATOP_GETCNT_PID:
      |            ^~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
admin/netatop/patches/100-fix-compilation-warning-fallthrough.patch [new file with mode: 0644]