Message ID | 20230518173403.1150549-9-catalin.marinas@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 D2BE9C7EE23 for <linux-mm@archiver.kernel.org>; Thu, 18 May 2023 17:34:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6F48790000E; Thu, 18 May 2023 13:34:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 67BE2900003; Thu, 18 May 2023 13:34:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5438790000E; Thu, 18 May 2023 13:34:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 46ED6900003 for <linux-mm@kvack.org>; Thu, 18 May 2023 13:34:45 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 254331608AB for <linux-mm@kvack.org>; Thu, 18 May 2023 17:34:45 +0000 (UTC) X-FDA: 80804075730.14.1964A17 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf21.hostedemail.com (Postfix) with ESMTP id 70D7A1C0007 for <linux-mm@kvack.org>; Thu, 18 May 2023 17:34:43 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf21.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=1684431283; 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=+fgUtZ7z2bEcsaerci/jffnaSF7K1ZtF0r/2TxWeNAQ=; b=aXWqQflSpxKMyMXkzwyUSiddVEbQigcrb1eIZ0nvOuRExsc6bBJtCn55yEcNop8xJW5OIz /1xo1ine1l3Gxtdcx4fqQBk0/p6s+tz5gHyV4zGVe+f224FwUYsHkKK9kTj0zuG+qsg+RZ ODS2fba/0tNc/zIHyXnMCZkl4zYAqR8= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf21.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=1684431283; a=rsa-sha256; cv=none; b=u26a+PflVI4Sipi1bfwsiQLL05QisTyZAjOv/D0qT/A1N+i99CPQ9Yoxt9ItoUXg3gzOqR 808OnG+MUGTlv6Nr4Z09e7BRuTHCC9v7o22wiICvG/QbQxF+WtoiPvEpm4f0atWN+rVJ1N GX93BS/m2BriblhrVqhNuv1wuMwRDfA= 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 4B80F65146; Thu, 18 May 2023 17:34:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10313C4339B; Thu, 18 May 2023 17:34:37 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Linus Torvalds <torvalds@linux-foundation.org>, Arnd Bergmann <arnd@arndb.de>, Christoph Hellwig <hch@lst.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Herbert Xu <herbert@gondor.apana.org.au>, Ard Biesheuvel <ardb@kernel.org>, Isaac Manjarres <isaacmanjarres@google.com>, Saravana Kannan <saravanak@google.com>, Alasdair Kergon <agk@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, Joerg Roedel <joro@8bytes.org>, Mark Brown <broonie@kernel.org>, Mike Snitzer <snitzer@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Robin Murphy <robin.murphy@arm.com>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 08/15] drivers/spi: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Thu, 18 May 2023 18:33:56 +0100 Message-Id: <20230518173403.1150549-9-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518173403.1150549-1-catalin.marinas@arm.com> References: <20230518173403.1150549-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 70D7A1C0007 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: zuh85tc67qduepr66e8ttpxsr19cptbn X-HE-Tag: 1684431283-692471 X-HE-Meta: U2FsdGVkX1+OPM6e9czvbuNCJK64n5Zv0dj/7wtYloIq9Hs/0LWntvRzKEK/OedcllCxFz5QDfk7Mufcxvu0gikZdlyP7xPpXBs+lm4NeZB7nKM+ZFM00qm+YhlW8nSxEot75IRxRSQ/BGxcN/IzNs2Duw+qfc7yDBXIkCiK89zw1ZyExwnD8k4eBq4jAwOD6Kim2QDPio2WFXLTMDJuefmgw51SlVVPUGafptobb0usKbOiCbZghSauxis/oC1StCKl0JV19a4gpmJF3FYdXK4+ncdNS8ZfnF52BpEVyIQr01m1l8FX9oZXIZzicO1pdwvWhgbo29Eatl+JKJzdbYPC7INqyoHz2RRCbhPspJc3Xg5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ED1nGhWNBUNbQ5D4RiRO61O8V/8cx+Ysc6K58/3JJnI5DKfvS2vszf3tWvo+D6cVagPDC40q8f9fn8GtPRSKYAWGM7qGWRn9yaDlyupChTf3yphkCmf7KAj6NVwKw0zqpuKuXEfVMUm 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: <linux-mm.kvack.org> |
Series |
mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8
|
expand
|
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 39d94c850839..8d009275a59d 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -237,7 +237,7 @@ static int spidev_message(struct spidev_data *spidev, /* Ensure that also following allocations from rx_buf/tx_buf will meet * DMA alignment requirements. */ - unsigned int len_aligned = ALIGN(u_tmp->len, ARCH_KMALLOC_MINALIGN); + unsigned int len_aligned = ALIGN(u_tmp->len, ARCH_DMA_MINALIGN); k_tmp->len = u_tmp->len;