Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp54459iol; Wed, 8 Jun 2022 21:39:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj8T653hSsomgpqnGHvI6Zwn3CCllIG/DVJLOPpAT00O/kBzIQ2/aWlYcKxT/FspwR7dFX X-Received: by 2002:a17:906:dc89:b0:6f4:d3a9:34ed with SMTP id cs9-20020a170906dc8900b006f4d3a934edmr33932465ejc.459.1654749550726; Wed, 08 Jun 2022 21:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654749550; cv=none; d=google.com; s=arc-20160816; b=sh7axf5gsW9EV+0ogEmHwetM8qKmJSBlb0oyQVkaxRiSxpxB3eMmEnxAkLwmyH2vhO DcQ/XU8K8mj7B/ROql3o3REvC+cw+lVMe0uBCiHkV09pefm5tQIviwSuW2wb6d+pl2wx G5RjqGMYJELUjaL/adtS70th6hmI1Z5RuPakU10UbQpVdyiWQdF6aeWwjfj/wbDnRh3k gmbcnber/kKnbk4YvqSMB1Ugy3pO7dKHfuA0YOIoZVY++4x3/N1OxCDeC7npLIk/hvmJ V3vGipMB136WP1AA9vY/gsbakWvLAFEeDlZv+KIWEmjrl7JtLH0kDomIEudC57fa58QR 7oBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qOykaPEth4REimMOvO4ehtq25aB+jsC1F5anO3YFiSI=; b=uBYOyFKPHuktrH8Wl7dbtzXL592PGl9x2seni+bSLIulxZRfiKZu5RpFVfTL27RMns W48AW0m5I4xQcaoEM+95ITCPpAytDJcKKzdlQIzseUX+cwDUofVQo8gE9CcbHfct++c2 tzy/Jm0KrNtyK9cknXtYFMqUCDx1U2VOkTOFD84KrPWTigorxVm3nzvXf9f6TZiZHM7C wXHZEvqL4poCToqIGAwa3kgbN56trrUsbzoL9u7A9p2MkID9xTg7Ozesm5bc9i8NB3EA RbJi/TG8A5Pb12tEE4JBrdazHjTT4JZ5DV5QaWztPwfLNsx/SKoOXrnQGULjBS6qG6aG qcqQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js3-20020a17090797c300b00711caa783f0si2456673ejc.657.2022.06.08.21.38.45; Wed, 08 Jun 2022 21:39:10 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237760AbiFIEBr (ORCPT + 99 others); Thu, 9 Jun 2022 00:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237507AbiFIEBp (ORCPT ); Thu, 9 Jun 2022 00:01:45 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FAB021F9C2 for ; Wed, 8 Jun 2022 21:01:43 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VFqMZZr_1654747293; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VFqMZZr_1654747293) by smtp.aliyun-inc.com; Thu, 09 Jun 2022 12:01:39 +0800 From: Jiapeng Chong To: cl@linux.com Cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] mm, slab: fix bad alignments Date: Thu, 9 Jun 2022 12:01:32 +0800 Message-Id: <20220609040132.89192-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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 --- 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 -- 2.20.1.7.g153144c