From patchwork Mon May 22 12:22:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 13250463 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A84CDC77B73 for ; Mon, 22 May 2023 12:25:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234038AbjEVMZu (ORCPT ); Mon, 22 May 2023 08:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234322AbjEVMZh (ORCPT ); Mon, 22 May 2023 08:25:37 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318E810E6 for ; Mon, 22 May 2023 05:23:29 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3baf04f0cso1925047e87.1 for ; Mon, 22 May 2023 05:23:29 -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=barnMncFD8m++0YzSndop4tRIYkQNYXF81se/odc36sYEhCJxuI3biiHpPaP2ThPGO WF52jP8uGdoOLmTVKUuVg9Tflgq0ocz8qz8kWYNiP55Ky6RPP41s0WZGl/qGbTtKps2C w9B42PoZW/BRy9lYRDb1irxMTzX4w+uJaw5lqZoGa6XGCSWz4ztag0VoYOHrIkbMxEe9 XuIAr4uspxDihKowJRRyfGFr8aYDoVqvs6WwSzFXvZfxWtMQ6sJVqO+CTARUXPdwddfz KUIJMWfTKgWZfhcOgaA585Eo4JANBbE5Pb6vKzaF6cDcbve7//ahbFyalQsegN0T7dkF v0lQ== X-Gm-Message-State: AC+VfDynewRl8eKpTA+7lJZ66SPlQ8nXjM91lT9/nphs9SVDkQ4TuP+L 9QMRbjCfsqsKvXvckv+FT6Hl0w== 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 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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