Merge branch 'cleanup-ocelot_stats-exposure'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 22 Nov 2022 14:36:45 +0000 (15:36 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Nov 2022 14:36:46 +0000 (15:36 +0100)
commit339e79dfb087075cbc27d3a902457574c4dac182
treea221771b553227cd3214a53bdb571ef4af6e9abb
parent837a3d66d698516ad2330e122eba9752ec3a48ed
parent877e7b7c3b12d78f0488b767ed10ec21166ee422
Merge branch 'cleanup-ocelot_stats-exposure'

Colin Foster says:

====================
cleanup ocelot_stats exposure

The ocelot_stats structures became redundant across all users. Replace
this redundancy with a static const struct. After doing this, several
definitions inside include/soc/mscc/ocelot.h no longer needed to be
shared. Patch 2 removes them.

Checkpatch throws an error for a complicated macro not in parentheses. I
understand the reason for OCELOT_COMMON_STATS was to allow expansion, but
interestingly this patch set is essentially reverting the ability for
expansion. I'm keeping the macro in this set, but am open to remove it,
since it doesn't _actually_ provide any immediate benefits anymore.
====================

Link: https://lore.kernel.org/r/20221119231406.3167852-1-colin.foster@in-advantage.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>