Message ID | 1679067760-19098-1-git-send-email-cy_huang@richtek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp432494wrt; Fri, 17 Mar 2023 09:21:20 -0700 (PDT) X-Google-Smtp-Source: AK7set9RiSk9zSm65AvIvkSkP1QwIG8tfshwdPRrO8nzy0XM+AhTboFfKAIjcJMAZrGTmJCXo8wb X-Received: by 2002:a05:6a00:1bce:b0:626:5bd:d33 with SMTP id o14-20020a056a001bce00b0062605bd0d33mr5099429pfw.0.1679070080211; Fri, 17 Mar 2023 09:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679070080; cv=none; d=google.com; s=arc-20160816; b=TUERtTn4xTCjq8YcepuBoi4+22CyFdb21Rc5ZyX4ajHGf+szPsk//sC83b4kC8ZTqC RsJbEwzhHepxHNJ0ooiEBJsTXpxKX/i2M9/vg/5ytUBp1nCx+H479Jt6crz18P/ei+Ru MGfFumGvg8FqVPz/2NmQwSwGwO7d7LfuibGV9h0m72DAUzauiWSHHiJ7RAWdXEUNvpMS /4bI846fdfXJrx6gwYkWzyh+uX1IQQDoJnOxtMUGAJwJqnsBWAXKcmML32kOWfoQdY1U ZSyRnpznifXbxhZQdYZLvNsklwKUZhAO/S9KvjftIVeT2UDFleWDeqGuRog50hjmdlir y0EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=TDhQL06bwybuvijWfPquue79gyq1yUmwDLPZetsiGbc=; b=xC0BXegVIdy5XIwQHfiBU3kxZ+djn9ogcjWenpzjV+oMg5j0RMrcpzP9cYZhP+C+kq cTjB5SUvg5Y1yaS0kS89Naqgo9cbi6kA5hhSU9aYYhCgl5AMj3CAEU6hAYIIZRiKNraX qzET3Afuht0cLawJE3zqzSKkPgmxpGI3wrLwRX1DEr+jTBR/MGZR81u5XUiRavk+0OcM 69UBlR9Mk+irdGPuTaevfFAB52sBmQGp9wbXfQYJtcSTiVTrhw10/GhDfO44naR2jzdW sH+31K3QFawM+ZUi3S9oR0BUoc/wbDwK9jvHdOTV5qzdvx/oWKbFa9GIM7hRQvR/QlhN qizA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a63e101000000b004fc2f19bacasi2747065pgh.120.2023.03.17.09.21.04; Fri, 17 Mar 2023 09:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbjCQPnL (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 17 Mar 2023 11:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbjCQPnJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Mar 2023 11:43:09 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D5EB28E74; Fri, 17 Mar 2023 08:43:04 -0700 (PDT) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(14117:0:AUTH_RELAY) (envelope-from <cy_huang@richtek.com>); Fri, 17 Mar 2023 23:42:42 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 17 Mar 2023 23:42:42 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 17 Mar 2023 23:42:42 +0800 From: <cy_huang@richtek.com> To: <pavel@ucw.cz>, <lee@kernel.org> CC: <matthias.bgg@gmail.com>, <angelogioacchino.delregno@collabora.com>, <cy_huang@richtek.com>, <chiaen_wu@richtek.com>, <jacek.anaszewski@gmail.com>, <linux-leds@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org> Subject: [PATCH] leds: rgb: mt6370: Fix implicit declaration for FIELD_GET Date: Fri, 17 Mar 2023 23:42:40 +0800 Message-ID: <1679067760-19098-1-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760632588705611757?= X-GMAIL-MSGID: =?utf-8?q?1760632588705611757?= |
Series |
leds: rgb: mt6370: Fix implicit declaration for FIELD_GET
|
|
Commit Message
ChiYuan Huang
March 17, 2023, 3:42 p.m. UTC
From: ChiYuan Huang <cy_huang@richtek.com> 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': >> 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. Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/oe-kbuild-all/202303171729.CcgyFx17-lkp@intel.com/ Fixes: 55a8a5c16eb3 ("leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support") Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> --- drivers/leds/rgb/leds-mt6370-rgb.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, 17 Mar 2023, cy_huang@richtek.com wrote: > From: ChiYuan Huang <cy_huang@richtek.com> > > 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': > >> 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. > > Reported-by: kernel test robot <lkp@intel.com> > Link: https://lore.kernel.org/oe-kbuild-all/202303171729.CcgyFx17-lkp@intel.com/ > Fixes: 55a8a5c16eb3 ("leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support") > Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> > --- > drivers/leds/rgb/leds-mt6370-rgb.c | 1 + > 1 file changed, 1 insertion(+) Applied, thanks -- Lee Jones [李琼斯]
diff --git a/drivers/leds/rgb/leds-mt6370-rgb.c b/drivers/leds/rgb/leds-mt6370-rgb.c index 9c1e6d5..bb62431 100644 --- a/drivers/leds/rgb/leds-mt6370-rgb.c +++ b/drivers/leds/rgb/leds-mt6370-rgb.c @@ -7,6 +7,7 @@ * Alice Chen <alice_chen@richtek.com> */ +#include <linux/bitfield.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/leds.h>