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 E0E54C433EF for ; Sat, 19 Feb 2022 16:17:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 654D883C30; Sat, 19 Feb 2022 17:17:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645287425; bh=euWFzTgDNhVokkK54EOs+Y53CqOnNyfG4FtCti73ApM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uJyBfsn+8jh0UoSWHSV8pq7db05zuM4temoKm/Ivplh3bg4NWKq7fCjsKhzWy1RhU FY0H0u+Ct+EtyIyTFwRQuFlWPXvbAIIXiOIVx0PQ0qrp2FiWv034J3wJCs1wCiLw4D wyhIhhTsnbtNq5V6rkYld9iwo9kzRU+aPd/UKp4ZRVezhEYO027KhLkqjhwNhuZFO8 JCXvRWTN9i2m9fN/zyzO1jXfFxlKWRRWlWsjR7SgFft4lJyGf5I9oJ6jJ4ZUtION1D WRYZ7xw0uocdpiGMZw/hSv5I7vp2L60GGlcKOWa4oRosulGu1lByT2EQVyVKCVNRyh JC2K1lL6d0WXQ== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2076F83C23; Sat, 19 Feb 2022 17:17:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645287423; bh=euWFzTgDNhVokkK54EOs+Y53CqOnNyfG4FtCti73ApM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=C3RkypHpYVomCi0SK3U387Rt1T40yrLLZZr2Rda9/pc9U2hK6HCW73vaKZWELb1eF jOeTlvPhpdoc303yJszYydCVoxr2iGVwD9yxILIwsNTOLGtbc1WVgkoRVMjbp2hn5Q VDLhROZ7DCXDT5TJIAeQNo0QAz7M/UXv/zyrQfsF1GJYW6xbyucVpDeKjjlS48JyRN sXIb6ElSMztMYnlULXj8YKqc82X+erSaOqOS6ZvQJf9vtgsFz48kfOknkp4OYbFr1T 3A6YPalx8QanJylt+ZGcnmjeYLvD7hdPKYF2iVPKj8D3m/tUOEt+wxZEsrojazGpXQ TjC839nJJHWjw== Message-ID: <127ea0dd-74c6-e423-9b1a-4441c3d277e3@denx.de> Date: Sat, 19 Feb 2022 17:17:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 2/2] ARM: imx: imx8mn-ddr4-evk: Add ethernet support Content-Language: en-US To: Stefano Babic , u-boot@lists.denx.de Cc: Fabio Estevam , Peng Fan References: <20220213233617.457145-1-marex@denx.de> <20220213233617.457145-2-marex@denx.de> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 2/19/22 14:06, Stefano Babic wrote: Hi, [...] > I have not pushed this patch because I am puzzled. There is nothing > wrong in the patch, and I can apply it, but CI fails randomly. There is > a warning during compilation of this board, see: > > https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/394060 > > However, this makes no sense. It looks like that > > +       if (IS_ENABLED(CONFIG_FEC_MXC)) > +               setup_fec(); > > This has effect, while during preprocessing of the same file: > > +#if IS_ENABLED(CONFIG_FEC_MXC) > +static int setup_fec(void) > > it looks like as "deactivated", no idea why. The warning makes no sense > by reading the code. And if I build the board locally, with  make or > buildman, everything fine - no error at all.  But, even locally, > "buildman aarch64" reports this warning. No idea why, but I cannot add > this to PR else the breakage goes into Tom's tree. > > Of course, if I drop #if IS_ENABLED(CONFIG_FEC_MXC), everything fine, > but it does not means it is a solution. The ethernet on this board is always present, so maybe that is the solution here. Although I also don't know why this failed in the CI and not during local build, some clang detail maybe ?