Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2543801iob; Sun, 15 May 2022 23:52:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweQQ1hNNiMxtDM2a3ukXi8h1zSsQpa5D9OaWKYx/mNIdQkGPn28cr5TvUZRKR8NfPQLDc5 X-Received: by 2002:adf:f90d:0:b0:20c:de32:4d35 with SMTP id b13-20020adff90d000000b0020cde324d35mr12822301wrr.583.1652683963444; Sun, 15 May 2022 23:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652683963; cv=none; d=google.com; s=arc-20160816; b=Kmi4qUkNz0W1eIkKzspSfc1F8qSQmt0i+P7y6ozghgn3Af4HCfGd6fktHR6xR9Dsam QLTnNkg+GyzklDI3XXQ1CyhDDVIxW4sqrVBELDtLNosPqCLwfxlNX22zwa/NX8ar4h5E iVHw2DzlHggf282bnz/s6s2DwziwW/fMe55p5VU8ue+GhX48v1wrJnh8lVAh03x9Eiqy 7XIFE/8btwZRpGBdMGmTgCZJASMDMD0PoGc6EvNi3TT9NWT7i1FuNg6szt8REIj5C36y FTqdDm+8JbagmKT2PXCSeae3MIdQXCe74H3ljXuRmYBM+9viuyy+WR0KSrlSMsyBSmzD a4Gg== 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:dkim-signature; bh=LeS293Xoyn/IdDJSLF6A/QhWhktSea8yiSvRbWcIXpo=; b=QE6LwHeOOaPtHfT50P4SFEy38ghbnF0FRwOqEISrMkwgLSWKMSSGc79lbFHnEtPLnF sT+9Br5uMame5V1FVb1FOatupjDoYeeIhhdai1ByRbSGPSBj53GGup6g5DsBvxPPRmIu W53/D8q7wwRMpXt9m8IcJP5MYVXsaMaQ6nUVqcDD1B37OaufUx3vrcX5eGdW+wdPaJ3L s9uTe5fMcDArBCSB4afLDMB0AS225JoJL4OvZh3Km+PH80cuoE9Qrgbb8b606JxB9Uak JGohAE6w3lbNmxTioBvFSbAZtDwJP9Shhhd+47JIuEEJH8M0CJrxkqpqjJfC9IPrUf2q +pXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RYy4hmQC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a5d6d4d000000b0020abc7564c6si7421802wri.109.2022.05.15.23.52.18; Sun, 15 May 2022 23:52:43 -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=@gmail.com header.s=20210112 header.b=RYy4hmQC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239551AbiEPDJK (ORCPT + 99 others); Sun, 15 May 2022 23:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbiEPDJG (ORCPT ); Sun, 15 May 2022 23:09:06 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F01811A35 for ; Sun, 15 May 2022 20:09:04 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id w17-20020a17090a529100b001db302efed6so13051858pjh.4 for ; Sun, 15 May 2022 20:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LeS293Xoyn/IdDJSLF6A/QhWhktSea8yiSvRbWcIXpo=; b=RYy4hmQC7F0YhLYyxhwtQGpFqj6NiybxZ5pHdp3xv5VfOxxeeDSRxpzf4sI5ZYk9/m jZ25mHuBePqFjQmP4iv2+uWQ1PJ+jnFVZp5xU2cZ1v6xPeSzDpNnwNPGmmAfC1Oy3k5v f5Inm+r8lRECqbOXN43fV9ytzbhLmBlRD5bqZtRcvNTm8EJthYXmQzay9KqiVxkJ1OFd vp/NW5SN2aY9OFQ5Y1KcT0Tk5f1It+ucfcfKjZg+Uo2Dkz0s4mS/36ysqFw8b6fNFlRh ZJlUAbGYyH6I2Y2/EeLZbH+TI9AMR45YxZAg1ziZ6wq2tV52zqAHnLqhZkuXqc1IWdON 4pcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LeS293Xoyn/IdDJSLF6A/QhWhktSea8yiSvRbWcIXpo=; b=J3rM9+o46aTO2EvQd/1PyWZwBys+F63+j3A3awpz1gYIPKLH5Jyuxnmz6svN/GGrMR Xjmvq0iTLRf+enm6vwyFnRi7g13iZTMr7zcPjPtxq/yM2IBY5Qf5LQm6KFttDX/Qd9el ZkV1NPiHHQ9nFaMIntdgzbQVAwgsbb3UGFWgr7auqE8kPkvkrV28Dz4amNdu84wRF14f MExeaNO5re+vaAV/EwKMbcGhfIPnC8oj2rSRAJH6/FyUt8mUE4uCHUZG7VskS//7VFEx /HaY5Nlyj8+N+s/BTgoh8dbiguMuz4wyUdk18ZVZxrkmYMMkg/8oQO1Rdg1byrv+WFnI AvMw== X-Gm-Message-State: AOAM530uoYfiARz/abqsUv1b38c4L7zurJ/FQMltnXVPeFs2BiZK7Uen QH8malLZIKGL77sQwO3J8/A= X-Received: by 2002:a17:90b:795:b0:1df:10a3:84e3 with SMTP id l21-20020a17090b079500b001df10a384e3mr10482308pjz.197.1652670543929; Sun, 15 May 2022 20:09:03 -0700 (PDT) Received: from localhost (014136220210.static.ctinets.com. [14.136.220.210]) by smtp.gmail.com with ESMTPSA id h125-20020a62de83000000b0050dc7628173sm5650872pfg.77.2022.05.15.20.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 20:09:03 -0700 (PDT) From: bh1scw@gmail.com To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Fanjun Kong , Muchun Song Subject: [PATCH] mm/page_owner.c: Add missing __initdata attribute Date: Mon, 16 May 2022 11:00:42 +0800 Message-Id: <20220516030039.1487005-1-bh1scw@gmail.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: Fanjun Kong This patch fix two issues: 1. Add __initdata attribute according to include/linux/init.h: > For initialized data: > You should insert __initdata between the variable name and equal > sign followed by value 2. Fix below error reported by checkpatch.pl: ERROR: do not initialise statics to false Special thanks to Muchun Song :) Suggested-by: Muchun Song Signed-off-by: Fanjun Kong --- mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index 9185ff4eacb6..e4c6f3f1695b 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -34,7 +34,7 @@ struct page_owner { pid_t tgid; }; -static bool page_owner_enabled = false; +static bool page_owner_enabled __initdata; DEFINE_STATIC_KEY_FALSE(page_owner_inited); static depot_stack_handle_t dummy_handle; -- 2.36.0