You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fedora@fedora-41 modules]$ make
make -C /lib/modules/6.12.11-200.fc41.x86_64/build M=/home/fedora/nat46/nat46/modules modules
make[1]: Entering directory '/usr/src/kernels/6.12.11-200.fc41.x86_64'
CC [M] /home/fedora/nat46/nat46/modules/nat46-netdev.o
/home/fedora/nat46/nat46/modules/nat46-netdev.c: In function ‘nat46_netdev_setup’:
/home/fedora/nat46/nat46/modules/nat46-netdev.c:113:25: error: ‘NETIF_F_NETNS_LOCAL’ undeclared (first use in this function)
113 | dev->features = NETIF_F_NETNS_LOCAL;
| ^~~~~~~~~~~~~~~~~~~
/home/fedora/nat46/nat46/modules/nat46-netdev.c:113:25: note: each undeclared identifier is reported only once for each function it appears in
/home/fedora/nat46/nat46/modules/nat46-netdev.c: At top level:
/home/fedora/nat46/nat46/modules/nat46-netdev.c:117:5: warning: no previous prototype for ‘nat46_netdev_create’ [-Wmissing-prototypes]
117 | int nat46_netdev_create(struct net *net, char *basename, struct net_device **dev)
| ^~~~~~~~~~~~~~~~~~~
/home/fedora/nat46/nat46/modules/nat46-netdev.c:173:6: warning: no previous prototype for ‘nat46_netdev_destroy’ [-Wmissing-prototypes]
173 | void nat46_netdev_destroy(struct net_device *dev)
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/spinlock.h:305,
from ./include/linux/sched.h:2153,
from ./include/linux/percpu.h:12,
from ./arch/x86/include/asm/msr.h:15,
from ./arch/x86/include/asm/tsc.h:10,
from ./arch/x86/include/asm/timex.h:6,
from ./include/linux/timex.h:67,
from ./include/linux/time32.h:13,
from ./include/linux/time.h:60,
from ./include/linux/skbuff.h:15,
from ./include/linux/if_arp.h:22,
from /home/fedora/nat46/nat46/modules/nat46-netdev.c:19:
/home/fedora/nat46/nat46/modules/nat46-netdev.c: In function ‘find_dev’:
/home/fedora/nat46/nat46/modules/nat46-netdev.c:196:20: error: ‘dev_base_lock’ undeclared (first use in this function); did you mean ‘device_lock’?
196 | read_lock(&dev_base_lock);
| ^~~~~~~~~~~~~
./include/linux/rwlock.h:56:48: note: in definition of macro ‘read_lock’
56 | #define read_lock(lock) _raw_read_lock(lock)
| ^~~~
/home/fedora/nat46/nat46/modules/nat46-netdev.c: In function ‘nat64_show_all_configs’:
/home/fedora/nat46/nat46/modules/nat46-netdev.c:303:20: error: ‘dev_base_lock’ undeclared (first use in this function); did you mean ‘device_lock’?
303 | read_lock(&dev_base_lock);
| ^~~~~~~~~~~~~
./include/linux/rwlock.h:56:48: note: in definition of macro ‘read_lock’
56 | #define read_lock(lock) _raw_read_lock(lock)
| ^~~~
/home/fedora/nat46/nat46/modules/nat46-netdev.c: In function ‘nat46_destroy_all’:
/home/fedora/nat46/nat46/modules/nat46-netdev.c:334:28: error: ‘dev_base_lock’ undeclared (first use in this function); did you mean ‘device_lock’?
334 | read_lock(&dev_base_lock);
| ^~~~~~~~~~~~~
./include/linux/rwlock.h:56:48: note: in definition of macro ‘read_lock’
56 | #define read_lock(lock) _raw_read_lock(lock)
| ^~~~
make[3]: *** [scripts/Makefile.build:229: /home/fedora/nat46/nat46/modules/nat46-netdev.o] Error 1
make[2]: *** [/usr/src/kernels/6.12.11-200.fc41.x86_64/Makefile:1977: /home/fedora/nat46/nat46/modules] Error 2
make[1]: *** [Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.12.11-200.fc41.x86_64'
make: *** [Makefile:6: all] Error 2
ubuntu@ubuntu-20:~/nat46/nat46/modules$ make
make -C /lib/modules/5.4.0-205-generic/build M=/home/ubuntu/nat46/nat46/modules modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-205-generic'
CC [M] /home/ubuntu/nat46/nat46/modules/nat46-netdev.o
CC [M] /home/ubuntu/nat46/nat46/modules/nat46-module.o
/home/ubuntu/nat46/nat46/modules/nat46-module.c: In function ‘nat46_init’:
/home/ubuntu/nat46/nat46/modules/nat46-module.c:254:49: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
254 | printk("nat46: module (version %s) loaded.\n", NAT46_VERSION);
| ^~~~~~~~~~~~~
/home/ubuntu/nat46/nat46/modules/nat46-module.c:54:23: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
54 | #define NAT46_VERSION __DATE__ " " __TIME__
| ^~~~~~~~
/home/ubuntu/nat46/nat46/modules/nat46-module.c:254:49: note: in expansion of macro ‘NAT46_VERSION’
254 | printk("nat46: module (version %s) loaded.\n", NAT46_VERSION);
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:270: /home/ubuntu/nat46/nat46/modules/nat46-module.o] Error 1
make[1]: *** [Makefile:1778: /home/ubuntu/nat46/nat46/modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-205-generic'
make: *** [Makefile:6: all] Error 2
0 commit comments