openwrt/package/kernel/lantiq/ltq-deu/src
Christian Marangi 5ca3386c8a
kernel: ltq-deu: fix compilation warning
Fix compilation warning for fallthrough and unused variables.
Fix compilation warning:
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_des.c: In function 'ifx_deu_des':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_des.c:206:35: error: this statement may fall through [-Werror=implicit-fallthrough=]
  206 |                         des->K3LR = DEU_ENDIAN_SWAP(*((u32 *) key + 5));
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_des.c:209:17: note: here
  209 |                 case 16:
      |                 ^~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_des.c:211:35: error: this statement may fall through [-Werror=implicit-fallthrough=]
  211 |                         des->K2LR = DEU_ENDIAN_SWAP(*((u32 *) key + 3));
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_des.c:214:17: note: here
  214 |                 case 8:
      |                 ^~~~
cc1: all warnings being treated as errors

/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_aes.c: In function 'ifx_deu_aes':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_aes.c:260:21: error: unused variable 'ctx' [-Werror=unused-variable]
  260 |     struct aes_ctx *ctx = (struct aes_ctx *)ctx_arg;
      |                     ^~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_aes.c: In function 'ifx_deu_aes_xts':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_aes.c:702:21: error: unused variable 'ctx' [-Werror=unused-variable]
  702 |     struct aes_ctx *ctx = (struct aes_ctx *)ctx_arg;
      |                     ^~~
cc1: all warnings being treated as errors

/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_sha1.c: In function 'sha1_final':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_sha1.c:203:19: error: unused variable 'flag' [-Werror=unused-variable]
  203 |     unsigned long flag;
      |                   ^~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_sha1.c:202:33: error: unused variable 'hashs' [-Werror=unused-variable]
  202 |     volatile struct deu_hash_t *hashs = (struct deu_hash_t *) HASH_START;
      |                                 ^~~~~
cc1: all warnings being treated as errors

/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_md5.c: In function 'md5_init':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_md5.c:146:33: error: unused variable 'hash' [-Werror=unused-variable]
  146 |     volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START;
      |                                 ^~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_md5.c: In function 'md5_final':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_md5.c:204:19: error: unused variable 'flag' [-Werror=unused-variable]
  204 |     unsigned long flag;
      |                   ^~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_md5.c:203:33: error: unused variable 'hashs' [-Werror=unused-variable]
  203 |     volatile struct deu_hash_t *hashs = (struct deu_hash_t *) HASH_START;
      |                                 ^~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 03:15:47 +02:00
..
ifxmips_aes.c kernel: ltq-deu: fix compilation warning 2023-05-12 03:15:47 +02:00
ifxmips_arc4.c ltq-deu: remove compiler warning and shorten locked sections 2022-01-06 00:23:02 +01:00
ifxmips_async_aes.c ltq-deu: make cipher/digest usable by openssl 2022-01-05 23:05:38 +01:00
ifxmips_async_des.c ltq-deu: make cipher/digest usable by openssl 2022-01-05 23:05:38 +01:00
ifxmips_des.c kernel: ltq-deu: fix compilation warning 2023-05-12 03:15:47 +02:00
ifxmips_deu_ar9.c packages: clean up the package folder 2013-06-21 16:54:37 +00:00
ifxmips_deu_ar9.h ltq-deu: changes for hash multithread callers and md5 endianess 2022-01-06 00:22:50 +01:00
ifxmips_deu_danube.c packages: clean up the package folder 2013-06-21 16:54:37 +00:00
ifxmips_deu_danube.h ltq-deu: changes for hash multithread callers and md5 endianess 2022-01-06 00:22:50 +01:00
ifxmips_deu_dma.c packages: clean up the package folder 2013-06-21 16:54:37 +00:00
ifxmips_deu_dma.h kernel: drop outdated kernel version switches for local code 2020-05-17 18:35:51 +02:00
ifxmips_deu_vr9.c ltq-deu: set correct control register for AES 2022-01-06 00:22:18 +01:00
ifxmips_deu_vr9.h lantiq: ltq-deu: Make the DEU driver compatible with linux 4.2 and newer 2016-01-17 19:23:14 +00:00
ifxmips_deu.c kernel: ltq-deu: Fix compilation with Linux 5.15 2022-10-22 19:44:45 +02:00
ifxmips_deu.h ltq-deu: make deu hash lock global and remove md5_hmac_ exports 2022-01-06 00:22:48 +01:00
ifxmips_md5_hmac.c ltq-deu: update initialisations for hmac algorithms 2022-01-06 00:23:05 +01:00
ifxmips_md5.c kernel: ltq-deu: fix compilation warning 2023-05-12 03:15:47 +02:00
ifxmips_sha1_hmac.c kernel: ltq-deu: Fix compilation with Linux 5.15 2022-10-22 19:44:45 +02:00
ifxmips_sha1.c kernel: ltq-deu: fix compilation warning 2023-05-12 03:15:47 +02:00
ifxmips_tcrypt.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
internal.h packages: clean up the package folder 2013-06-21 16:54:37 +00:00
Makefile ltq-deu: disable arc4 algorithm 2022-01-06 00:23:15 +01:00