View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Mar 25, 2022 9:58 pm Post subject: net-misc/r8168-8.049.02-r1 fails 5.17.0 here:workaround |
|
|
Although stated for kernel <=5.6, has been working here until 5.17.x:
Code: | /var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_proc_open':
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:1736:50: error: implicit declaration of function 'PDE_DATA'; did you mean 'NODE_DATA'? [-Werror=implicit-function-declaration]
1736 | int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
| ^~~~~~~~
| NODE_DATA
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:1736:50: warning: initialization of 'int (*)(struct seq_file *, void *)' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_get_mac_address':
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:24132:34: error: assignment of read-only location '*(dev->dev_addr + (sizetype)i)'
24132 | dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
| ^
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_set_mac_address':
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:24163:19: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
24163 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
| ~~~^~~~~~~~~~
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:22,
from ./arch/x86/include/asm/timex.h:5,
from ./include/linux/timex.h:65,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:13,
from /var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:43:
./include/linux/fortify-string.h:212:37: note: expected 'void *' but argument is of type 'const unsigned char *'
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
| ~~~~~~^
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:24165:32: warning: passing argument 2 of 'rtl8168_rar_set' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
24165 | rtl8168_rar_set(tp, dev->dev_addr);
| ~~~^~~~~~~~~~
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:566:59: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
566 | void rtl8168_rar_set(struct rtl8168_private *tp, uint8_t *addr);
| ~~~~~~~~~^~~~
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_resume':
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:28650:32: warning: passing argument 2 of 'rtl8168_rar_set' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
28650 | rtl8168_rar_set(tp, dev->dev_addr);
| ~~~^~~~~~~~~~
/var/tmp/portage/net-misc/r8168-8.049.02-r2/work/r8168-8.049.02/src/r8168_n.c:24180:26: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
24180 | uint8_t *addr)
| ~~~~~~~~~^~~~
cc1: some warnings being treated as errors |
Switching to internal r8169 for now...
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1256
|
Posted: Sat Mar 26, 2022 1:10 am Post subject: |
|
|
There's patch in ArchLinux repo. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Sat Mar 26, 2022 7:43 pm Post subject: |
|
|
Currently testing:patch
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|