]> 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)
commitea6cb88a4e8bb7256c6d3c8d7afddb5018e13fb1
tree5138d3ffdf6a6990c75e1ea22d4f609fe87325e4
parent2fa68f8a5cc9413ce710a7f49dffe0361fbde0d8
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: 7f7fbf5560ef20 ("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