Skip to content

Commit

Permalink
ras-report.h: avoid long lines
Browse files Browse the repository at this point in the history
Better format the stubs on this file to avoid long lines.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
mchehab committed Jul 18, 2024
1 parent 6a91e2b commit 56cbb92
Showing 1 changed file with 80 additions and 32 deletions.
112 changes: 80 additions & 32 deletions ras-report.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,89 @@

#ifdef HAVE_ABRT_REPORT

int ras_report_mc_event(struct ras_events *ras, struct ras_mc_event *ev);
int ras_report_aer_event(struct ras_events *ras, struct ras_aer_event *ev);
int ras_report_mce_event(struct ras_events *ras, struct mce_event *ev);
int ras_report_non_standard_event(struct ras_events *ras, struct ras_non_standard_event *ev);
int ras_report_arm_event(struct ras_events *ras, struct ras_arm_event *ev);
int ras_report_devlink_event(struct ras_events *ras, struct devlink_event *ev);
int ras_report_diskerror_event(struct ras_events *ras, struct diskerror_event *ev);
int ras_report_mf_event(struct ras_events *ras, struct ras_mf_event *ev);
int ras_report_cxl_poison_event(struct ras_events *ras, struct ras_cxl_poison_event *ev);
int ras_report_cxl_aer_ue_event(struct ras_events *ras, struct ras_cxl_aer_ue_event *ev);
int ras_report_cxl_aer_ce_event(struct ras_events *ras, struct ras_cxl_aer_ce_event *ev);
int ras_report_cxl_overflow_event(struct ras_events *ras, struct ras_cxl_overflow_event *ev);
int ras_report_cxl_generic_event(struct ras_events *ras, struct ras_cxl_generic_event *ev);
int ras_report_cxl_general_media_event(struct ras_events *ras, struct ras_cxl_general_media_event *ev);
int ras_report_cxl_dram_event(struct ras_events *ras, struct ras_cxl_dram_event *ev);
int ras_report_cxl_memory_module_event(struct ras_events *ras, struct ras_cxl_memory_module_event *ev);
int ras_report_mc_event(struct ras_events *ras,
struct ras_mc_event *ev);
int ras_report_aer_event(struct ras_events *ras,
struct ras_aer_event *ev);
int ras_report_mce_event(struct ras_events *ras,
struct mce_event *ev);
int ras_report_non_standard_event(struct ras_events *ras,
struct ras_non_standard_event *ev);
int ras_report_arm_event(struct ras_events *ras,
struct ras_arm_event *ev);
int ras_report_devlink_event(struct ras_events *ras,
struct devlink_event *ev);
int ras_report_diskerror_event(struct ras_events *ras,
struct diskerror_event *ev);
int ras_report_mf_event(struct ras_events *ras,
struct ras_mf_event *ev);
int ras_report_cxl_poison_event(struct ras_events *ras,
struct ras_cxl_poison_event *ev);
int ras_report_cxl_aer_ue_event(struct ras_events *ras,
struct ras_cxl_aer_ue_event *ev);
int ras_report_cxl_aer_ce_event(struct ras_events *ras,
struct ras_cxl_aer_ce_event *ev);
int ras_report_cxl_overflow_event(struct ras_events *ras,
struct ras_cxl_overflow_event *ev);
int ras_report_cxl_generic_event(struct ras_events *ras,
struct ras_cxl_generic_event *ev);
int ras_report_cxl_general_media_event(struct ras_events *ras,
struct ras_cxl_general_media_event *ev);
int ras_report_cxl_dram_event(struct ras_events *ras,
struct ras_cxl_dram_event *ev);
int ras_report_cxl_memory_module_event(struct ras_events *ras,
struct ras_cxl_memory_module_event *ev);

#else

