Skip to content

Commit 4093855

Browse files
author
Shahab Vahedi
committed
Fix strace build issue by updating kernel headers
This is a cherry picked solution for strace building issue [1]. [1] package/strace: strace v5.16 build fails against kernel headers of v5.6 foss-for-synopsys-dwc-arc-processors/buildroot#34
1 parent acea2ee commit 4093855

File tree

1 file changed

+7
-4
lines changed
  • linux-headers/include/linux

1 file changed

+7
-4
lines changed

linux-headers/include/linux/rtc.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#ifndef _LINUX_RTC_H_
1313
#define _LINUX_RTC_H_
1414

15+
#include <linux/const.h>
16+
#include <linux/ioctl.h>
17+
1518
/*
1619
* The struct used to pass data via the following ioctl. Similar to the
1720
* struct tm in <time.h>, but it needs to be here so that the kernel
@@ -92,10 +95,10 @@ struct rtc_pll_info {
9295
#define RTC_PLL_GET _IOR('p', 0x11, struct rtc_pll_info) /* Get PLL correction */
9396
#define RTC_PLL_SET _IOW('p', 0x12, struct rtc_pll_info) /* Set PLL correction */
9497

95-
#define RTC_VL_DATA_INVALID BIT(0) /* Voltage too low, RTC data is invalid */
96-
#define RTC_VL_BACKUP_LOW BIT(1) /* Backup voltage is low */
97-
#define RTC_VL_BACKUP_EMPTY BIT(2) /* Backup empty or not present */
98-
#define RTC_VL_ACCURACY_LOW BIT(3) /* Voltage is low, RTC accuracy is reduced */
98+
#define RTC_VL_DATA_INVALID _BITUL(0) /* Voltage too low, RTC data is invalid */
99+
#define RTC_VL_BACKUP_LOW _BITUL(1) /* Backup voltage is low */
100+
#define RTC_VL_BACKUP_EMPTY _BITUL(2) /* Backup empty or not present */
101+
#define RTC_VL_ACCURACY_LOW _BITUL(3) /* Voltage is low, RTC accuracy is reduced */
99102

100103
#define RTC_VL_READ _IOR('p', 0x13, unsigned int) /* Voltage low detection */
101104
#define RTC_VL_CLR _IO('p', 0x14) /* Clear voltage low information */

0 commit comments

Comments
 (0)