Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1458469rwd; Tue, 13 Jun 2023 09:20:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CSojpv6NDI8SAIdeXvyk8lLpXZcd7vZ+GFGwor7iAdtYx1tAoKMZxUnFP+YEQ9wYOxL2+ X-Received: by 2002:a05:6a21:3981:b0:114:6f80:397e with SMTP id ad1-20020a056a21398100b001146f80397emr11770065pzc.14.1686673239635; Tue, 13 Jun 2023 09:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686673239; cv=none; d=google.com; s=arc-20160816; b=LbXBqlxlou2iq4CFXhAGU//t62udD8nJ632Gt4M2TncdIwaCGw/OS8SvAQJV53JI+I N3g1GUnGLypRS3hy9maNB9W/QuXKpig8RZLBn+ni6RklK17Oy2MHUNjdgOpsr/0lAYRv DwPPxifhXqpGsmoLt64iTpPO8PNkHt0WpTV3pdaye4jTo2FsaTUiW/nJG5R/3K+LGUY1 JjVozmXHWYzt3yIJDNW3utfY1sDQynIt8YIr/CzpPdImfyT79e7X59sylLrzBuHB51O8 NhkG8FbJtM1Dyn1uKShYwSf3DW54jg761eQtjDB5dF79aijoPvY7tmZDoENb3npIzDMx b1zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sCQ+uoB+BKHvoAKR+WbY5N6attA9mmmec+GLxPODiW0=; b=eXfkr5QJpnNhT67Nbk+tl9se7+pUIa7coOO2145pOAWogYXjE9q7WY0QmSQSxlIYaC ii4d7w0j5u2QDLiliOoSivSAk5bpgfOviAJOOOmQSDWiE4GGFaPGHO5e9kqkOKtZSFmS UZzKuhpGGTHmd5ck3UkWnnAzKZEPkAUSGhspagp+Mo3RYO1m3Y/gkyV7O7ehsEGIiASk ptTh9Ssl2wJ7yRrtlFUDOCU+0s4G1qBoUnXbc/DE3lHTra1d+3cjqnsZTqLAno90s7TX MOUnuLItgeI9SKSg6UsleZArZcbot3kd3kDZ2853r+LSFclcxYQD32ZAp6lG2Mdx6YiZ XKtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a638f4a000000b0053f0cdab820si9268898pgn.259.2023.06.13.09.20.26; Tue, 13 Jun 2023 09:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242750AbjFMPw7 (ORCPT + 99 others); Tue, 13 Jun 2023 11:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242076AbjFMPw6 (ORCPT ); Tue, 13 Jun 2023 11:52:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D0E21AC; Tue, 13 Jun 2023 08:52:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 60D3761F1E; Tue, 13 Jun 2023 15:52:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C635C433D9; Tue, 13 Jun 2023 15:52:53 +0000 (UTC) From: Catalin Marinas To: Andrew Morton Cc: Linus Torvalds , Vlastimil Babka , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Michal Simek , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] microblaze: Move the ARCH_{DMA,SLAB}_MINALIGN definitions to asm/cache.h Date: Tue, 13 Jun 2023 16:52:44 +0100 Message-Id: <20230613155245.1228274-3-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230613155245.1228274-1-catalin.marinas@arm.com> References: <20230613155245.1228274-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The microblaze architecture defines ARCH_DMA_MINALIGN in asm/page.h. Move it to asm/cache.h to allow a generic ARCH_DMA_MINALIGN definition in linux/cache.h without redefine errors/warnings. While at it, also move ARCH_SLAB_MINALIGN to asm/cache.h for consistency. Signed-off-by: Catalin Marinas Cc: Michal Simek --- arch/microblaze/include/asm/cache.h | 5 +++++ arch/microblaze/include/asm/page.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/microblaze/include/asm/cache.h b/arch/microblaze/include/asm/cache.h index a149b3e711ec..1903988b9e23 100644 --- a/arch/microblaze/include/asm/cache.h +++ b/arch/microblaze/include/asm/cache.h @@ -18,4 +18,9 @@ #define SMP_CACHE_BYTES L1_CACHE_BYTES +/* MS be sure that SLAB allocates aligned objects */ +#define ARCH_DMA_MINALIGN L1_CACHE_BYTES + +#define ARCH_SLAB_MINALIGN L1_CACHE_BYTES + #endif /* _ASM_MICROBLAZE_CACHE_H */ diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index 7b9861bcd458..337f23eabc71 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h @@ -30,11 +30,6 @@ #ifndef __ASSEMBLY__ -/* MS be sure that SLAB allocates aligned objects */ -#define ARCH_DMA_MINALIGN L1_CACHE_BYTES - -#define ARCH_SLAB_MINALIGN L1_CACHE_BYTES - /* * PAGE_OFFSET -- the first address of the first page of memory. With MMU * it is set to the kernel start address (aligned on a page boundary).