From nobody Mon Apr 13 17:14:29 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B30BEC4332F for ; Tue, 15 Nov 2022 14:09:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbiKOOJS (ORCPT ); Tue, 15 Nov 2022 09:09:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiKOOJO (ORCPT ); Tue, 15 Nov 2022 09:09:14 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 612B8656D for ; Tue, 15 Nov 2022 06:09:13 -0800 (PST) Received: from kwepemi500013.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBScg0McJzqSPt for ; Tue, 15 Nov 2022 22:05:23 +0800 (CST) Received: from huawei.com (10.175.112.208) by kwepemi500013.china.huawei.com (7.221.188.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 15 Nov 2022 22:09:09 +0800 From: Zheng Yongjun To: Subject: [PATCH] ARM: omap1: Fix build error when CONFIG_ARCH_OMAP1_ANY not set Date: Tue, 15 Nov 2022 14:07:24 +0000 Message-ID: <20221115140724.87521-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.208] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500013.china.huawei.com (7.221.188.120) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If CONFIG_BACKLIGHT_OMAP1=3Dy && CONFIG_OMAP_MUX=3Dy && CONFIG_ARCH_OMAP1_A= NY=3Dn, building fails: drivers/video/backlight/omap1_bl.o: in function `omapbl_probe': omap1_bl.c:(.text+0x1a4): undefined reference to `omap_cfg_reg' Make "extern int omap_cfg_reg" declaration under the control of macro 'CONF= IG_OMAP_MUX' and 'CONFIG_ARCH_OMAP1_ANY' to fix this. Fixes: 615dce5bf736 ("ARM: omap1: fix build with no SoC selected") Signed-off-by: Zheng Yongjun --- include/linux/soc/ti/omap1-mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/soc/ti/omap1-mux.h b/include/linux/soc/ti/omap1-= mux.h index 59c239b5569c..277a0e6c91bf 100644 --- a/include/linux/soc/ti/omap1-mux.h +++ b/include/linux/soc/ti/omap1-mux.h @@ -302,7 +302,7 @@ enum omap1xxx_index { }; -#ifdef CONFIG_OMAP_MUX +#if defined(CONFIG_OMAP_MUX) && defined(CONFIG_ARCH_OMAP1_ANY) extern int omap_cfg_reg(unsigned long reg_cfg); #else static inline int omap_cfg_reg(unsigned long reg_cfg) { return 0; } -- 2.17.1