From patchwork Wed May 31 15:48:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 13262463 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F292CC77B7A for ; Wed, 31 May 2023 15:49:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9237C8E0005; Wed, 31 May 2023 11:49:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D2B08E0003; Wed, 31 May 2023 11:49:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C2788E0005; Wed, 31 May 2023 11:49:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6D9EC8E0003 for ; Wed, 31 May 2023 11:49:26 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 486B11A0278 for ; Wed, 31 May 2023 15:49:26 +0000 (UTC) X-FDA: 80850984732.28.83F9636 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id 88A951A0030 for ; Wed, 31 May 2023 15:49:24 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf19.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685548164; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UsSmHn96n500LAHNvSPWZPr8sPKm3BwiSbEVR6vxi/k=; b=IEgPbAtxelbOWNL+UnworJVI3bPv40c3R+xRIhUGR/5CPG9tljyZbgkT9nw+7GX3zSFOJP SlChOw5rmQhgTAYgEh3G72vqfSvdZLkdouBg67soOP65A3+kag5AoAojQTtBFNuFhd3zmH EidvpGlXPS3UmtWwJ+SRAMGlN7C/Slg= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf19.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685548164; a=rsa-sha256; cv=none; b=haPTcsdYTntrAblScypOngH4lwIk382aBG1db4lc5uPQMhGPiS1lEgcCyaaAkOXAuH7G9+ suCemTnQU88aC3wtCn8tD02BFC9o9anWFCJtqjQ7EY4KGZe09Uud+/QwVfsfI8QvxBtHYa 2j/Q5NzUmZPRKz35sSf5QLAraU8UMME= 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 A801E63D5F; Wed, 31 May 2023 15:49:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C384C433A4; Wed, 31 May 2023 15:49:19 +0000 (UTC) From: Catalin Marinas To: Linus Torvalds , Christoph Hellwig , Robin Murphy Cc: Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Andrew Morton , Herbert Xu , Ard Biesheuvel , Isaac Manjarres , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , Jonathan Cameron , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Lars-Peter Clausen Subject: [PATCH v6 10/17] iio: core: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Wed, 31 May 2023 16:48:29 +0100 Message-Id: <20230531154836.1366225-11-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531154836.1366225-1-catalin.marinas@arm.com> References: <20230531154836.1366225-1-catalin.marinas@arm.com> MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 88A951A0030 X-Stat-Signature: npw8kkho16qf5efaau956sub8hazpfkf X-Rspam-User: X-HE-Tag: 1685548164-897336 X-HE-Meta: U2FsdGVkX1/a31x+cY/f7iemM+pIfG7L5r4xGt5lxoNjmApS3KbRWwXQg+F4N988FYaCipE8SnjFOokAGUaIfXck95D986HecA6br+kwau0A8nbnmBfvMVY9B2RyEsqWvAGqHNLJbt4S7/sko+ZJEoPHNeVcVDMGWKm8RnQv4DJJWmL7kt1DUIeyRcVFvOgElUIhse1IfSOfPyUhx2mUe5f0Pt2Xd8qlluTFSwFJjzs150fEyoJKlf3Uzwn3Y/4gWAW/OtPLum5cyZAqRBquurib09DAGjQmhU9HALzMita2mjZLchV4/Q+JJcswyQWsIw4ajPMB+cLoh3twDcB2wU9mHS4KipD7P4C+bRcp/fXK+XMbRGejVxCYSBCDQXOlVCuflKvVjFSi77vH6WqnlERJuxQIHlR+rAW0yhjVFGP7Oj3HprxQAxJbcWQGgt2OG1LiLy4a47Qdqo0by7zFePJlv7B/kLP7jsebFaFB9FP7kSOIvmIsxrp8F5y5M2iofYcFsh94uSV5vbuicJU3Z3HQgwAagboAfVL8E9+iNaBz7Ln/EyIx9iGkNwnMZ8if1XgLGC8nDT/PGkwQn0Pp9lVGdei8M9CCvpcTf5OC50rzo4IpC1bA/PJiwmjoTnVSsnnrup+/Mi2dhvziKEWWiU/FN29Cphsz2Kj9eihoeeb/zEs0OlL/CA5lSD97iNgmANsNX0zjzIdwbqzcEImS7lns99/bTdqAvfLb7irl+YF/0o8tCVgcULU6qelOXi3rNZ4zkEVIdwC4xYWOCgSRgyR+MofAVgC60SQ2KS2/rSvTuyUaJQxaYR7FIQ+xyod1sD/z0ife0Ft+zqzBdTioj2isIH/+7gbs4mMU3qrnIOxgPio9/UDMS1AEUR5IOiPd/5ZphJ7amtENOyuKqAizd5QgQoEFWzTGwPfL0s9MXTfE5qWscMdwBRZUvb/cvZSHCAPksDVIAfWziKS50DW cB+vtZEs k8nLbyfjrSI/PVOou48mLubxEbOwK37y4F41VE/BiTcb+gQXDifAAigPncfN9muG6yOHiJO9dpEWnGpmskgEtgHICi/gJSMv4eLenP8x9glb/lVN1FQ7SZ0Ob0294EjYmbWNi5JqHJjj1S6L7CL48Qz9z7cAvSriz84VCmvmnYVnYHlYPsVgULsCtCJiHxDKnxQj22Xj4hrhSdl5pvPXee04dvkSyqAB15TMjmvFkyjR+FsDh7WwymIgrx7JamnXhzBcp9jeAnGX34B5xV8SklntpH+srmp9n3ez0TaQsZdNuSIswl/thci2GvfHfqvHiTWOdtPiRkXBlK6wVXEcpaj4cubnxx/kg1wCO2hSFaxf9u11qmg+VH29+1isdvfhYM06UdIWCnxOijc2ysyV3gQtnMXZlr92rl2h1RN+z2JhjyCtnsevtizudGFy9nqU2w2d6asCcSPrIdbP8UdwzliCjHdj1HxJ1DBEhERfCElBEOWmT3Y/PvznRleqIpih8uhE6K3v3BJuhAn5San7aB5yVMZkokZWkvjT91vDRtmA+slAXhzB0C9msoEAKx2lcMT+4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: ARCH_DMA_MINALIGN represents the minimum (static) alignment for safe DMA operations while ARCH_KMALLOC_MINALIGN is the minimum kmalloc() objects alignment. Signed-off-by: Catalin Marinas Cc: Jonathan Cameron Cc: Lars-Peter Clausen --- include/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 81413cd3a3e7..d28a5e8097e4 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h @@ -722,7 +722,7 @@ static inline void *iio_device_get_drvdata(const struct iio_dev *indio_dev) * must not share cachelines with the rest of the structure, thus making * them safe for use with non-coherent DMA. */ -#define IIO_DMA_MINALIGN ARCH_KMALLOC_MINALIGN +#define IIO_DMA_MINALIGN ARCH_DMA_MINALIGN struct iio_dev *iio_device_alloc(struct device *parent, int sizeof_priv); /* The information at the returned address is guaranteed to be cacheline aligned */