Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2219917pxm; Fri, 4 Mar 2022 11:39:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMMJTyZ3MMfwfHnHUDiR2QqbxhYeDF7ciKWZDNkTWou//bwlj/NoGVoY6WpPPqu5tb1RTR X-Received: by 2002:a17:90a:9306:b0:1bc:9256:5477 with SMTP id p6-20020a17090a930600b001bc92565477mr12527031pjo.170.1646422792278; Fri, 04 Mar 2022 11:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646422792; cv=none; d=google.com; s=arc-20160816; b=ILzMuyMcrb3/CtjfDuAGD6hBQI9EoxO8YU1P3rdBIUKzCQTl4BA95blgrcwz7MT5lO DxFPX8ZrlczMRr+y6dYnvLNYU/DPVFPj2KnZJxPV09EwyfyPgS9LXtOxKYJw6YGwoOjT 66uNtODnO6DcvLOOQSaVlJBHhWmHzLTocKFTYzcX7TGAIfFDBrhaWhumXHmvJOAQzo0T 1ElhAuyUIacczBTX/4WmA+09JzQ54UdyQvknH1JrS9dNAs1N7NoaVmIYOZiieiMAoud1 RaHXRK6hC2Cj0CdSXLw3AgRpxZ6kmfKh6PtMyCFEANk9DuYwzqgimr9D5ujtvGuW4PDq JuAQ== 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; bh=+NK8+YHt3ujkcPklkiufu0xPKvtBB4cZQCRhKrIdmiI=; b=xIihGHI05sdntmGmQDiTVuSBE6YYC9oW8scOgKXiqbhXxuPf2uoEveYFC568w5/47h qYF8ngZhqVYqJk11gkLVrzWOLb0nrZfBCvN+ZIklEV0IzvCCi81KE5hcQyQ/llgqT0cv T/JWcw5SUEB2vhIv7IFjkg72G5ZvYy9QwkJB1Sf3WgOCyZXGYe8d6lWGcfVUTfPwCPyc vWPWW/IiNcKpYJoZdiG/3jedW010/xqAzMJKJdIwQRA3PE3qJOH12/zUh0uuNUm4DLRb 0booCcEownev0Ci1pp2lm1gPPYkw6n76I887bfphwqjQz3BUU0Ls0j7tD538q8Qxbbpo cviA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r195-20020a632bcc000000b003749b31aca3si5283041pgr.341.2022.03.04.11.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:39:52 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 675BC22A279; Fri, 4 Mar 2022 11:16:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239909AbiCDOqk (ORCPT + 99 others); Fri, 4 Mar 2022 09:46:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbiCDOqj (ORCPT ); Fri, 4 Mar 2022 09:46:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753801BD07B for ; Fri, 4 Mar 2022 06:45:50 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id D2681B829C7 for ; Fri, 4 Mar 2022 14:45:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B04C340E9; Fri, 4 Mar 2022 14:45:45 +0000 (UTC) Message-ID: Date: Sat, 5 Mar 2022 00:45:43 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] m68k: tweak coldfire/device.c for COMPILE_TEST Content-Language: en-US To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: patches@lists.linux.dev, kernel test robot , Angelo Dureghello , Greg Ungerer , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org References: <20220304033531.28667-1-rdunlap@infradead.org> From: Greg Ungerer In-Reply-To: <20220304033531.28667-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Randy, On 4/3/22 13:35, Randy Dunlap wrote: > When CONFIG_MCF_EDMA is set (due to COMPILE_TEST, not due to > CONFIG_M5441x), coldfire/device.c has compile errors due to > missing MCFEDMA_* symbols. In the .config file that was provided, > CONFIG_M5206=y, not CONFIG_M5441x, so is not > included in coldfire/device.c. > > Only build the MCF_EDMA code in coldfire/device.c if both MCF_EDMA > and M5441x are enabled. > > Fixes these build errors: > > ../arch/m68k/coldfire/device.c:512:35: error: 'MCFEDMA_BASE' undeclared here (not in a function); did you mean 'MCFDMA_BASE1'? > 512 | .start = MCFEDMA_BASE, > ../arch/m68k/coldfire/device.c:513:50: error: 'MCFEDMA_SIZE' undeclared here (not in a function) > 513 | .end = MCFEDMA_BASE + MCFEDMA_SIZE - 1, > ../arch/m68k/coldfire/device.c:517:35: error: 'MCFEDMA_IRQ_INTR0' undeclared here (not in a function) > 517 | .start = MCFEDMA_IRQ_INTR0, > ../arch/m68k/coldfire/device.c:523:35: error: 'MCFEDMA_IRQ_INTR16' undeclared here (not in a function) > 523 | .start = MCFEDMA_IRQ_INTR16, > ../arch/m68k/coldfire/device.c:529:35: error: 'MCFEDMA_IRQ_INTR56' undeclared here (not in a function) > 529 | .start = MCFEDMA_IRQ_INTR56, > ../arch/m68k/coldfire/device.c:535:35: error: 'MCFEDMA_IRQ_ERR' undeclared here (not in a function) > 535 | .start = MCFEDMA_IRQ_ERR, > > Fixes: d7e9d01ac292 ("m68k: add ColdFire mcf5441x eDMA platform support") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Link: lore.kernel.org/r/202203030252.P752DK46-lkp@intel.com > Cc: Angelo Dureghello > Cc: Greg Ungerer > Cc: Greg Ungerer > Cc: Geert Uytterhoeven > Cc: linux-m68k@lists.linux-m68k.org > Cc: uclinux-dev@uclinux.org > --- > arch/m68k/coldfire/device.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > --- linux-next-20220303.orig/arch/m68k/coldfire/device.c > +++ linux-next-20220303/arch/m68k/coldfire/device.c > @@ -480,7 +480,7 @@ static struct platform_device mcf_i2c5 = > #endif /* MCFI2C_BASE5 */ > #endif /* IS_ENABLED(CONFIG_I2C_IMX) */ > > -#if IS_ENABLED(CONFIG_MCF_EDMA) > +#if IS_ENABLED(CONFIG_MCF_EDMA) && IS_ENABLED(CONFIG_M5441x) I really try to avoid making these ColdFire SoC specific. Freescale has a habit of using the same hardware blocks across a number of parts. The model so far has been to let the Kconfig select these out as required (and so not having to conditionally duplicate that here). I would prefer it to be conditional on !COMPILE_TEST if that is what is ultimately causing the problem. Regards Greg > > static const struct dma_slave_map mcf_edma_map[] = { > { "dreq0", "rx-tx", MCF_EDMA_FILTER_PARAM(0) }, > @@ -552,7 +552,7 @@ static struct platform_device mcf_edma = > .platform_data = &mcf_edma_data, > } > }; > -#endif /* IS_ENABLED(CONFIG_MCF_EDMA) */ > +#endif /* IS_ENABLED(CONFIG_MCF_EDMA) && IS_ENABLED(CONFIG_M5441x) */ > > #ifdef MCFSDHC_BASE > static struct mcf_esdhc_platform_data mcf_esdhc_data = { > @@ -651,7 +651,7 @@ static struct platform_device *mcf_devic > &mcf_i2c5, > #endif > #endif > -#if IS_ENABLED(CONFIG_MCF_EDMA) > +#if IS_ENABLED(CONFIG_MCF_EDMA) && IS_ENABLED(CONFIG_M5441x) > &mcf_edma, > #endif > #ifdef MCFSDHC_BASE