event.h (315c2f0b53ba2645062627443a12cea73f3dad9c) | event.h (36f257e3b0ba904f5a4e7fa8dafaa60e88cdd28c) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright(c) 2023 Intel Corporation. */ 3#ifndef _LINUX_CXL_EVENT_H 4#define _LINUX_CXL_EVENT_H 5 6#include <linux/types.h> 7#include <linux/uuid.h> 8#include <linux/workqueue_types.h> --- 240 unchanged lines hidden (view full) --- 249 struct cxl_ras_capability_regs ras_cap; 250 int severity; 251}; 252 253#ifdef CONFIG_ACPI_APEI_GHES 254int cxl_cper_register_work(struct work_struct *work); 255int cxl_cper_unregister_work(struct work_struct *work); 256int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright(c) 2023 Intel Corporation. */ 3#ifndef _LINUX_CXL_EVENT_H 4#define _LINUX_CXL_EVENT_H 5 6#include <linux/types.h> 7#include <linux/uuid.h> 8#include <linux/workqueue_types.h> --- 240 unchanged lines hidden (view full) --- 249 struct cxl_ras_capability_regs ras_cap; 250 int severity; 251}; 252 253#ifdef CONFIG_ACPI_APEI_GHES 254int cxl_cper_register_work(struct work_struct *work); 255int cxl_cper_unregister_work(struct work_struct *work); 256int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd); |
257int cxl_cper_register_prot_err_work(struct work_struct *work); 258int cxl_cper_unregister_prot_err_work(struct work_struct *work); 259int cxl_cper_prot_err_kfifo_get(struct cxl_cper_prot_err_work_data *wd); |
|
257#else 258static inline int cxl_cper_register_work(struct work_struct *work) 259{ 260 return 0; 261} 262 263static inline int cxl_cper_unregister_work(struct work_struct *work) 264{ 265 return 0; 266} 267static inline int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd) 268{ 269 return 0; 270} | 260#else 261static inline int cxl_cper_register_work(struct work_struct *work) 262{ 263 return 0; 264} 265 266static inline int cxl_cper_unregister_work(struct work_struct *work) 267{ 268 return 0; 269} 270static inline int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd) 271{ 272 return 0; 273} |
274static inline int cxl_cper_register_prot_err_work(struct work_struct *work) 275{ 276 return 0; 277} 278static inline int cxl_cper_unregister_prot_err_work(struct work_struct *work) 279{ 280 return 0; 281} 282static inline int cxl_cper_prot_err_kfifo_get(struct cxl_cper_prot_err_work_data *wd) 283{ 284 return 0; 285} |
|
271#endif 272 273#endif /* _LINUX_CXL_EVENT_H */ | 286#endif 287 288#endif /* _LINUX_CXL_EVENT_H */ |