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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BE54C433F5 for ; Fri, 12 Nov 2021 12:40:22 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DFEC160F70 for ; Fri, 12 Nov 2021 12:40:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DFEC160F70 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18E1882F63; Fri, 12 Nov 2021 13:40:18 +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=1636720818; bh=RU5Ex+HAX9V0OmTKVoGA9uYbB3UpQST7U6Gahm5W7zE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=iRAFaNAmEeKVKbt0/n+M0IkHhbW+TL2zTVAOtr1mvbeSUGdliGNHmd2/75I4KE148 nOq72VfiOc5gJCj2Zi/kDg/3TXpt8TOqtP5lfxGaZPrjLziOt0pd8mZKy+ea5B36Us YRA0KciUpahezTgvRcIBlZ8LDrdp9X4M7WB6wlYVYqh8nTgTHjfheSv9/fHG5ObkmH eOQH+xCWcV8Q3vxEVkl+N45zbal88IgVbXaG1TJTGKmZ5axcakRL9fzAYeCDow4O1D FBVgOXhgW5meWhciXkV5iADbcrmZTofkTnszmqQn7P7qvUO3dTuaVVktd94E29hUX/ vs2fitMmmn11A== Received: by phobos.denx.de (Postfix, from userid 109) id 235C382F64; Fri, 12 Nov 2021 13:40:16 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [91.198.250.253]) (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 CFB0A8032F for ; Fri, 12 Nov 2021 13:40:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4HrJ8D4xqYzQkDy; Fri, 12 Nov 2021 13:40:12 +0100 (CET) Message-ID: <8236db5f-e9be-9e45-ef78-6cde9197a56e@denx.de> Date: Fri, 12 Nov 2021 13:40:09 +0100 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell 01/11] include/linux/byteorder: Fix compilation of __constant_cpu_to_be32() Content-Language: en-US To: =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de, =?UTF-8?Q?Pali_Roh=c3=a1r?= , =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20211103020244.25428-1-kabel@kernel.org> <20211103020244.25428-2-kabel@kernel.org> From: Stefan Roese In-Reply-To: <20211103020244.25428-2-kabel@kernel.org> 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.35 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.2 at phobos.denx.de X-Virus-Status: Clean On 11/3/21 03:02, Marek Behún wrote: > From: Pali Rohár > > The macro __constant_cpu_to_be32() uses ___constant_swab32(), which for > some reason is not defined and causes the following error during > compilation: > > include/linux/byteorder/little_endian.h:28:52: warning: > implicit declaration of function ‘___constant_swab32’; > did you mean ‘__builtin_bswap32’? [-Wimplicit-function-declaration] > #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x))) > > Declare all ___constant_swabXX() macros. > > Signed-off-by: Pali Rohár > Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan > --- > include/linux/byteorder/swab.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/byteorder/swab.h b/include/linux/byteorder/swab.h > index 4334fa77e3..5efc252acf 100644 > --- a/include/linux/byteorder/swab.h > +++ b/include/linux/byteorder/swab.h > @@ -39,6 +39,10 @@ > (__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \ > (__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) )) > > +#define ___constant_swab16(x) ___swab16(x) > +#define ___constant_swab32(x) ___swab32(x) > +#define ___constant_swab64(x) ___swab64(x) > + > /* > * provide defaults when no architecture-specific optimization is detected > */ > Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de