Skip to content

Compile Error With 4.14 preempt-rt Kernel with  #3

Description

@embetrix

getting build error with 4.14 preempt-rt Kernel

make: Entering directory '/opt/PAOS/paos/build/tmp/work/n03-poky-linux/linux-yocto-rt/4.14.67+gitAUTOINC+c43c9e19a2_af1b926c91-r0/linux-n03-preempt-rt-build'
CC [M] /home/zaki/Workspace/Playground/kgdboe/nethook.o
/home/zaki/Workspace/Playground/kgdboe/nethook.c: In function ‘nethook_initialize’:
/home/zaki/Workspace/Playground/kgdboe/nethook.c:224:83: error: ‘spinlock_t {aka struct spinlock}’ has no member named ‘rlock’; did you mean ‘lock’?
if (!hook_spinlock(nethook.spinhook, &timerhook_get_spinlock(nethook.timerhook)->rlock))
^~~~~
lock
/home/zaki/Workspace/Playground/kgdboe/nethook.c:231:64: error: ‘spinlock_t {aka struct spinlock}’ has no member named ‘rlock’; did you mean ‘lock’?
if (!hook_spinlock(nethook.spinhook, &nethook.netdev_api_lock.rlock))
^~~~~
lock
/home/zaki/Workspace/Playground/kgdboe/nethook.c:241:81: error: ‘spinlock_t {aka struct spinlock}’ has no member named ‘rlock’; did you mean ‘lock’?
if (!hook_spinlock(nethook.spinhook, &netdev_get_tx_queue(dev, i)->_xmit_lock.rlock))
^~~~~
lock
/home/zaki/Workspace/Playground/kgdboe/nethook.c:251:60: error: ‘spinlock_t {aka struct spinlock}’ has no member named ‘rlock’; did you mean ‘lock’?
if (!hook_spinlock(nethook.spinhook, &jiffies_lock->lock.rlock))
^~~~~
lock
/opt/PAOS/paos/build/tmp/work-shared/n03/kernel-source/scripts/Makefile.build:328: recipe for target '/home/zaki/Workspace/Playground/kgdboe/nethook.o' failed
make[3]: *** [/home/zaki/Workspace/Playground/kgdboe/nethook.o] Error 1
/opt/PAOS/paos/build/tmp/work-shared/n03/kernel-source/Makefile:1523: recipe for target 'module/home/zaki/Workspace/Playground/kgdboe' failed
make[2]: *** [module/home/zaki/Workspace/Playground/kgdboe] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
make: Leaving directory '/opt/PAOS/paos/build/tmp/work/n03-poky-linux/linux-yocto-rt/4.14.67+gitAUTOINC+c43c9e19a2_af1b926c91-r0/linux-n03-preempt-rt-build'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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