Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1458917rwd; Tue, 13 Jun 2023 09:20:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mKNx0D7uDRb6SxuOZCapRzjJmDtlFqgXyk0P2Vi8JnVM1aicErb0CT2r45SuIDnQp8S0N X-Received: by 2002:a05:6a00:18a5:b0:64d:6c6f:84f2 with SMTP id x37-20020a056a0018a500b0064d6c6f84f2mr17784025pfh.19.1686673258308; Tue, 13 Jun 2023 09:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686673258; cv=none; d=google.com; s=arc-20160816; b=CI8Ng8BORhTamoLwcLvZn7aBtCy1PP8xSuuC8IXmHKoG/v+NeauqMEr5g0h0LxC581 tAvAE7u+XHSWOF0TQhYSpF12vTqv9PuhuZO8jCkvP6ukaX1NH/PrMYuctDGcHmClXa+D MNvgidbBdGZVZxCXPS+Mhg/CIJpoukhADBDoP91ZNQgrc1PWP6mcJKy1JbLuTp/1Iv3e yuampDfAy9wjN6dx0dorNaQbK8PCyqDK2od9kBROoF9Pp0ORUtOBSOyIltvkmCPwO31a r3TehuEq9rT+IsQZT6vMhYNaNM8GbV/eJrER3xtNttwognNyNiTevbU34ORYvu2d6mj0 Hj+g== 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 :message-id:date:subject:cc:to:from; bh=1KMdg4h2rdyKwg2MZCVnpO5GIJhVhtCCo3vx/8VF8EE=; b=O3KpxtYyLVpCllp8r9/ujJN89NONA/51AdqBbKuQWIovy5lY8Atq/7pqxnsQ6rmYK4 MrsvbBsMQtY/PvbF0eSrtLCPS4fpFvN42A+yJYqOrkIkQmGhCZB63N+u07J7HR90GYAB UlkvIjpCEUg2xD6rcI1XyLtuBxRrIuboWSKKqH7O2ccgrP9eDJOSyTNwef7zYuGG62bY ibg1+r+sDF7nTLNz4O+fxHER7OcJu7Cf0EURC2r46Vq6BWqKDBiK7DJ8GAc/mjhAfTkv taEIEe9ceaKz3cEbShu5JwEwEgnHFG/zsLfAAkf2jtHFVgNjwTkeKx/lAaqEnRWW32mc 390A== 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 t24-20020a63b258000000b00544c0d7664fsi9081933pgo.822.2023.06.13.09.20.46; Tue, 13 Jun 2023 09:20:58 -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 S237295AbjFMPwz (ORCPT + 99 others); Tue, 13 Jun 2023 11:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237195AbjFMPww (ORCPT ); Tue, 13 Jun 2023 11:52:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F406D1AC; Tue, 13 Jun 2023 08:52:51 -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 049CF633BC; Tue, 13 Jun 2023 15:52:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D806C433F0; Tue, 13 Jun 2023 15:52:48 +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 0/3] Move the ARCH_DMA_MINALIGN definition to asm/cache.h Date: Tue, 13 Jun 2023 16:52:42 +0100 Message-Id: <20230613155245.1228274-1-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 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 Hi, The ARCH_KMALLOC_MINALIGN reduction series defines a generic ARCH_DMA_MINALIGN in linux/cache.h: https://lore.kernel.org/r/20230612153201.554742-2-catalin.marinas@arm.com/ Unfortunately, this causes a duplicate definition warning for microblaze, powerpc (32-bit only) and sh as these architectures define ARCH_DMA_MINALIGN in a different file than asm/cache.h. Move the macro to asm/cache.h to avoid this issue and also bring them in line with the other architectures. Andrew, if the arch maintainers cc'ed are fine with such change, could you please take these three patches together with the ARCH_KMALLOC_MINALIGN series? Thank you. Catalin Marinas (3): powerpc: Move the ARCH_DMA_MINALIGN definition to asm/cache.h microblaze: Move the ARCH_{DMA,SLAB}_MINALIGN definitions to asm/cache.h sh: Move the ARCH_DMA_MINALIGN definition to asm/cache.h arch/microblaze/include/asm/cache.h | 5 +++++ arch/microblaze/include/asm/page.h | 5 ----- arch/powerpc/include/asm/cache.h | 4 ++++ arch/powerpc/include/asm/page_32.h | 4 ---- arch/sh/include/asm/cache.h | 6 ++++++ arch/sh/include/asm/page.h | 6 ------ 6 files changed, 15 insertions(+), 15 deletions(-)