Jump to content

Recommended Posts

Posted (edited)

Hi.

 

I want to build a full RT legacy kernel using RT patch 30-real-time143-full-plus-rt-fixes.patch (option 5) for my Orange Pi One.

While building I got the error at this line /sun8i/security/apparmor/sid.c#L28

static DEFINE_SPINLOCK(sid_lock);
security/apparmor/sid.c:28:28: error: expected ‘=’, ‘,’, ‘;’, asm or __attribute__ before __cacheline_aligned_in_smp
 static DEFINE_SPINLOCK(sid_lock);
                            ^

As seen in the patch file, top line's macro must be translated to

static spinlock_t sid_lock __cacheline_aligned_in_smp = __SPIN_LOCK_UNLOCKED(sid_lock);
                          ^

But at this moment I got the error. Any help?

Edited by MX_Master
added a link to a patch line
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines