When
launching make command I obtain the following warning:
make
-C /lib/modules/4.18.16-100.fc27.x86_64/build
M=/home/neharajput/pd/neha/kernal/registermodule modules
make[1]:
Entering directory '/usr/src/kernels/4.18.16-100.fc27.x86_64'
CC [M]
/home/neharajput/pd/neha/kernal/registermodule/init1_func.o
CC [M]
/home/neharajput/pd/neha/kernal/registermodule/cleanup_func.o
LD [M]
/home/neharajput/pd/neha/kernal/registermodule/test.o
Building modules, stage 2.
MODPOST 1 modules
WARNING:
"majarno"
[/home/neharajput/pd/neha/kernal/registermodule/test.ko] undefined!
CC
/home/neharajput/pd/neha/kernal/registermodule/test.mod.o
LD [M]
/home/neharajput/pd/neha/kernal/registermodule/test.ko
make[1]:
Leaving directory '/usr/src/kernels/4.18.16-100.fc27.x86_64'
In
declaration.h,
I have:
extern
unsigned int majarno;
In
init_func.c, i have:
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
unsigned
int majorno;
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
I
think this is a linking problem, but I do not know how to fix it. Can
anyone please help me?
It looks like you're new here. If you want to get involved, click one of these buttons!