From mboxrd@z Thu Jan 1 00:00:00 1970 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 AABE1C433F5 for ; Fri, 29 Apr 2022 09:41:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 43B1B6B0071; Fri, 29 Apr 2022 05:41:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3EB686B0073; Fri, 29 Apr 2022 05:41:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DADF6B0074; Fri, 29 Apr 2022 05:41:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 202196B0071 for ; Fri, 29 Apr 2022 05:41:14 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id DF2046193C for ; Fri, 29 Apr 2022 09:41:13 +0000 (UTC) X-FDA: 79409423226.03.52FFC7E Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf13.hostedemail.com (Postfix) with ESMTP id A50C32003D for ; Fri, 29 Apr 2022 09:41:04 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8777F210DB; Fri, 29 Apr 2022 09:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1651225271; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TLN93rTB7llJ/DviTuLPV8Vw8InbmxfO6KMnH2jX3Tg=; b=vNjNDSI2Wes8ONnaVEGXMqkr+7o8qgPdZ22+ueEmBrM1qo3apGIpHeHWQ0XaBqrb6krNld LpdM0USytIMix47Y9FPv2h6wkS09vRhtIFiKUDe7sRvZ9gIehJfIfTYNjK8gnwMT8yLT9q qlMKZ6OoCwXf5v8iRyJ6yCTtxtqzSQg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1651225271; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TLN93rTB7llJ/DviTuLPV8Vw8InbmxfO6KMnH2jX3Tg=; b=W/XlIb45DUWyXfJqS2V+DNIWA4NO+UI6p7qCWKXeqsPLz+BmjrTqOEEe4HcYZ/h8nvD6Y+ CG1m+9HRo8Le/EAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5874113AE0; Fri, 29 Apr 2022 09:41:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PuvFFLeya2IHCgAAMHmgww (envelope-from ); Fri, 29 Apr 2022 09:41:11 +0000 Message-ID: <6b31f436-5bfb-9d8f-9418-55036f342f2e@suse.cz> Date: Fri, 29 Apr 2022 11:41:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 1/2] mm: slab: fix comment for ARCH_KMALLOC_MINALIGN Content-Language: en-US To: andrey.konovalov@linux.dev, Andrew Morton Cc: Andrey Konovalov , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Roman Gushchin , Peter Collingbourne , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov References: From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: A50C32003D X-Stat-Signature: cspkucdbbsapcbqsr5ke4egbr4enyut8 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=vNjNDSI2; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="W/XlIb45"; spf=pass (imf13.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none X-HE-Tag: 1651225264-300603 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: On 4/28/22 17:59, andrey.konovalov@linux.dev wrote: > From: Andrey Konovalov > > The comment next to the ARCH_KMALLOC_MINALIGN definition says that > ARCH_KMALLOC_MINALIGN can be defined in arch headers. This is incorrect: > it's actually ARCH_DMA_MINALIGN that can be defined there. > > Fix the comment. > > Signed-off-by: Andrey Konovalov Thanks, added both patches to the slab tree. > --- > include/linux/slab.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/slab.h b/include/linux/slab.h > index 373b3ef99f4e..8cc1d54e56ad 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -190,7 +190,7 @@ void kmem_dump_obj(void *object); > /* > * Some archs want to perform DMA into kmalloc caches and need a guaranteed > * alignment larger than the alignment of a 64-bit integer. > - * Setting ARCH_KMALLOC_MINALIGN in arch headers allows that. > + * Setting ARCH_DMA_MINALIGN in arch headers allows that. > */ > #if defined(ARCH_DMA_MINALIGN) && ARCH_DMA_MINALIGN > 8 > #define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN