Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1479196iog; Tue, 14 Jun 2022 06:57:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxMHDzKHmk3nBtLpkQAz4TyNuKJjG/6JSi8wKLhZjGQm/Tciz63FxXZeyIRTpIq0zo0S4D X-Received: by 2002:a05:6402:84d:b0:42d:fc11:3f84 with SMTP id b13-20020a056402084d00b0042dfc113f84mr6166857edz.256.1655215074705; Tue, 14 Jun 2022 06:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655215074; cv=none; d=google.com; s=arc-20160816; b=K6yi84rFucQcmp521SOI8EYqdl7XDQhmNzHSCKTijNqQ/1AxCRKIkOHYuNIEvMboDr vzPYpiI45x+03WuyKeWjmew1nkEvmx0axnU0vsjXN7v04EMwDrhyUrDJhxfgCiypO6V0 Yx46acdYtQKKbJ0JUWqX5EGdlFKGj2jmbI6kPejq+Pu2CYQJtB6jAOC8xBvN9UUUhuLA A++qCEDSLWtFpAof8vnKTfhzyu3dvAP4DII1hsr6gLAeIUHK/O0hUoyNTdx+Zcc51nak Aag2SorlegQiD8orXf/D/Qi4gDzdA5R0y+Fcsa7e7fAjGZr1UHpDOMMvtAcdwuFMavSR vCyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=unBJziFr/l1u7Dc63FxxSI68un+DPyciUX2nsqLKcvI=; b=qkez+xrqR2vtKPa8zGnkvs+9FrWJ2ksIYWQl/Mx8eZ6zKppdatD8rtj15QbmwfLxoO MN4SSj0Y+2rhYcENeW5xvrnyw1OGO6SyIepAFKDyPQY+yecub5uIStY7SJJW1nQpUyUx nN5Z8zeG5xibsf25A0qmizd4HQjW55dg4+1jQpdb8Z7DtXhgOC6XcQpFdMldvDw2GSc/ MFejW2lKHKBPHnr6g7+b+iWFFKzDunSyRCVKtUzPpo1+vLvsK1+SlcBJGMJLPejzpWor na4csd41qHXgZI5VrJQhjrNbSm53/iQqIWnlQLbberEIUUMU6mnEN9nCWE7CLsPpU+V5 W64A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xiMYiLSK; dkim=neutral (no key) header.i=@suse.cz header.b=yaIwPI80; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb33-20020a170907962100b006f5a8added8si11196874ejc.125.2022.06.14.06.57.29; Tue, 14 Jun 2022 06:57:54 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xiMYiLSK; dkim=neutral (no key) header.i=@suse.cz header.b=yaIwPI80; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243690AbiFNNQB (ORCPT + 99 others); Tue, 14 Jun 2022 09:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233395AbiFNNQA (ORCPT ); Tue, 14 Jun 2022 09:16:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB0236B5F for ; Tue, 14 Jun 2022 06:15:59 -0700 (PDT) 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 9988621B3F; Tue, 14 Jun 2022 13:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655212558; 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=unBJziFr/l1u7Dc63FxxSI68un+DPyciUX2nsqLKcvI=; b=xiMYiLSKDPKrXKkLsQRw5h5hZd8eUxotBwUhO7FxWlUlFpYYSlwp4eiXYg1JlL1m8HdUn8 E0QxS33JxpYuAFpWNhOgBTt+GKYtfX8u2sPUUymBX/yuuAZqt4+2drJvSicJzyilf6LOwS zhp7G/1LDjiirekyXhg+dCFq0vcAYPc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655212558; 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=unBJziFr/l1u7Dc63FxxSI68un+DPyciUX2nsqLKcvI=; b=yaIwPI80V/kxo7ivvJUeBLns588XBNOAwy1F6qgcEP/ydxKPSfj+JkyEhYRzlIPZUrAORz aIyF2avHgiO+X5Bg== 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 6BBAE1361C; Tue, 14 Jun 2022 13:15:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DGwDGQ6KqGKSIwAAMHmgww (envelope-from ); Tue, 14 Jun 2022 13:15:58 +0000 Message-ID: <4df0e708-166a-53dc-12c0-a1281d988d61@suse.cz> Date: Tue, 14 Jun 2022 15:15:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] mm, slab: fix bad alignments Content-Language: en-US To: Jiapeng Chong , cl@linux.com Cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220609040132.89192-1-jiapeng.chong@linux.alibaba.com> From: Vlastimil Babka In-Reply-To: <20220609040132.89192-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 6/9/22 06:01, Jiapeng Chong wrote: > As reported by coccicheck: > > ./mm/slab.c:3253:2-59: code aligned with following code on line 3255. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Thanks, added to slab/for-5.20/trivial > --- > mm/slab.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/slab.c b/mm/slab.c > index 47151fb2b2d2..c359c0f2c897 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -3223,7 +3223,7 @@ slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_ > } > /* ___cache_alloc_node can fall back to other nodes */ > ptr = ____cache_alloc_node(cachep, flags, nodeid); > - out: > +out: > local_irq_restore(save_flags); > ptr = cache_alloc_debugcheck_after(cachep, flags, ptr, caller); > init = slab_want_init_on_alloc(flags, cachep); > @@ -3252,7 +3252,7 @@ __do_cache_alloc(struct kmem_cache *cache, gfp_t flags) > if (!objp) > objp = ____cache_alloc_node(cache, flags, numa_mem_id()); > > - out: > +out: > return objp; > } > #else