]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite370c65a07b04e43998b3627c5ed1b10aaff19b0
tree5138d3ffdf6a6990c75e1ea22d4f609fe87325e4
parentdb1c0226c458876a9304e354f776276b95892e30
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: 7413ccbbc24521 ("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