Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp969303rwb; Sun, 6 Nov 2022 17:07:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM60c7qpYCo6ObHnzxSNUhajhGiAYOWPbLbt8yt/mQ8zUpKutzO7hZEkpPdp7aOlIFwKQj+F X-Received: by 2002:a63:d66:0:b0:46f:8979:30e2 with SMTP id 38-20020a630d66000000b0046f897930e2mr37235574pgn.348.1667783226687; Sun, 06 Nov 2022 17:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667783226; cv=none; d=google.com; s=arc-20160816; b=LQshSyCrNBM1Ie5djr/VekGIDZgLpKlWsAmOdCLoXYVNNeHi0QjJfnl8L6b4T38ztB PI3str/ph/OujI+acvZSYTeZxoLuUotf9cybPbTEkLa/KJrWJew7PuPV2z2DcqCmISOh cBDN1uPbLb13rZjJPqHvb/GMJpSZw/yCmhUihOWFVYcwBPuyNiewgEndVHmzieWXO6vB P5aWIeXcuhHz4rvfyQryaltY3GCqZIkhZ3u2qT81IOQSIhPFvCmJ7fBPbpDpHMlYhpWX PhuHOw3avcPLKgelXzg0D3kzoDjnRXWVknm8gqxDcAASOY368BYFZkjg1xYHNUSH96Op LAWw== 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=qkPCrvakuWsxBIiqN2P+Ebj3vUfpA6YfwWkFjX3LRwo=; b=wT2GtbffXRqExXSwzPTbbzAYywiK78CjnrtFBfZKwU/RQAIdw/4WuK8gyEtVimF4G6 2b2PhDX0QYeAEVJS14WQ5zaMtZyEfaqYg6d1JUf9YyIneFYWXTPAf8Xi1x6feRCpD6Lj kBW5hId7t26tKXyCjBCTE4wzHHrOJkZCjDDVmDspKCi+tCw4msCJIgoncFvpsNZzxWD/ bRejfvo7QaoUYPJZa12XjGEonCJ0igx7TTbhIzLKrKc5ziFMeuvUG/kK1jq1PvfyU85y 7zQ4DfQuhOZEowNG/dZXe3fUDzPvWwXAaPzPrm6R2ZWY8dYMc2qZS3fQAV80wVvOUuNd NP2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=a6GWTSWr; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a17090340c100b001869b988d9bsi8268562pld.332.2022.11.06.17.06.54; Sun, 06 Nov 2022 17:07:06 -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=@infradead.org header.s=bombadil.20210309 header.b=a6GWTSWr; 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 S230118AbiKGAzS (ORCPT + 96 others); Sun, 6 Nov 2022 19:55:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbiKGAzR (ORCPT ); Sun, 6 Nov 2022 19:55:17 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E152A18A; Sun, 6 Nov 2022 16:55:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=qkPCrvakuWsxBIiqN2P+Ebj3vUfpA6YfwWkFjX3LRwo=; b=a6GWTSWrzhgOW2yIA4hHY4oYDX VbNJ8JYcwGp9AbMN/kNObt924s2BWyTPrJprbKchakYzTmHwSAZhXUPje6us5SDmwwcaVzZWrZrIB tZ+gW2YDp+lV8459++eUPkveV1SqMPLTjVDcJLiWmc0sfWz9rspnB8JSU3ub1I+FA/a8XyIfX7GU3 1YI7xZF7gbwI/sXkoQ9dZCPAHrncAhtme1lBej+xtJYK3EtVhDzVhwnXf4QDDSE9zhy8tOgIVUKxn AB33imLt49gtqwGnJTebscuVuq0leILQVttUbs9Oj+wF4WP5WALz4vz1BLCia2Pm+7qxODllqzoMj XZBbzy1g==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1orqPu-00Aj33-Bi; Mon, 07 Nov 2022 00:55:10 +0000 Message-ID: <55cdacf5-2b0c-3813-d739-b806db65b052@infradead.org> Date: Sun, 6 Nov 2022 16:55:08 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] ARM: omap1: set ARCH_OMAP1_ANY for ARCH_OMAP1 Content-Language: en-US To: Arnd Bergmann , Russell King Cc: linux-kernel@vger.kernel.org, kernel test robot , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , linux-arm-kernel@lists.infradead.org, Linux-OMAP References: <20221106062536.26369-1-rdunlap@infradead.org> <62f5b747-4c65-46a6-b04d-1d0fcbadf5c9@app.fastmail.com> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 11/6/22 03:32, Arnd Bergmann wrote: > On Sun, Nov 6, 2022, at 11:37, Arnd Bergmann wrote: >> On Sun, Nov 6, 2022, at 11:26, Russell King (Oracle) wrote: >>> On Sun, Nov 06, 2022 at 08:43:50AM +0100, Arnd Bergmann wrote: >>>> --- a/arch/arm/mach-omap1/Kconfig >>>> +++ b/arch/arm/mach-omap1/Kconfig >>>> @@ -49,7 +49,7 @@ config ARCH_OMAP1_ANY >>>> select ARCH_OMAP >>>> def_bool ARCH_OMAP730 || ARCH_OMAP850 || ARCH_OMAP15XX || ARCH_OMAP16XX >>>> >>>> -config ARCH_OMAP >>>> +config ARCH_OMAP1_ANY >>> >>> This patch can't be right - look at the first line of context above, you >>> have symbols that select ARCH_OMAP and you've just removed the >>> definition of ARCH_OMAP. >> >> Right, I misread this, I thought this was an 'if ARCH_OMAP' block >> instead of the Kconfig symbol. Part of the problem is now is >> possibly that there are two symbols with that name now, I'll have >> to try to reproduce the problem first and then see what caused it >> originally. > > It seems the root cause was actually 804f7f19c2e2 ("fbdev: omap: > avoid using mach/*.h files"), where I started allowing building with > CONFIG_COMPILE_TEST, but this fails when ARCH_OMAP1_ANY is disabled, > as Randy correctly found. > > We could tighten this gain by adding something like > > depends on ARCH_OMAP1_ANY || !OMAP_MUX > > to still allow compile-testing but specifically avoiding the > broken case. I think we have the same problem in the pcmcia and > spi-uwire drivers, so maybe something like this would be > a better approach: > > --- 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; } That seems to work. Push it into -next and see what happens. :) -- ~Randy