MX_Master Posted October 9, 2017 Posted October 9, 2017 (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 October 9, 2017 by MX_Master added a link to a patch line
MX_Master Posted October 10, 2017 Author Posted October 10, 2017 tmp solution is CONFIG_SECURITY_APPARMOR=n
Recommended Posts