Message ID | 20230612153201.554742-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 44DC9C88CB4 for <linux-mm@archiver.kernel.org>; Mon, 12 Jun 2023 15:32:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DE95F8E0007; Mon, 12 Jun 2023 11:32:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D98578E0002; Mon, 12 Jun 2023 11:32:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C878A8E0007; Mon, 12 Jun 2023 11:32:46 -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 BADEB8E0002 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 11:32:46 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 93D751402A4 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:46 +0000 (UTC) X-FDA: 80894488332.30.FB138F0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf30.hostedemail.com (Postfix) with ESMTP id 6DC588000A for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:44 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf30.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=1686583964; 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=je9aVxGjxQ3eIhH8J5HxA/vH3cf85JkONJ2g3lGrGh8=; b=qpiqZEAybZXFWTrIH/WTraaTwY98pNx2AjXvKeuvnZiINnGV0tW5vFjGF7OyCeGb6i+FhO ltXNyBCGG7fj8pxu46VzL32HpyRLWSyT15RnugE9WgJ2rYqAONnXtrruDtmkPQasrhOvWq S2s1b9sby8x41Qmz1L7O06jzhwd3oUk= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf30.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=1686583964; a=rsa-sha256; cv=none; b=2ErWMQ9QC9dhMX//KdfonM9+W0rITDMQGzXYqJ58+s+bkPl92vrq++07dqU5A8CFjgw0jb bQTaENx2RJMu/aNGPW/NfKytiEk+wQ65px41xIUccFykiGkF2RvLRlryErO1vpNYR3KAY3 m2RHzomaSWpKk6kYcaffFdKysEEwT90= 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 7EBDB62AE6; Mon, 12 Jun 2023 15:32:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3091C433D2; Mon, 12 Jun 2023 15:32:38 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de>, Robin Murphy <robin.murphy@arm.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.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>, Jonathan Cameron <jic23@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 08/17] drivers/spi: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Mon, 12 Jun 2023 16:31:52 +0100 Message-Id: <20230612153201.554742-9-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612153201.554742-1-catalin.marinas@arm.com> References: <20230612153201.554742-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6DC588000A X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: ca5p4cmdgwaq9e677634ntnpedmmfed7 X-HE-Tag: 1686583964-475057 X-HE-Meta: U2FsdGVkX1+1iBgO71r+YGgk9/R90GVdHwDm55GSdvED3N+oipYE30Oq7oFeSKLCtnb4Zdm7mpi60zMllsaDH5eLl4/15XNF627AoEezXGbvr1fRxYSEdLG+V9Kny8AgdlqWMzfGhE5TTQyQtoLka3GVNhrX4P8MgkE0vvBzQ+ssFjenvrHC0Je04IzhntHNEUpNrWufZ570O1L/Y2a+lnHb2b/P6JEd0AIzSC5fINYyxKNaDlK5TuNmbMHbKOKH/lj4/B77wsT9oRDbHNKpvomqLEFHkjvZYmXfJxrTc0s9lh9mREx97ZV0H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5gLqI/wC1f+0KvJB5XMs3c1T2msulKMiPadZph16UcfxXfZY5FNA/knkpG9BRVUlrV4iMxIJZD8PEXJ6CvKuLLCjRUjviLFdS4vV9qAfDD4D2sazclnLXE9UtDQCUgCTDZ1NYI1FMuWX+/5lA7jKGlrPFteWySXqQD4WCfiAznYPi092NPSoU2m9UuTQd9H4STjVow== 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;