Skip to contentSkip to conversation

leds: rgb: mt6370: Fix implicit declaration for FIELD_GET

PATCH Applied [email protected] 2 participants 2 messages Mar 17, 2023 – Mar 22, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: rgb: mt6370: Fix implicit declaration for FIELD_GET

From: ChiYuan Huang <[email protected]>

0-DAY CI Kernel Test Service reported the implicit declaration error below:

drivers/leds/rgb/leds-mt6370-rgb.c: In function'mt6370_check_vendor_info':

Quoted 1 line
Quoted 1 line

drivers/leds/rgb/leds-mt6370-rgb.c:889:15: error: implicit declaration

of function 'FIELD_GET' [-Werror=implicit-function-declaration]

  889 |         vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo);
      |

Add the missing header 'bitfield.h' to fix it.

Fixes 55a8a5c16eb3 ("leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support")
---
 drivers/leds/rgb/leds-mt6370-rgb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/leds/rgb/leds-mt6370-rgb.c +1 -0
index 9c1e6d5..bb62431 100644
@@ -7,6 +7,7 @@
  *   Alice Chen <[email protected]>
  */
 
+#include <linux/bitfield.h>
 #include <linux/bitops.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 12 lines · On Fri, 17 Mar 2023, [email protected] wrote:

From: ChiYuan Huang <[email protected]>

0-DAY CI Kernel Test Service reported the implicit declaration error below:

drivers/leds/rgb/leds-mt6370-rgb.c: In function'mt6370_check_vendor_info':

Quoted 1 line
Quoted 1 line

drivers/leds/rgb/leds-mt6370-rgb.c:889:15: error: implicit declaration

of function 'FIELD_GET' [-Werror=implicit-function-declaration]

  889 |         vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo);
      |

Add the missing header 'bitfield.h' to fix it.

Quoted 7 lines
Fixes 55a8a5c16eb3 ("leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support")
---
 drivers/leds/rgb/leds-mt6370-rgb.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

--
Lee Jones [李琼斯]