Ido Schimmel e1da9618b7 mlxsw: core_acl: Avoid defining static variable in header file
The static array 'mlxsw_afk_element_infos' in 'core_acl_flex_keys.h' is
copied to each file that includes the header, but not all use it. This
results in the following warnings when compiling with W=1:

drivers/net/ethernet/mellanox/mlxsw//core_acl_flex_keys.h:76:44:
warning: ‘mlxsw_afk_element_infos’ defined but not used
[-Wunused-const-variable=]

One way to suppress the warning is to mark the array with
'__maybe_unused', but another option is to remove it from the header
file entirely.

Change 'struct mlxsw_afk_element_inst' to store the key to the array
('element') instead of the array value keyed by 'element'. Adjust the
different users accordingly.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-27 15:06:43 -07:00
..
2020-03-21 18:56:06 -07:00
2020-02-06 06:11:50 +00:00
2020-03-09 16:02:32 -07:00
2020-02-29 11:47:44 -08:00
2020-02-08 14:17:27 -08:00
2020-02-08 14:04:19 -08:00
2020-03-15 12:42:03 -07:00
2020-03-20 12:52:35 +10:00
2020-03-15 10:53:11 +01:00
2020-03-07 14:14:38 -06:00
2020-01-16 10:45:44 -08:00
2020-02-04 07:17:41 +00:00
2020-01-27 13:03:00 -08:00
2019-12-16 11:49:54 +01:00
2020-02-08 13:55:25 -08:00
2020-03-06 14:48:30 -06:00
2020-02-24 09:57:05 -08:00
2020-03-06 14:50:16 -06:00
2020-01-31 11:28:31 -08:00
2020-03-18 10:42:57 +01:00
2020-02-03 22:22:05 +00:00
2020-03-08 17:36:22 -07:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-03-05 09:42:23 -06:00
2020-02-09 16:05:50 -08:00