rtc: make definitions in include/uapi/linux/rtc.h actually useful for user space
authorEugene Syromiatnikov <esyr@redhat.com>
Tue, 24 Mar 2020 04:12:09 +0000 (05:12 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 26 Mar 2020 20:38:40 +0000 (21:38 +0100)
commitb0efe0281234e60c7c4f5fa812712fca50bec1b7
tree7613ce40a289fedd8ab9e5a214f80e47aaed98a6
parent5614a4a3ca0e8806e144419536f52df419caa14f
rtc: make definitions in include/uapi/linux/rtc.h actually useful for user space

BIT() macro is not defined in UAPI headers; there is, however, similarly
defined _BITUL() macro present in include/uapi/linux/const.h; use it
instead and include <linux/const.h> and <linux/ioctl.h> in order to make
the definitions provided in the header useful.

Fixes: 3431ca4837bf ("rtc: define RTC_VL_READ values")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Link: https://lore.kernel.org/r/20200324041209.GA30727@asgard.redhat.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/uapi/linux/rtc.h