Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2264402pxm; Fri, 4 Mar 2022 12:38:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH3izPi5KP2DUu6icv9QtnRUyUA0ANo7XMLSlJxkmGHJ62qF6ymJKndpRaWwpmrO34OdRb X-Received: by 2002:a63:a1a:0:b0:34d:a4a9:a8b9 with SMTP id 26-20020a630a1a000000b0034da4a9a8b9mr174094pgk.176.1646426324403; Fri, 04 Mar 2022 12:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646426324; cv=none; d=google.com; s=arc-20160816; b=qpC2/col4iCsMESvfhdyEJnVX6d19UE4+DqwlRly32J4zaEMT6ZSkcenPcseW0klH3 bKJbardrReqahCjnL9QypAipAxUCIwTj6mmw5lrUTraE9kpt8+Fby+9NbP0H8Aus1alu 50NlgKy11HJYRQromdyBNEBa26CzpZcgSyYgmoDGo4v3rRKzy/IQux1DSIExw11vWAti 0nJ9hISgK0pXrM9N36J23L6dRxG7tl6ny6dYH2xeedJgTuWd2ID8vvbmzcDhTvoXbLcC A+doTTxJBcc+Y4NzhTMB+MBdDU0zY0NsNFeyEd0lX5+Nl/uIi6kOZ/+YMmdm9gAvUoOz kA6A== 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=3nx/4EjCT1WRnAbdK5B+QhYx3aB9p2jPUVgIs1XaPe8=; b=p1KOy2zWO2LnfHhUHaBQnWIzOcLW4yH1/4RD2Hc+x9oFlZrDC6DaVLo7mBiWBeviUz DKr/lLNnlBHW6z9tZWfzopiZjUUvef1ShwyYWmaq8mNgZngkYYETb33fQ/XyPJdcIMzk GpYcRph68QyC+lwxFdw+KxwPer9q2G+ZMdPDNU2VMuC2DZWWXwbSQIPfXHpzHaZp8TlJ x0PPDeubuAwuTK+oFy+eXLOGfPtGryeab7T90txGymv4bEqP52uwEHfNNDS+HbVAGrF5 QxtT6BmzVmCyrBPNWmxzWL+B9AbUh2Gpz+QlMbFdwqOZ+5mdOT9f9os36UrhL5PcPkxW SigQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Tf4WsORJ; 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 f7-20020a170902ce8700b0015134d06714si5665385plg.1.2022.03.04.12.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:38:44 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Tf4WsORJ; 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 38D1522501C; Fri, 4 Mar 2022 11:38:32 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240617AbiCDQVD (ORCPT + 99 others); Fri, 4 Mar 2022 11:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240321AbiCDQVB (ORCPT ); Fri, 4 Mar 2022 11:21:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4BC2160FE8; Fri, 4 Mar 2022 08:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=3nx/4EjCT1WRnAbdK5B+QhYx3aB9p2jPUVgIs1XaPe8=; b=Tf4WsORJlbxFmdqRP3ReSVZHBT nQlwFzKCRUEzwP7ODV0Acd7wfi5ZFKQSer4AYIl9wZixg+FFp8TQ8ElcRbcbUk+OGWrtjG5T3K33h I1am+nyXyXSOmuTPK7/V5D4UypDkAs/n2dymry7to2NQWZIusrsfrHARkH/tM0kZGZaQRg6u+P2CV BUAuKP758rcllfU1lMwWB8hOvClN/cXE5YgKzAKji+kuS5a3LSjzkTnosq+4XEZLB7Bij/XDF73lF gwGtpUVczrvcSNHFeAsL+VnCvKcehD3t1/NbVUW6SwrqvbsixJsxUBrXKfeLxz9ro62ZCE8vXekI9 k6SgfAMg==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAf2-00CmEl-QK; Fri, 04 Mar 2022 16:20:09 +0000 Message-ID: Date: Fri, 4 Mar 2022 08:20:03 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] m68k: tweak coldfire/device.c for COMPILE_TEST Content-Language: en-US To: Greg Ungerer , linux-kernel@vger.kernel.org Cc: patches@lists.linux.dev, kernel test robot , Angelo Dureghello , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org References: <20220304033531.28667-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 On 3/4/22 06:45, Greg Ungerer wrote: > 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. What is ultimately causing the problem is drivers/dma/Kconfig: config MCF_EDMA tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs" depends on M5441x || COMPILE_TEST Would you prefer to just remove that COMPILE_TEST? Or do like Geert suggested -- see your previous patch: commit 322c512f476f07e9 ("m68knommu: include SDHC support only when hardware has it") thanks. -- ~Randy