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 DA63DC77B75 for ; Mon, 22 May 2023 12:25:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8B7B0847A4; Mon, 22 May 2023 14:24:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="B5hfoPVC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47B338478A; Mon, 22 May 2023 14:23:12 +0200 (CEST) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CF800847B5 for ; Mon, 22 May 2023 14:23:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jens.wiklander@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f24cfb8539so6877386e87.3 for ; Mon, 22 May 2023 05:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684758185; x=1687350185; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GBQsGdAhjjQtrzp+A7D4JOJ/F5C9lrwx8Cr88FFeedo=; b=B5hfoPVCbs+fGyuD7c/Az/QZbDhOGBZajdppQjZGe1J9Ec5sNrp+TxfGFNQTGtDJE3 nGVnJ8uWgzHU4t8C0w74tJg+RfQMPFqKVXAq6tEEW0/4NqSbd4QXSMNzzsFcyCH3FIrs cRveOY0AhXCi1/+SZtqo6mRpdi2YMsG0RBZCwGmNw6VMJiwkgCMwJ4i1JrwIk9Hdma0I TdvkxxJgBftgEKsW9ZxFRCNRK4hPIy1oW/gGPOIt1GWH7pdETOU2R3rIRGJgCHfvg91f tNUwCCzgr1UdKoR33w9Et21ux0dKslj2eyb78/IOrz8l0pDUDBXE//sHv3S+Tmk8CGsx 3ZHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684758185; x=1687350185; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GBQsGdAhjjQtrzp+A7D4JOJ/F5C9lrwx8Cr88FFeedo=; b=aA4F/3Ut/2MoH66g+CtUUmzjERDLXBy1rGXXHCqu/45NcE0u/g/cBRDRF2Ozz8BDMh XymyKd8QdXA2iubERUBAp4h3F8p7kpbe9GaifvCL7V5CDCvk2vZ4wgvjyUEbO7+2cEDJ TqqYYHHTxFodi93jNwFe3NpyQqtSuptQDQwO5OBnEyyJxphQXi1MoveQQXJSgmhnbB/Y Y70qa9zoFOtpiOsu31u5X5QpmO0yz1dUDhHQctrbiF4y4uOOPGmx/R6YR1IHC5mnD8qM eUj7hhgzdd7+vzLNB6bUzWenOs8zeb57d2Uxh6Fs1axuSxmNTg1uRagFGtBXQdzm96CQ lF7A== X-Gm-Message-State: AC+VfDx2knxOTpZsRhOd6DXP+N59W+dWB7I4TVnd7h/dGGvnCvgnQToX o2muuXA/BiViFGcaGpUY0dwe3trPQluY4G5SEd8= X-Google-Smtp-Source: ACHHUZ6h4606sIqJkCQPTzjkF4aKTV8L/fsdm2txu7CToQG4LG4MRzJSsHixS5eFgiBKFPbJ0el5Fg== X-Received: by 2002:ac2:5e87:0:b0:4f3:bbe1:34e2 with SMTP id b7-20020ac25e87000000b004f3bbe134e2mr1361959lfq.2.1684758184975; Mon, 22 May 2023 05:23:04 -0700 (PDT) Received: from rayden.urgonet (h-46-59-78-111.A175.priv.bahnhof.se. [46.59.78.111]) by smtp.gmail.com with ESMTPSA id y9-20020ac24469000000b004efe8174586sm974633lfl.126.2023.05.22.05.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:23:04 -0700 (PDT) From: Jens Wiklander To: u-boot@lists.denx.de, linux-btrfs@vger.kernel.org Cc: Ilias Apalodimas , Arnd Bergmann , Huan Wang , Angelo Dureghello , Daniel Schwierzeck , Wolfgang Denk , Marek Vasut , Nobuhiro Iwamatsu , Marek Behun , Qu Wenruo , Tom Rini , Jens Wiklander Subject: [PATCH 4/8] m68k: use asm-generic/unaligned.h Date: Mon, 22 May 2023 14:22:34 +0200 Message-Id: <20230522122238.4191762-5-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522122238.4191762-1-jens.wiklander@linaro.org> References: <20230522122238.4191762-1-jens.wiklander@linaro.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean 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 -- 2.34.1