Commit f2c92eb4 authored by Yang Yingliang's avatar Yang Yingliang
Browse files

kabi: reserve space for struct ptp_clock

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Z2NU


CVE: NA

-------------------------------

reserve space for struct ptp_clock.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 49a22666
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
#include <linux/ptp_clock.h>
#include <linux/ptp_clock_kernel.h>
#include <linux/time.h>
#include <linux/kabi.h>

#define PTP_MAX_TIMESTAMPS 128
#define PTP_BUF_TIMESTAMPS 30
@@ -53,6 +54,10 @@ struct ptp_clock {
	struct mutex n_vclocks_mux; /* protect concurrent n_vclocks access */
	bool is_virtual_clock;
	bool has_cycles;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

#define info_to_vclock(d) container_of((d), struct ptp_vclock, info)