Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1244222rwi; Thu, 27 Oct 2022 13:12:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VdbJkONXLJKlALzhgFo6HHkjPdDCmgLFVdeUnBKBCRKxvh5pnFYzTRjjjJ0odVHstR1Ou X-Received: by 2002:aa7:9152:0:b0:565:895b:e524 with SMTP id 18-20020aa79152000000b00565895be524mr50795407pfi.85.1666901512466; Thu, 27 Oct 2022 13:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666901512; cv=none; d=google.com; s=arc-20160816; b=YebTYO5oG+FlV0sZxjdPzaq53EMKWIg3Dt4JwmfVEEj4xEKdeh0QWTG0X2lS02pACp pBkpmIBK3WshFUPuuDxVPFrEmj3BvD/Ed2sF8bNrwa+myK2THaXuP0XS7L/Fz6lbGRdW iEEwHx5tthYygLkpQ6QBbWZG4+lpPOVUjTkuBaHOLg02wbhvO+DnLWb8NvPB0YvaBfkx qO1zkRoHJOqlMpn8bC4+KW/pLCFOehE1NLWtTj9+WjxQz0BUyJAVEO61jFTx/5VxRhW5 RcXQ+XYhb+JCvb9lIstFh7mQYl8uV2oxYZsRpwUvuutqQ8ogWW7z5Aub8BOOu2kn9UML puqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6+5P28sw3Xuk3jfEDNGBko+1VtdV+iimZSqu+YSAIgc=; b=xYQfsqisGib4zj2HUYcbqZjWtjCQeG0uht2M6i910iikLHzZSfWgAhviemrgOrfK82 aWad/GZ0zFs0ySMsACRwG886YmMy8MuSOtWMfSosmGqfdTLODSs2ybGrW31o25YkLPr/ G6g+ZQQ5NvHvjmp9bwCmkfBBTNp5+apCd1iy3d4JNCyTIsHtdvehuH1PSCLx+Bf2vex1 R3ZV3XkxPZng6Tlpvl6Xwm4OBTU32M+FT4f2ybR7XFcgtYgE9FOt+6hwRmNsMPOapAMT 6mEKQYqt1t3OYhT2q8tIGFa56iBTnTZBCqR24W1ExOZ9sug/EXwg2iT53zKFfDZ9PwSz snOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pk4iIsAp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a632602000000b00439f012ca81si1715642pgm.605.2022.10.27.13.11.39; Thu, 27 Oct 2022 13:11:52 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pk4iIsAp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235092AbiJ0TQv (ORCPT + 99 others); Thu, 27 Oct 2022 15:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbiJ0TQt (ORCPT ); Thu, 27 Oct 2022 15:16:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8637772EDB; Thu, 27 Oct 2022 12:16:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2672762486; Thu, 27 Oct 2022 19:16:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 209CFC4314B; Thu, 27 Oct 2022 19:16:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666898206; bh=0FOUDtQQL42lE45KflCMkrX8g3yyb7/p/49sMzexo9U=; h=From:To:Cc:Subject:Date:From; b=Pk4iIsApYuq/PVHx2kx9WyUUsO83ow1XiisTenNMn5vip3e6ObhN6NiyWP6QDb2uf w/QJWzsx5pdcnvZiy3ZqNGy0hkzr/fiQDGKL1QAka83OqI/1OLJslcPff3V51bWR0Z cWBR9mxRla+lpB4Cmb+EGTg5TkCxBEyyAnU6HhoCKDbnH0ef+KZtX4HmZOd4wN5B4K 7TxCq+kmKjASkGzJQQA99tVeaS3cvPT38piLod5P777eZj9N07utXtaoUXcTxg27b7 /rhHp41lxJfg+oIepGu2cgzFdSJMx7GpSr8gXL1YBsO04bdK96fsrxTsFIRrHTaVWk X1V8txzdvMz5Q== From: Nathan Chancellor To: Linus Walleij , Andy Shevchenko Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Nathan Chancellor Subject: [PATCH -next] pinctrl: qcom: Include bitfield.h in pinctrl-lpass-lpi.c Date: Thu, 27 Oct 2022 12:16:25 -0700 Message-Id: <20221027191625.1738204-1-nathan@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org When building ARCH=arm allmodconfig, the following error occurs: drivers/pinctrl/qcom/pinctrl-lpass-lpi.c: In function ‘lpi_gpio_set_mux’: drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:102:9: error: implicit declaration of function ‘u32p_replace_bits’ [-Werror=implicit-function-declaration] 102 | u32p_replace_bits(&val, i, LPI_GPIO_FUNCTION_MASK); | ^~~~~~~~~~~~~~~~~ drivers/pinctrl/qcom/pinctrl-lpass-lpi.c: In function ‘lpi_config_get’: drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:127:16: error: implicit declaration of function ‘FIELD_GET’ [-Werror=implicit-function-declaration] 127 | pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); | ^~~~~~~~~ drivers/pinctrl/qcom/pinctrl-lpass-lpi.c: In function ‘lpi_config_set’: drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:233:23: error: implicit declaration of function ‘u32_encode_bits’ [-Werror=implicit-function-declaration] 233 | val = u32_encode_bits(value ? 1 : 0, LPI_GPIO_VALUE_OUT_MASK); | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors bitfield.h was included via pinctrl-lpass-lpi.h but another change removed that include to restrict what was being included. Add bitfield.h back to pinctrl-lpass-lpi.c, as it is needed there. Fixes: aa9430f8a6de ("pinctrl: qcom: Add missing header(s)") Signed-off-by: Nathan Chancellor --- drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c index d5cfa91e2eff..3dc670faa59e 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c @@ -4,6 +4,7 @@ * Copyright (c) 2020 Linaro Ltd. */ +#include #include #include #include base-commit: 76f3768132eab2c26c9d67022b452358adc28b2c -- 2.38.1