net: phy: micrel: Fixes FIELD_GET assertion
authorDivya Koppera <Divya.Koppera@microchip.com>
Tue, 11 Oct 2022 09:54:37 +0000 (15:24 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Oct 2022 00:51:33 +0000 (17:51 -0700)
commitfa182ea26ff09cbadb28bbcd6196209b3555eb1d
tree5138d3ffdf6a6990c75e1ea22d4f609fe87325e4
parent3c1860543fccc1d0cfe3fd6b190e414a418fe60e
net: phy: micrel: Fixes FIELD_GET assertion

FIELD_GET() must only be used with a mask that is a compile-time
constant. Mark the functions as __always_inline to avoid the problem.

Fixes: 21b688dabecb6a ("net: phy: micrel: Cable Diag feature for lan8814 phy")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Divya Koppera <Divya.Koppera@microchip.com>
Link: https://lore.kernel.org/r/20221011095437.12580-1-Divya.Koppera@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c