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 79434C77B73 for ; Mon, 22 May 2023 12:24:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B756E8472A; Mon, 22 May 2023 14:24:11 +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="gcgacHdA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D21B5847D2; Mon, 22 May 2023 14:23:09 +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 1708784761 for ; Mon, 22 May 2023 14:23:04 +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-4f3baf04f0cso1925052e87.1 for ; Mon, 22 May 2023 05:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684758183; x=1687350183; 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=1IyoCNdPUejBx0Nfm2fy7tQjrPviRbLySXuMppjkmh8=; b=gcgacHdAPcgEhgCGaZG7QK1H1+uKPTsNo0kUUb7TgKgRfAMt0O67jgYz3zwNpvaDJ8 YLD6IU4Jqe5CtpinZUEHkWpKEw0q02EEKdJzDfGDYHoaKWLYLlAZ32OJwoTB/NRq0nQF nWuvHq0XN0XF0mI4GZd6FToZXD1nSzWLtskMoMjRa51hgqzNDHudxRY2Ky4Z7Ft8D4SX AtV5+C5q2VDQmIIKvP/AeijYjiPNTAB28wg8M/UPxmCQuLDEO1XoI2U/0O7VzF8xd16g qW1kxzGRwVPfjmjxKMc6bQIDxzpV0CtsntTHX7IcBEf7lKqT5poODgBoCRB7uGiRkIHx DApw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684758183; x=1687350183; 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=1IyoCNdPUejBx0Nfm2fy7tQjrPviRbLySXuMppjkmh8=; b=dN+KJ7iA7U0mHK7YKFPBcandmUWoyhWBqScGKLk6LOJcK/UqVOqeRu+lSF1SwU1mJR DK4Fz4R5LLjLa9iYXGxt1Wm/RJ4Wr6lE2v0C3tgrNMErIEj9TxC789FX+ItK2uy6cMUv 5vFy1I0hdhQKOgELZ42+xurusw//uXOdRnTwiDOaO8gZ4SPqXoxnS2+BhP2687qgEaGB 4toSAPIZ00KVjTFng8H5PcwmNToSHrx1eTD5WoFK6TT5ctU5rxbA+zKOwMJF7V8tFnwu NaVGQnVHDPGGlD16TtUdwQbdjuQjIT3t8fEDnDczMP7gx5dKJxES0ZB4TpMBSWKSzwPM 2Zdw== X-Gm-Message-State: AC+VfDyr6j/+AsTGxke4CdY/sIBq11jDN2aXjc5zHqqQ2DC2Lf8x0Hw+ TOi5zTaGsWW1KXDPOSnXuGQHH/HryHy6wIeq+oI= X-Google-Smtp-Source: ACHHUZ7GyrHaRLxZJn5CX+edppeQYtkDH6CWlWi/SgK14OWJ9VGKS0i2Zrq5Mv+0/A2rkwsEN2zsJg== X-Received: by 2002:ac2:5636:0:b0:4f3:89ca:246d with SMTP id b22-20020ac25636000000b004f389ca246dmr3437740lff.41.1684758183253; Mon, 22 May 2023 05:23:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:23:02 -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 2/8] sh: use asm-generic/unaligned.h Date: Mon, 22 May 2023 14:22:32 +0200 Message-Id: <20230522122238.4191762-3-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 Sh essentially duplicates the content of asm-generic/unaligned.h, so use that file directly instead. Signed-off-by: Jens Wiklander --- arch/sh/include/asm/unaligned.h | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/sh/include/asm/unaligned.h b/arch/sh/include/asm/unaligned.h index 5acf0819620e..7fb482abc383 100644 --- a/arch/sh/include/asm/unaligned.h +++ b/arch/sh/include/asm/unaligned.h @@ -1,20 +1,2 @@ -#ifndef _ASM_SH_UNALIGNED_H -#define _ASM_SH_UNALIGNED_H - -/* Copy from linux-kernel. */ - -/* Other than SH4A, SH can't handle unaligned accesses. */ -#include -#if defined(__BIG_ENDIAN__) -#define get_unaligned __get_unaligned_be -#define put_unaligned __put_unaligned_be -#elif defined(__LITTLE_ENDIAN__) -#define get_unaligned __get_unaligned_le -#define put_unaligned __put_unaligned_le -#endif - -#include -#include -#include - -#endif /* _ASM_SH_UNALIGNED_H */ +/* SPDX-License-Identifier: GPL-2.0 */ +#include -- 2.34.1