Skip to content

implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? #8

@NoeelMoeskops

Description

@NoeelMoeskops

error when compiling on Linux 5.0.5 (fedora 29)

make -C /lib/modules/5.0.5-200.fc29.x86_64/build/ SUBDIRS=/home/noeel/Documents/git/rts5139 modules
make[1]: Map '/usr/src/kernels/5.0.5-200.fc29.x86_64' wordt binnengegaan
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
  CC [M]  /home/noeel/Documents/git/rts5139/rts51x_transport.o
In file included from /home/noeel/Documents/git/rts5139/rts51x_transport.c:36:
/home/noeel/Documents/git/rts5139/rts51x.h: In functie ‘get_current_time’:
/home/noeel/Documents/git/rts5139/rts51x.h:125:2: fout: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
  do_gettimeofday(&tv);
  ^~~~~~~~~~~~~~~
  do_settimeofday64
cc1: sommige waarschuwingen worden als fouten behandeld
make[2]: *** [scripts/Makefile.build:277: /home/noeel/Documents/git/rts5139/rts51x_transport.o] Fout 1
make[1]: *** [Makefile:1557: _module_/home/noeel/Documents/git/rts5139] Fout 2
make[1]: Map '/usr/src/kernels/5.0.5-200.fc29.x86_64' wordt verlaten
make: *** [Makefile:46: all] Fout 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions