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 A58A2C77B73 for ; Mon, 22 May 2023 12:25:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C589A847BE; Mon, 22 May 2023 14:24:15 +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="n0zC7oRv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5AA0584667; Mon, 22 May 2023 14:23:14 +0200 (CEST) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 B26A7847BF for ; Mon, 22 May 2023 14:23:06 +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-x129.google.com with SMTP id 2adb3069b0e04-4f3a9ad31dbso4637949e87.0 for ; Mon, 22 May 2023 05:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684758186; x=1687350186; 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=a3st1/PAYQMvCElncbKXPE+lFmIJcFQFBwuXv80unt4=; b=n0zC7oRvoC8++nW2PXO3OgOjJ3Xmoo4wtrIL1cmxjBuVIK+Q0z4KWjCW1aAqDzT7cF aIuNCHSd2ZoYkShHE9W3r9r7+GSeyUsN+97jWEVz4CB1APTRYin3Pw3/LkNT/1OfMRAC 52SkNugdtN3RTRFPQn3LIZxrO3PCQg9B3kXgzbfqj7WuHLa/Un38cYUtiGH7xNsiVEkY AkJhcW7v95Gui7FWD7e3iHbSpZBBtIwcsH3o4gIknEcXkBgLj9hfZFCJwBpKemX716kI KNLZGT/NFreXM2+ynakCAEKDsCh2tzQGjnd+siss4KFXP8wCSBa6bMDGG2K96k+kMSAO V6Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684758186; x=1687350186; 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=a3st1/PAYQMvCElncbKXPE+lFmIJcFQFBwuXv80unt4=; b=XkTvnv7DT9Ed6f+8qBlmMTGjvJzKDo9ZhyScwP1qm32ZLfZBpwBe8LixczP/811ggz jIh7ExK0qYNx0Rgr93KHNvT0koKAF57o5k2ktz8QA/iUr5iRiNXmSIANECbC/JYRO3oh xybclZCc4QPhYLIN6xOIJoyItPBguTEcvKTwrIKWiJaM2Zxb+27/EuEicBTxLnobtYrS STAIFsVMnNOIZ+q9qf1kN2Zid6SAgE78t0i44evaXbsoNfz40AR4+Cz0XpN0izjBq3Kb YCLV9QFublAlU4qfMSyDB+Gurt+TR816Rc0XoFW5/S1kq3YeDkVd3mIrxP+OAXICNk1V OaQg== X-Gm-Message-State: AC+VfDyKzSE/WX2e+mhherin35f++aUHcI/+zcazHglHD4ikWOimkbg4 5L1yRJLI0nzSLwljSVCur0jvCRvfX4rm1nakKAQ= X-Google-Smtp-Source: ACHHUZ6jbKvVV/iDts8KAcrrVsUl1aheesF2zeGMr0Wd48C3BfCC23VeXLLRSoBAWet5tPpeiGCP5A== X-Received: by 2002:ac2:52aa:0:b0:4ef:d6e2:6530 with SMTP id r10-20020ac252aa000000b004efd6e26530mr3034459lfm.37.1684758185844; Mon, 22 May 2023 05:23:05 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:23:05 -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 5/8] powerpc: use asm-generic/unaligned.h Date: Mon, 22 May 2023 14:22:35 +0200 Message-Id: <20230522122238.4191762-6-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 Powerpc 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/powerpc/include/asm/unaligned.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/include/asm/unaligned.h b/arch/powerpc/include/asm/unaligned.h index 5f1b1e3c2137..7fb482abc383 100644 --- a/arch/powerpc/include/asm/unaligned.h +++ b/arch/powerpc/include/asm/unaligned.h @@ -1,16 +1,2 @@ -#ifndef _ASM_POWERPC_UNALIGNED_H -#define _ASM_POWERPC_UNALIGNED_H - -#ifdef __KERNEL__ - -/* - * The PowerPC can do unaligned accesses itself in big endian mode. - */ -#include -#include - -#define get_unaligned __get_unaligned_be -#define put_unaligned __put_unaligned_be - -#endif /* __KERNEL__ */ -#endif /* _ASM_POWERPC_UNALIGNED_H */ +/* SPDX-License-Identifier: GPL-2.0 */ +#include -- 2.34.1