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 BC13BC77B7C for ; Sun, 28 May 2023 18:54:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4D1CE846D0; Sun, 28 May 2023 20:54:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=kernel-space.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel-space.org header.i=@kernel-space.org header.b="ZhRcsGtq"; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=kernel-space.org header.i=@kernel-space.org header.b="mcnPJkBn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 161DD8574A; Sun, 28 May 2023 20:54:51 +0200 (CEST) Received: from mail.kernel-space.org (unknown [IPv6:2a01:4f8:c2c:5a84::1]) (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 852898468B for ; Sun, 28 May 2023 20:54:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=kernel-space.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo@kernel-space.org Received: from ziongate (localhost [127.0.0.1]) by ziongate (OpenSMTPD) with ESMTP id 63c1dcd3; Sun, 28 May 2023 18:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=kernel-space.org; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s=default; bh=Dv0EIOxCj/61kKGuli36zFhskS4=; b=ZhRcsGtqs2O/2lcFC3YiZxHIM4dz IijHm8P2dGcrMRhUolouO64/O2Kl3kRw1KYd13TBN45dXT9eZY9BSoxWlPA/Ceim pshfttvYsd1EQW3avoUPCNdBGS4bmHZjAOgIv0H4RZnuN79EKRyrJiV3GsnDSF2m vY+ic5xmkjf2RSY= DomainKey-Signature: a=rsa-sha1; c=simple; d=kernel-space.org; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=UU1YbulU8hxfvHMtCCXJcXj55OTeeaMHLUw6NH4ccHh8cHgHjEc9X gnI5om1wsJ+OgHm7TnL5Rpb6U635Do2AK3KTmfY0gkapMXuN9WfuPZAUkxG2snXI 1DaHrywXH0zq1EPmqhPY7V2Npf9z7zijI9cvVrXU1WU8S05nkfZFkA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=20190913; t=1685300087; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YYEIZwllYlqTFLOEWvChNWNHs2h9arIHOagb/lQIcQQ=; b=mcnPJkBnVmCrvLRQW3q1B1HMVzGp7jTprUWuh+CgFKB7FILCpXL60ERku3tV8UsEtN37Ze FS6F2INKuPmCwlxdG/ij5znpnNpgBa2jnDm8XwW8/gJZMQ0Li80kacfIvWY5zK66J3xdyb LemL7GCWKMw+c2KI7KVGT9ARfwZe1X4= Received: from [192.168.0.2] (host-79-50-10-35.retail.telecomitalia.it [79.50.10.35]) by ziongate (OpenSMTPD) with ESMTPSA id 11459e3f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 28 May 2023 18:54:47 +0000 (UTC) Message-ID: Date: Sun, 28 May 2023 20:54:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Betterbird/102.11.0 Subject: Re: [PATCH 4/8] m68k: use asm-generic/unaligned.h To: Jens Wiklander , u-boot@lists.denx.de, linux-btrfs@vger.kernel.org Cc: Ilias Apalodimas , Arnd Bergmann , Huan Wang , Daniel Schwierzeck , Wolfgang Denk , Marek Vasut , Nobuhiro Iwamatsu , Marek Behun , Qu Wenruo , Tom Rini References: <20230522122238.4191762-1-jens.wiklander@linaro.org> <20230522122238.4191762-5-jens.wiklander@linaro.org> Content-Language: en-US From: Angelo Dureghello In-Reply-To: <20230522122238.4191762-5-jens.wiklander@linaro.org> Content-Type: text/plain; charset=UTF-8; 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.8 at phobos.denx.de X-Virus-Status: Clean Hi, On 22/05/23 2:22 PM, Jens Wiklander wrote: > M68k essentially duplicates the content of asm-generic/unaligned.h, with > an exception for non-Coldfire configurations. Coldfire configurations > are apparently able to do unaligned accesses. But in an attempt to clean > up and handle unaligned accesses in the same way we ignore that and use > the common asm-generic/unaligned.h directly instead. > > Signed-off-by: Jens Wiklander > --- > arch/m68k/include/asm/unaligned.h | 17 ++--------------- > 1 file changed, 2 insertions(+), 15 deletions(-) > > diff --git a/arch/m68k/include/asm/unaligned.h b/arch/m68k/include/asm/unaligned.h > index 328aa0c316c9..7fb482abc383 100644 > --- a/arch/m68k/include/asm/unaligned.h > +++ b/arch/m68k/include/asm/unaligned.h > @@ -1,15 +1,2 @@ > -#ifndef _ASM_M68K_UNALIGNED_H > -#define _ASM_M68K_UNALIGNED_H > - > -#ifdef CONFIG_COLDFIRE > -#include > -#else > -#include > -#endif > - > -#include > - > -#define get_unaligned __get_unaligned_be > -#define put_unaligned __put_unaligned_be > - > -#endif /* _ASM_M68K_UNALIGNED_H */ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#include sorry if a bit late, i tested this on coldfire mcf54415, no issues, so ok for me. Acked-by: Angelo Dureghello Regards, angelo