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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24FE0C433F5 for ; Mon, 21 Feb 2022 12:50:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 81B27830EA; Mon, 21 Feb 2022 13:50:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="YkUU/jAn"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="uudWB+aI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E728A839EB; Mon, 21 Feb 2022 13:50:53 +0100 (CET) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E2BC781FDE for ; Mon, 21 Feb 2022 13:50:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 817C14E200C; Mon, 21 Feb 2022 12:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1645447847; bh=WtmqSSMSBK0qVIeBBi9LuA4VRIMvEKD3q5TZdYIyKhE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=YkUU/jAnFib4bU0Umgt6qJOgCckqm/uMiR9wO/1Rd/Wdl0SluxN7unBJPpGhRQQR7 Z63qv0YefNP/1KXgc4eOj2CfbR7uEdU0HxMo0gfYNzemsQQBPKKYhfjX6fIjkGSxv1 jCE5/HAidTGO9NIJLauzBfCCi3dnTN9gKoqFkUJE= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9h50cD2rlHD9; Mon, 21 Feb 2022 12:50:46 +0000 (UTC) Received: from www.akkea.ca (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id CB5F44E2003; Mon, 21 Feb 2022 12:50:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1645447846; bh=WtmqSSMSBK0qVIeBBi9LuA4VRIMvEKD3q5TZdYIyKhE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=uudWB+aI9ZajetYzdOiEVFAPmDslwwW0oQHNt2FDYIQwZEtpa0v6ykNjKX9gYzOiu kYDZcskEsDcneIjxm2vJW/6+LxuKWSUZm9uiRl74rxFOxyan86WQrzJLaHtla5ZB/D janLO7OmB4UIEn738u3icHX0tDZIXE1/kGPAWuWE= MIME-Version: 1.0 Date: Mon, 21 Feb 2022 04:50:46 -0800 From: Angus Ainslie To: Simon Glass Cc: U-Boot Mailing List , kernel@puri.sm Subject: Re: [PATCH] core: devres: don't use devres code when CONFIG_DEVRES is not defined In-Reply-To: References: <20220202231636.2081677-1-angus@akkea.ca> Message-ID: <1443ffaa0f7a43a7938067f75b5f934f@akkea.ca> X-Sender: angus@akkea.ca User-Agent: Roundcube Webmail/1.3.17 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Simon, On 2022-02-19 14:12, Simon Glass wrote: > On Wed, 2 Feb 2022 at 16:16, Angus Ainslie wrote: >> >> Put guards around the devres code so that it isn't compiled during the >> SPL. >> >> Signed-off-by: Angus Ainslie >> --- >> drivers/core/devres.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) > > I think the correct fix here is to change the Makefile rule for this > file to use > > CONFIG_$(SPL_)DEVRES > > instead of > > CONFIG_DEVRES > > Can you try it? > I think it will work that way and I did think about doing the patch that way. My concern was that it might break some boards because they are expecting DEVRES in the SPL. I can rework the patch that way but not sure how I'd test which boards needed the CONFIG_SPL_DEVRES defined. Thanks Angus > Regards, > Simon > [..]