Compile error wrt. RW_LOCK_UNLOCKED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


the following minimal testcase fails to compile on 2.6.29-rc6-rt3 with 
CONFIG_PREEMPT_RT=n.

/dev/shm/m.c:8: error: expected expression before ‘{’ token

---8<---
#include <linux/module.h>
#include <linux/semaphore.h>

static int __init m_init(void)
{
        rwlock_t f;

        f = RW_LOCK_UNLOCKED;
        return -EIO;
}

static void __exit m_exit(void)
{}

module_init(m_init);
module_exit(m_exit);
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux