Commit Graph

8 Commits

Author SHA1 Message Date
Christian Marangi 24beb46bbe
siit: fix compilation warning
Fix compilation warning for stack limit and variable length array.
Fix compilation warning:
  CC [M]  /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/siit-1.2/siit.o
../siit-1.2/siit.c: In function 'ip4_fragment':
../siit-1.2/siit.c:988:9: error: ISO C90 forbids variable length array 'buff' [-Werror=vla]
  988 |         char buff[FRAG_BUFF_SIZE+hdr_len]; /* buffer to form new fragment packet */
      |         ^~~~
../siit-1.2/siit.c: In function 'siit_xmit':
../siit-1.2/siit.c:1359:1: error: the frame size of 2144 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
 1359 | }
      | ^
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-13 22:51:29 +02:00
John Thomson 3e8e55b43a siit: fix kernel 5.16 compile
siit-1.2/siit.c:1379:9: error: implicit declaration of function
'random_ether_addr' [-Werror=implicit-function-declaration]
 1379 |         random_ether_addr(dev->dev_addr);
      |         ^~~~~~~~~~~~~~~~~

Linux 3.6 renamed random_ether_addr to eth_random_addr [0]
Linux 5.16 removed random_ether_addr [1]

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a4dd594982a321699000218715e28664ec49169
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ba530fea8ca1b57ee71d4e62f287a5d7ed92f789

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
2022-11-15 07:24:53 -08:00
David Bauer 5feeeb69c9 siit: replace SUBDIRS with M in package recipe
The SUBDIRS variable has been removed in kernel 5.4, and was deprecated
since the beginnig of kernel git history in favour of M or KBUILD_EXTMOD.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-03-11 00:50:22 +01:00
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Vladimir Ulrich 43963958c7 [net/siit] Added compability for Linux >= 4.7.0
Closes #4242

Signed-off-by: Vladimir Ulrich <admin@evl.su>
2017-04-10 03:34:40 +03:00
Stephen Walker a53bf7192b packages: cleanup Makefile variables
Standard assignment is immediate expansion without any extraneous spacing, RFC822 compliant email addresses without any quotation marks and long git hashes

Signed-off-by: Stephen Walker <stephendwalker+github@gmail.com>
2016-07-09 14:50:58 -04:00
Stefan Weil 6d2c0fd06f net: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-04-10 12:51:10 +02:00
Vladimir Ulrich 2ef99b98ca [net/siit] Moved from oldpackages and updated for kernels 3.17+
Signed-off-by: Vladimir Ulrich <admin@evl.su>
2015-04-23 12:10:34 +03:00