Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1665808pxb; Mon, 20 Sep 2021 02:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTy+8+ptK7sBQTYLuhBC9JLVnk4tf1RPumyvjOnodcOG3FiL2Ne7uTffqAeB4L2Hqx0Xna X-Received: by 2002:a05:6602:20c9:: with SMTP id 9mr7170809ioz.64.1632129339950; Mon, 20 Sep 2021 02:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632129339; cv=none; d=google.com; s=arc-20160816; b=zzE4y1wqeVRZ5wXzS7/0ZhGjWvZzaBk1tVvF+2Zrq07usuypET+X4eJ2Z4o054qIcA QEF7wQ8uzpSC8i7oGvNh5AZcnrfeRK10HVLatmh/J6XfBSoo9vJjrN3FOcV8pyvBEUKh MhOViRrIqfuKvJAeOcvOdV+nwz2RzF01ZmQrSNj2XrZuz4SC95Ac+RAhf9NogIRAl7dD kiMkaOmNW8orazpzxSn/E4zPUYAGOXGYyZ0KfbbXbpxOwywfQnO3qkE9sDa3LbuLs19Q HFqydQPHzGKYxfWLCmwA/5yKoK5tK2pyKPHDwvFLdkqmDGVMVe3ZZdTGufcm+9GPT0yh /C1Q== 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=izw6L99FizrdgPwr1IzT8U5HxF1mXHWHNm6b2HR3A8s=; b=NHBYggSxGxoTeLDUFDUP0TF0us0GUPNjDwMfeNlFmlvXu/lcRfhwwk88kmFpFR021M 4KJwN/xB6UzI4jePuEWkLkT1F704OhmWcHNOIUvwioX+ajli0qVSBUXGxZJwvhCdWTWH wk6wwKgT4ZI2hEGIj12xLopW8KwXWDVK+DTi9LiXR+oAdF8rc40IDn4CO9isXPXMZUtA 6UMkT+ScqsUUbcUKc09NUnaB1uhjJ4bbXtzCJqZlxd54tqEe2u65HjoiWuoOhf5m1sUN Ev1Vi59fjokiujvZEOdYL2e43vuQI1EWnNMuzRqsU6OHXEtA/B5in4v8reEg0l58XjG1 W7ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qOjBJLGi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k126si10326315iof.103.2021.09.20.02.15.28; Mon, 20 Sep 2021 02:15:39 -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=@gmail.com header.s=20210112 header.b=qOjBJLGi; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232758AbhITG5d (ORCPT + 99 others); Mon, 20 Sep 2021 02:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhITG5c (ORCPT ); Mon, 20 Sep 2021 02:57:32 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2DE1C061574; Sun, 19 Sep 2021 23:56:05 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id m4so17502394ilj.9; Sun, 19 Sep 2021 23:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=izw6L99FizrdgPwr1IzT8U5HxF1mXHWHNm6b2HR3A8s=; b=qOjBJLGif2a7YzwQq1dMe5aRyy5djPYdu8/aJeKnDoPWGDUzAsvyo0GkkV2x0KOUZv Lq9iaVg5hkeJ2m+eYkYYaPtON5eBHQJpKaovewnloGDQHFNn6nwoMeyed6MGW3HmRwh+ j3gNr5IY32NeM7qxopu/b9Gdtn2D81/7VYfWlbr3roleL0y6TBrOPkyQfgYzgenouN5I PsaZWwMi43DPttO9DErFGwt+oSuS9W5Xh0bindLi7dCUJVHQdgBIBuRCAUKPYiHcZu48 ysj1KN0IvGGTC5l3XNqxGdu6JZRrKooki71RKW3Rpi/EYbRanw1s3LRUND2v27KoWsdC l9gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=izw6L99FizrdgPwr1IzT8U5HxF1mXHWHNm6b2HR3A8s=; b=uXlrt547p3Y22DjIr3gYaEjdTYXq7DY4jqDxhAuMnqT/bQa8jj5zOCPxu9pfGmVWns tRKfyH0n+Jf3cyvnPMjkP9AQZeU6AapuRWpj/tpOjCHSrJ/lpFKL34Phwv2f1Sw86sxC guzEk3sqOvRR/4QilILsP5gKsdo2sIRDp1SsJ10jrqLBGVbeiHXA/jQy+w2vTreNW5/N 5W0uENKzEj7yUk3o2vUi/cA9B26Y21lgeeJM9dYI/pN5JA2WydFUrnSCOQPia4aOPXdb WJDpQ/sMTjQnejxy/cJ13R+URHDqjQAVHpGjwV/r2aIpesiC83hrV/cNOH53jHc1uNmN 6gHA== X-Gm-Message-State: AOAM533fxROTv/xYyxyG+6bwquSPVJVgxIOWXkuOhQZ3ZAuE2Nl3fEhd cRHhHV1A2F3BtyYLpewoo08O3QTCi8i8emEnRZdrms0SK08= X-Received: by 2002:a05:6e02:13e3:: with SMTP id w3mr16783279ilj.25.1632120965042; Sun, 19 Sep 2021 23:56:05 -0700 (PDT) MIME-Version: 1.0 References: <20210920113330.29f12b99@canb.auug.org.au> In-Reply-To: <20210920113330.29f12b99@canb.auug.org.au> From: Yafang Shao Date: Mon, 20 Sep 2021 14:55:29 +0800 Message-ID: Subject: Re: linux-next: build warning after merge of the tip tree To: Stephen Rothwell Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 9:33 AM Stephen Rothwell wrote: > > Hi all, > > After merging the tip tree, today's linux-next build (powerpc_ppc64 > defconfig) produced this warning: > > kernel/sched/debug.c: In function 'print_cfs_group_stats': > kernel/sched/debug.c:460:41: warning: unused variable 'stats' [-Wunused-variable] > 460 | struct sched_statistics *stats = __schedstats_from_se(se); > | ^~~~~ > > Caused by commit > > cb3e971c435d ("sched: Make struct sched_statistics independent of fair sched class") > > # CONFIG_SCHEDSTATS is not set > Hi Stephen, Thanks for the report. We have discussed this issue before[1]. This warning happens when CONFIG_SCHEDSTATS is not set and schedstat_enabled() is 0, so the whole scope should be not compiled. It seems that we don't need to fix this warning. [1]. https://lore.kernel.org/lkml/20210911082505.115758-1-laoar.shao@gmail.com/ -- Thanks Yafang