We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359414b commit ff436ceCopy full SHA for ff436ce
drivers/perf/arm-cmn.c
@@ -581,6 +581,7 @@ struct arm_cmn_hw_event {
581
bool wide_sel;
582
enum cmn_filter_select filter_sel;
583
};
584
+static_assert(sizeof(struct arm_cmn_hw_event) <= offsetof(struct hw_perf_event, target));
585
586
#define for_each_hw_dn(hw, dn, i) \
587
for (i = 0, dn = hw->dn; i < hw->num_dns; i++, dn++)
@@ -591,7 +592,6 @@ struct arm_cmn_hw_event {
591
592
593
static struct arm_cmn_hw_event *to_cmn_hw(struct perf_event *event)
594
{
- BUILD_BUG_ON(sizeof(struct arm_cmn_hw_event) > offsetof(struct hw_perf_event, target));
595
return (struct arm_cmn_hw_event *)&event->hw;
596
}
597
0 commit comments