static inline int ras_report_mc_event(struct ras_events *ras, struct ras_mc_event *ev) { return 0; };
static inline int ras_report_aer_event(struct ras_events *ras, struct ras_aer_event *ev) { return 0; };
static inline int ras_report_mce_event(struct ras_events *ras, struct mce_event *ev) { return 0; };
static inline int ras_report_non_standard_event(struct ras_events *ras, struct ras_non_standard_event *ev) { return 0; };
static inline int ras_report_arm_event(struct ras_events *ras, struct ras_arm_event *ev) { return 0; };
static inline int ras_report_devlink_event(struct ras_events *ras, struct devlink_event *ev) { return 0; };
static inline int ras_report_diskerror_event(struct ras_events *ras, struct diskerror_event *ev) { return 0; };
static inline int ras_report_mf_event(struct ras_events *ras, struct ras_mf_event *ev) { return 0; };
static inline int ras_report_cxl_poison_event(struct ras_events *ras, struct ras_cxl_poison_event *ev) { return 0; };
static inline int ras_report_cxl_aer_ue_event(struct ras_events *ras, struct ras_cxl_aer_ue_event *ev) { return 0; };
static inline int ras_report_cxl_aer_ce_event(struct ras_events *ras, struct ras_cxl_aer_ce_event *ev) { return 0; };
static inline int ras_report_cxl_overflow_event(struct ras_events *ras, struct ras_cxl_overflow_event *ev) { return 0; };
static inline int ras_report_cxl_generic_event(struct ras_events *ras, struct ras_cxl_generic_event *ev) { return 0; };
static inline int ras_report_cxl_general_media_event(struct ras_events *ras, struct ras_cxl_general_media_event *ev) { return 0; };
static inline int ras_report_cxl_dram_event(struct ras_events *ras, struct ras_cxl_dram_event *ev) { return 0; };
static inline int ras_report_cxl_memory_module_event(struct ras_events *ras, struct ras_cxl_memory_module_event *ev) { return 0; };
static inline int ras_report_mc_event(struct ras_events *ras,
struct ras_mc_event *ev)
{ return 0; };
static inline int ras_report_aer_event(struct ras_events *ras,
struct ras_aer_event *ev)
{ return 0; };
static inline int ras_report_mce_event(struct ras_events *ras,
struct mce_event *ev)
{ return 0; };
static inline int ras_report_non_standard_event(struct ras_events *ras,
struct ras_non_standard_event *ev)
{ return 0; };
static inline int ras_report_arm_event(struct ras_events *ras,
struct ras_arm_event *ev)
{ return 0; };
static inline int ras_report_devlink_event(struct ras_events *ras,
struct devlink_event *ev)
{ return 0; };
static inline int ras_report_diskerror_event(struct ras_events *ras,
struct diskerror_event *ev)
{ return 0; };
static inline int ras_report_mf_event(struct ras_events *ras,
struct ras_mf_event *ev)
{ return 0; };
static inline int ras_report_cxl_poison_event(struct ras_events *ras,
struct ras_cxl_poison_event *ev)
{ return 0; };
static inline int ras_report_cxl_aer_ue_event(struct ras_events *ras,
struct ras_cxl_aer_ue_event *ev)
{ return 0; };
static inline int ras_report_cxl_aer_ce_event(struct ras_events *ras,
struct ras_cxl_aer_ce_event *ev)
{ return 0; };
static inline int ras_report_cxl_overflow_event(struct ras_events *ras,
struct ras_cxl_overflow_event *ev)
{ return 0; };
static inline int ras_report_cxl_generic_event(struct ras_events *ras,
struct ras_cxl_generic_event *ev)
{ return 0; };
static inline int ras_report_cxl_general_media_event(struct ras_events *ras,
struct ras_cxl_general_media_event *ev)
{ return 0; };
static inline int ras_report_cxl_dram_event(struct ras_events *ras,
struct ras_cxl_dram_event *ev)
{ return 0; };
static inline int ras_report_cxl_memory_module_event(struct ras_events *ras,
struct ras_cxl_memory_module_event *ev)
{ return 0; };

#endif

Expand Down

0 comments on commit 56cbb92

Please sign in to comment.