Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-misc/r8168-8.049.02-r1 fails 5.17.0 here:workaround
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Fri Mar 25, 2022 9:58 pm    Post subject: net-misc/r8168-8.049.02-r1 fails 5.17.0 here:workaround Reply with quote

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... :roll:
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
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1256

PostPosted: Sat Mar 26, 2022 1:10 am    Post subject: Reply with quote

There's patch in ArchLinux repo.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sat Mar 26, 2022 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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