siit: fix kernel 5.16 compile
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Sat, 22 Oct 2022 06:18:49 +0000 (16:18 +1000)
committerRosen Penev <rosenp@gmail.com>
Tue, 15 Nov 2022 15:24:53 +0000 (07:24 -0800)
commit3e8e55b43a07a0d27d6f89387b3eae2e1d4f019a
treee3b2924378b4ebe087eee573f98274071d3836b1
parentbb73523d75c8467f715ba11369329e8f3949baaa
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>
net/siit/Makefile
net/siit/src/siit.c