Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5255490pxj; Wed, 9 Jun 2021 12:59:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHUgJYi8q9uZ/Ibk2NGCQYaehY9ZjFj7UZzcDuOZ51GF9athZOenbDF5CdXaJCr0pxwoSf X-Received: by 2002:a05:6402:1559:: with SMTP id p25mr1040487edx.343.1623268777037; Wed, 09 Jun 2021 12:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623268777; cv=none; d=google.com; s=arc-20160816; b=TXuVLW1NlFENG+efojb9kxnKX66Jxd/F8KfGG3YYoIljdapluDouI1RWRajqMZlNzg SuMtLG/8I+rIOv4MwHPTDbePAcBP3QSNQ6HURcnnkwM4qfPW2EnwsDtQ1hKefgbCBn93 IDeVZeVcgEbkmM3tgf8ZqH6kGfPDm10qwrrp+GKB5jhrrM6J5zOB+ZRPY8AP8MCWZkY4 8fKSHEXGKtUvdJxS2JX78RpLRWX/oHEauBqkhKY7MMHlAiaDVGjMYe+1LN+4CdsEWR4I cxtzHJpgZlQ4r/zJbnNIqmgoZpMEO8oYJQc1jTqXKUCNGyblbQa+gnrBWpOx5NSeYg8y 1Fuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KZqRAoGYo1BENB9HubvimN8Y/+cn3PuH69zPYdjQx3o=; b=cG/Mutqs0oP5rCpxmw2lm4c2NNqeda+JvKcpF3oDKyTKRWq20LqVbCt7Y4mscDqtew lxmpcC+6eWmFeWYzENEcA58Dw+Z2CQIo6HmuVxSnoxKQM8iGI1fYiKADu7HYOehf9gRM TCUk7EXzOIPfsxZXKiL6BdODvOv1sPqfFCaBrkk3LmyMVOjhiO5XOJAgfG2c7Uzp6oeb v14c8oQHbqgmnn3hUwkAxv/K1cPw2euwhHEbXp/f7NLryY5Ifgeiuphe9JauYaW3ZuO2 /eb0FoaqK5HDn9KwVYcgcs3dj+RXQEtFX6v7la6GK2NWzRD6OwfuM5ZfsIZTl/JfHWFj YB5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="hirZ/loS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si595892eji.68.2021.06.09.12.59.13; Wed, 09 Jun 2021 12:59:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="hirZ/loS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbhFIT7Y (ORCPT + 99 others); Wed, 9 Jun 2021 15:59:24 -0400 Received: from mail-yb1-f182.google.com ([209.85.219.182]:45019 "EHLO mail-yb1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhFIT7Y (ORCPT ); Wed, 9 Jun 2021 15:59:24 -0400 Received: by mail-yb1-f182.google.com with SMTP id p184so37191455yba.11 for ; Wed, 09 Jun 2021 12:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KZqRAoGYo1BENB9HubvimN8Y/+cn3PuH69zPYdjQx3o=; b=hirZ/loS4K2vdyputFDRMEhTuR9bvXOISZO5bgbio6FAVoV3ba8p2sGFISfYa9bA35 U66n8UD9fKar8yQKhbE+6y8KILTM1u5q1CdEsQJueqObRlPswFndBwx40Xrf+UgscWT5 P/1kc/lXulx17fc3TgtHMpd0gY9AAQtBHIc30kecERdpcAtdVyIUxKs70KOezoER8qtz Ji0SLp8ekpxVOQ0cjxpZOnf5C6K9oQNhff6ZFGSbmVzdBzzdHIkAz2ZIBoakTf1FUgLc E+wj0XAn3AxMNXDXl389ltNlqIi7/pVQnNueS59eQQkMOw7DpjWLin/N1d664U5VnZV0 wwCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KZqRAoGYo1BENB9HubvimN8Y/+cn3PuH69zPYdjQx3o=; b=oLPA/y9Ahxakb8ERMgNCGyNrOfyqV3kVmuwB8tzemo9KuTM2mTj5I5YNhr3T5IvoFc t1fogQK6JuFkNUaZhzC8pOi8AozK1QueX+mhq61/+5T1xxhpccsim/S4DLD2vp8NY/aF W2Jd0ZmzMrFIB+jn4QrrJy4ygAyfLczNjmQ0etrbxF/9lqsnSAneCFujH0CZT1chSr+4 wEX9vlI9Af0M8TrYnM9WRewfZkeVUGeqFoWI/rbegrusZI6o1MOiM0zeIBYY1w+6VOxe Dr4PBY2Ocfe0Vn6FEspU5n2NUbb5iRwMNmVe7b1L0r3TSp5syozTBaUYAfy1marZkegT Sepw== X-Gm-Message-State: AOAM533wBvGDSguraQiS25Bc0jTE/ny5posWO/0hN/rSC7yccppcDbrb vqc1Vv46DYx9RQJozGevFvpdNAjNANp1biLtehQeSA== X-Received: by 2002:a25:1005:: with SMTP id 5mr2100905ybq.294.1623268572464; Wed, 09 Jun 2021 12:56:12 -0700 (PDT) MIME-Version: 1.0 References: <20210609150437.3473855-1-weiyongjun1@huawei.com> In-Reply-To: <20210609150437.3473855-1-weiyongjun1@huawei.com> From: Suren Baghdasaryan Date: Wed, 9 Jun 2021 12:56:01 -0700 Message-ID: Subject: Re: [PATCH -next] psi: Make symbol 'psi_cgroups_enabled' static To: Wei Yongjun , Tejun Heo Cc: Johannes Weiner , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , LKML , kernel-janitors@vger.kernel.org, Hulk Robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 9, 2021 at 7:54 AM Wei Yongjun wrote: > > The sparse tool complains as follows: > > kernel/sched/psi.c:151:1: warning: > symbol 'psi_cgroups_enabled' was not declared. Should it be static? > > This symbol is not used outside of psi.c, so marks it static. > > Fixes: 3958e2d0c34e ("cgroup: make per-cgroup pressure stall tracking configurable") > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun Reviewed-by: Suren Baghdasaryan Thanks for reporting! Tejun, how would to like this to be fixed? Will you take this patch as is, roll it into my change which introduced this warning (https://lore.kernel.org/patchwork/patch/1435705/) or would you prefer me to resent the original patch with this fix? > --- > kernel/sched/psi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c > index b773cae4c24b..d6e32de2f6af 100644 > --- a/kernel/sched/psi.c > +++ b/kernel/sched/psi.c > @@ -148,7 +148,7 @@ > static int psi_bug __read_mostly; > > DEFINE_STATIC_KEY_FALSE(psi_disabled); > -DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > +static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled); > > #ifdef CONFIG_PSI_DEFAULT_DISABLED > static bool psi_enable; >