From patchwork Fri Jan 29 10:05:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 373393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B3BFC433E0 for ; Fri, 29 Jan 2021 10:06:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E51A564E06 for ; Fri, 29 Jan 2021 10:06:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E51A564E06 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 513511616; Fri, 29 Jan 2021 11:05:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 513511616 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1611914802; bh=3HPvIU6X9t2pPAjfaIcceKOcvyPoEK3/lSERRRBhj2c=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=iDb8PC9EO17vEWw3kgYkEzvO6sSsaEHuKNckg/GnVkB3a4d1Kx1xfUaEcEY5VirMJ dFI5DpcQ8LSmZ1r7eLo40njbL3Ui6a8mAZac128qS/3i62Hy6Mdqq8QSwfmxnC5LEz 8ChzU6okyv8LQeSpFyNH06Cnhyqj6TnUmW2+5jjI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C5A2AF80130; Fri, 29 Jan 2021 11:05:51 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3C929F80259; Fri, 29 Jan 2021 11:05:50 +0100 (CET) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 49803F800E9 for ; Fri, 29 Jan 2021 11:05:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49803F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q4ZRywYQ" Received: by mail-wm1-x329.google.com with SMTP id i9so6699698wmq.1 for ; Fri, 29 Jan 2021 02:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XpRpuvbCjxo6Q1eyzpy8Z1uCp+BK0P9ZIoiJ3t71Ysk=; b=q4ZRywYQgLGbpERpFoA8GdJf3IgZWpFvxVri61p2X9du6PvXKmNW2U5Ty94tXnUgox ffHAcQS4Ed4sILoNkp5NfXk9okon5V4IKCCcQfhI9MAWwah0M0ayfxY32aIjeDx8NQcj jYXAbreaWmJ7JbvMY/Eob8ZnSoaXKyVLnIe/JzTXqOZjCWjfERsHGBiFbEiFUkKZ3BxA 1sf81yFjgAZ+mX72u55KuwJn5FZ3HUjTIL+lJWC1vrwYKfhpP6Fb600oPgsQbACJYfYS 7YO4opLbotZ5KPZfHoB36FN8zth7JqTr3DC1HV89bzPEmQKxu8W09H3JyF4j8TWahFZw qCKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XpRpuvbCjxo6Q1eyzpy8Z1uCp+BK0P9ZIoiJ3t71Ysk=; b=WGF6Cw2zM2JXM9rI7VpvFmn7xrfcZaJ+mS6+KNLNQQrOR49TKDiQgaufgmjoXANmxV eC1vY81fcxlLkwRARJxN6BcyG574Dyw1hgpGLX9YBWN7hMqhVuUR6MrxmpGed+i5JqeB u0hb57FDWyxHlBnFq8K8IEskaV3JBR/RPSmarZlp7YJkGyfmHk8Q62wU0lYzUuybZ+uQ izV369msVQUpGHEp9y4vH4E+t437vmPJz2ryFa5aWmk7IrS50/KEPCZNzq4VgMW2MXXc 9Y/hLZ82pWcWvWWTARvkSYexAklv0amAApYtBm5Jm8MKc3p6wIpiDYp8HJOttxyjExp+ 1iVw== X-Gm-Message-State: AOAM532cBUWwZgcQcdnf8ICMVLmziHlxgOxTL7bX11fWzkiZ4D4WwLw7 lEjtY7eRcT9zH5XERFWHad5Kaw== X-Google-Smtp-Source: ABdhPJz/uscMUCV76CPaCVrUDlk654KuRzMlEw3dXk3WwowTg57lI68ahC047kgWHTFd768HFBzbxw== X-Received: by 2002:a1c:408b:: with SMTP id n133mr3063144wma.103.1611914743077; Fri, 29 Jan 2021 02:05:43 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id q9sm10561823wme.18.2021.01.29.02.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 02:05:42 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH] ASoC: soc-component: fix undefined reference to __ffssi2 Date: Fri, 29 Jan 2021 10:05:39 +0000 Message-Id: <20210129100539.23459-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, kernel test robot , lgirdwood@gmail.com, linux-kernel@vger.kernel.org, tiwai@suse.com, vkoul@kernel.org, Srinivas Kandagatla X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" microblaze-linux-gcc (GCC) 9.3.0 complains about missing __ffssi2 symbol while using __builtin_ffs at runtime. This is because arch/h8300 is compiled with -fno-builtin option. so fallback and use kernel ffs() instead to all the arch builds happy! Fixes: 1da0b9899abd ("ASoC: soc-component: add snd_soc_component_read/write_field()) Reported-by: kernel test robot Signed-off-by: Srinivas Kandagatla --- sound/soc/soc-component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 361a79d655e3..159bf88b9f8c 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -11,6 +11,7 @@ #include #include #include +#include #define soc_component_ret(dai, ret) _soc_component_ret(dai, __func__, ret) static inline int _soc_component_ret(struct snd_soc_component *component, @@ -43,7 +44,7 @@ static inline int soc_component_field_shift(struct snd_soc_component *component, return 0; } - return (__builtin_ffs(mask) - 1); + return (ffs(mask) - 1); } /*