hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IA5AEP CVE: NA
--------------------------------
Fix kabi broken in struct request_queue if CONFIG_BLK_BIO_DISPATCH_ASYNC is enabled.
Signed-off-by: Li Nan linan122@huawei.com --- include/linux/blkdev.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 3a071d12623e..4ddfa95f266a 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -606,11 +606,12 @@ struct request_queue {
#ifdef CONFIG_BLK_BIO_DISPATCH_ASYNC /* used when QUEUE_FLAG_DISPATCH_ASYNC is set */ - struct cpumask *dispatch_async_cpus; - int __percpu *last_dispatch_cpu; -#endif + KABI_USE(1, struct cpumask *dispatch_async_cpus) + KABI_USE(2, int __percpu *last_dispatch_cpu) +#else KABI_RESERVE(1) KABI_RESERVE(2) +#endif KABI_RESERVE(3) KABI_RESERVE(4) };