linux/drivers/net/ethernet/mscc
Vladimir Oltean 7eb5c96a7c net: mscc: ocelot: use plain int when interacting with TCAM tables
sparse is rightfully complaining about the fact that:

warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
   26 |   __builtin_constant_p((l) > (h)), (l) > (h), 0)))
      |                            ^
note: in expansion of macro ‘GENMASK_INPUT_CHECK’
   39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |   ^~~~~~~~~~~~~~~~~~~
note: in expansion of macro ‘GENMASK’
  127 |   mask = GENMASK(width, 0);
      |          ^~~~~~~

So replace the variables that go into GENMASK with plain, signed integer
types.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-20 17:25:23 -07:00
..
Kconfig
Makefile net: mscc: ocelot: move ocelot ptp clock code out of ocelot.c 2020-04-21 15:38:33 -07:00
ocelot_ace.c net: mscc: ocelot: use plain int when interacting with TCAM tables 2020-06-20 17:25:23 -07:00
ocelot_ace.h net: mscc: ocelot: deal with problematic MAC_ETYPE VCAP IS2 rules 2020-04-18 15:54:11 -07:00
ocelot_board.c net: mscc: allow offloading timestamping operations to the PHY 2020-05-27 14:54:31 -07:00
ocelot_flower.c net: qos offload add flow status with dropped count 2020-06-19 12:53:30 -07:00
ocelot_io.c net: mscc: ocelot: move resource ioremap and regmap init to common code 2019-11-15 12:32:16 -08:00
ocelot_police.c net: dsa: felix: add port policers 2020-03-30 11:44:00 -07:00
ocelot_police.h net: dsa: felix: add port policers 2020-03-30 11:44:00 -07:00
ocelot_ptp.c net: mscc: ocelot: support 4 PTP programmable pins 2020-04-21 15:38:33 -07:00
ocelot_qs.h
ocelot_regs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-06 22:10:13 -07:00
ocelot_rew.h
ocelot_s2.h net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot_tc.c net: remove newlines in NL_SET_ERR_MSG_MOD 2020-05-07 17:56:14 -07:00
ocelot_tc.h net: mscc: ocelot: Implement port policers via tc command 2019-05-29 21:37:49 -07:00
ocelot.c net: mscc: allow offloading timestamping operations to the PHY 2020-05-27 14:54:31 -07:00
ocelot.h net: mscc: ocelot: move ocelot ptp clock code out of ocelot.c 2020-04-21 15:38:33 -07:00