Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2450750rwb; Fri, 11 Nov 2022 09:26:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7C1rJpMd16l0ch4C3TIAaHCEYFbLTCyZrGz4xNdLaNM0tHTYtXLFF1gHuEWYapzydNY51y X-Received: by 2002:a17:907:cca7:b0:7ae:3b9e:1d8a with SMTP id up39-20020a170907cca700b007ae3b9e1d8amr2538782ejc.581.1668187581725; Fri, 11 Nov 2022 09:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668187581; cv=none; d=google.com; s=arc-20160816; b=DfkZbsLrKZS7xN3CIWtWuknghsUP7FIEVmXh6G/6ym9IHeRxFlr1CXBZC/HBjdnzfn aa/vdR7XA9Ifd5+1afoe0jmVHyik0olO3MiVmozdxkAZW14Nw+ISrqw48lasvzm70kDd SaI3kSy/B8EXhGmB8DUY9vnvjyulwHX8lpN01h2o7Xvv9Ni+LTzzR4P/uiKBxI2Xz8Nq Cx+BPJcGJxy7Ov+ZzEyKzJrMZzO64BKaL3NdZNCfBGvA/Z1vB+66jJsRbjeklEoJHwF6 9hDhzheJuu9pqt4OHeElQ8VgeTOniMsvH8pjBqhK1tHrLcRec4W3fnI5e/686ROsIa2n tOfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JaZVtFPPaLB1/chqLl5fXGZ9i1oLa0XpBUVRRJxd9cI=; b=K3UqVn71ewmNTLh2Tdn8Ndo45FrStsfE6sEWcg/d1cj0R+Rq3LUjNuEZkR5oV+AGxr bnwDMg1M7M8MEQD6GOV6o4UhpaFYxgY/TOT9o5lGiL3EbFzWVbv7t664DJKHyqJqihTL m6Vs9UVUGrKvx8r9MMIpwUEMgi1Nc7pNMPr+0dNL6EF34xghDrU4cvBvdB29bGJV0gip Rn8CVtUKWK78gntP4v86hn/29mzOmmn6cguB4hRixfwOkKrymDeXSMZHAd6/KCAiTqgj 4fPoWXFJc5pJJLWRhDbe3sf0R9KfgHRR4iqaaXBSXtT1Fv611t5lZnryVf02bgm+anfd Pqxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oZCyUTC9; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020a170906795600b0078316f0b5f8si2742218ejo.88.2022.11.11.09.25.59; Fri, 11 Nov 2022 09:26:21 -0800 (PST) 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=@linaro.org header.s=google header.b=oZCyUTC9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbiKKQiT (ORCPT + 91 others); Fri, 11 Nov 2022 11:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233842AbiKKQiI (ORCPT ); Fri, 11 Nov 2022 11:38:08 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2E89836B6 for ; Fri, 11 Nov 2022 08:38:07 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id ja4-20020a05600c556400b003cf6e77f89cso5951213wmb.0 for ; Fri, 11 Nov 2022 08:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JaZVtFPPaLB1/chqLl5fXGZ9i1oLa0XpBUVRRJxd9cI=; b=oZCyUTC9OW+Gao72Y6/Jy0WiGm29zM05RoR72zuCvODktorROYHO90I0wv148pxUJ3 AK61RQ5U62x4Rnv5wOt/kwbKT5vkWIIPdCRPXskn4CArmJgmYxukx8Hh8N76iuaCMrd7 MW4BNKE8I6AEM2OdLf7LnD4v5v7FD0+MyVozjtociVgHUjoblN1xGqLciTssf0vn8yCz qZZlviM95ZPISMODwyEEmZBjsaEbNadI2eRHZwsGxZK/LPmRtWGtB2Pg6WvIsgmsaEbR hMnqAU42OrbaqPR7sqSKj7H1sU3uW9peKaVCDtg0ihVjd3g0A3w17vX2/J5XbztGcgsE fnEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JaZVtFPPaLB1/chqLl5fXGZ9i1oLa0XpBUVRRJxd9cI=; b=RPRJnSigE1UD569BJMpwjBRXMKzKa3UhLCtOB6qoNcLNYqLB85cwAtR7f9sblVPydM /9s/ze40xMtA9CicpNUHMd2D7zQZitcmUi/AIAN4WzmybT8JhVtaqIhuB77WceBty/gE Yz7lpRxRQfLn4i5DeLsIMnQ+zCidnq89Ra0zevp6NlWVsf7puvy4GGy6AtVn4tsTamdC NCCdNP8k47dO2EPBs/+BVG2r/yyOsc2G1org0+gs/KWN4ntHUZiczzYDx/KSxEwD8NWq wUuWOkBBzXWPg85t2ROexNmu4ZGn31UAPmZ8zI2E1DyjJMZ1+3X3qxCEF6xTvP4/meOY FMqg== X-Gm-Message-State: ANoB5pmba7jXWNQx7SMfC6StlpUV9nZQ/wv4ssYunWuSFFJlN6+0w14i QfuGQs0lLBxij9EZFMQ/daQfUA== X-Received: by 2002:a05:600c:204d:b0:3cf:a3c4:59b3 with SMTP id p13-20020a05600c204d00b003cfa3c459b3mr1854849wmg.198.1668184686366; Fri, 11 Nov 2022 08:38:06 -0800 (PST) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id w9-20020adfee49000000b00228cd9f6349sm2265623wro.106.2022.11.11.08.38.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Nov 2022 08:38:05 -0800 (PST) Message-ID: <49722205-bd5b-8241-d2ff-7eb956e05ec1@linaro.org> Date: Fri, 11 Nov 2022 16:38:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2] ASoC: codecs: wsa883x: use correct header file Content-Language: en-US To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: kernel test robot , Banajit Goswami , Mark Brown , Liam Girdwood , alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai References: <20221108001829.5100-1-rdunlap@infradead.org> From: Srinivas Kandagatla In-Reply-To: <20221108001829.5100-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 08/11/2022 00:18, Randy Dunlap wrote: > Fix build errors when GPIOLIB is not set/enabled: > > ../sound/soc/codecs/wsa883x.c: In function 'wsa883x_probe': > ../sound/soc/codecs/wsa883x.c:1394:25: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] > wsa883x->sd_n = devm_gpiod_get_optional(&pdev->dev, "powerdown", > ../sound/soc/codecs/wsa883x.c:1395:49: error: 'GPIOD_FLAGS_BIT_NONEXCLUSIVE' undeclared (first use in this function) > GPIOD_FLAGS_BIT_NONEXCLUSIVE); > ../sound/soc/codecs/wsa883x.c:1414:9: error: implicit declaration of function 'gpiod_direction_output'; did you mean 'gpio_direction_output'? [-Werror=implicit-function-declaration] > gpiod_direction_output(wsa883x->sd_n, 1); > > Fixes: 43b8c7dc85a1 ("ASoC: codecs: add wsa883x amplifier support") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Cc: Srinivas Kandagatla > Cc: Banajit Goswami > Cc: Mark Brown > Cc: Liam Girdwood > Cc: alsa-devel@alsa-project.org > Cc: Jaroslav Kysela > Cc: Takashi Iwai > --- Reviewed-by: Srinivas Kandagatla > v2: add the correct header file instead of messing with GPIOLIB in Kconfig > > sound/soc/codecs/wsa883x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -- a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c > --- a/sound/soc/codecs/wsa883x.c > +++ b/sound/soc/codecs/wsa883x.c > @@ -7,7 +7,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include