Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp456269imu; Fri, 7 Dec 2018 03:57:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/UFp/9aAiAt6eKiY2Olv61Z2EMxuJSgRay4gtwOwa7r6cuiecGWigGV97Zt3f2r9FWtj7dt X-Received: by 2002:a62:64d7:: with SMTP id y206mr1973375pfb.84.1544183871846; Fri, 07 Dec 2018 03:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544183871; cv=none; d=google.com; s=arc-20160816; b=MfvUUhHwbTr8w+IrbToQVEClVJZEGGHUl9WI+RBwi0UZCqb+qz2Boec2kJu7SziTQh Pq2Ii/ySV6qk4xYjVi/SiohtytqnaO23rV5FubEXWmEjfCOZNGExMFWbMAYajNVqWLF+ wd7Oaw7krNeqH5cAsJ2YoPH72JackacnR+1EkNBkTBnY1Qeh7Pd+/J3XygZaD+ittJsl 3D7BcxKr1X8WLBxi3amze8+vthh+tpxB9Fdqalk7EQ5mKCi7wImvnhzcHIIIVZyctJaS ym8JlbLY9rKW3z9Nk5EeMeZ/3lx9YLAoheYEFBpYFsnllBVLNCaYuF0iPrS4WnRcTL+w HB+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2gITi7Wm6F5a7URwisbPpdljf827E+j+/o5Lv5GVLhw=; b=bB/LL8c1bdVZI9y5R/nNVQJoHjo8OKVpoveGCsP56bBLYlwg9guzzWyqYMtnlBX2aM 12y0z9Z//a93qZno/dQk8EJPfvqJr5IOiL7LXuHEy2efqxzCaYNLFP7N/BtSK+Z49JdD Xrexnaot+g7afzrLC115T2p1RlZySO7Gj2gkFssmyHzILwzFj3jVXYFeNqd4o/Mr3Nwf viaQLKdHC6Hy5V8SWkKQmXYjsearCOrXBSg3gW8dfdJFQAygG65h4nAgTnBnv0g+nWQn PSfOevKdlly15Kl+K9j7X74C06aPxBDBNyD3R/ik+xhzonmDh0PJ0PIAZe9llDWFsDg8 JOGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l94si2724961plb.416.2018.12.07.03.57.36; Fri, 07 Dec 2018 03:57:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbeLGL42 (ORCPT + 99 others); Fri, 7 Dec 2018 06:56:28 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42890 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbeLGL42 (ORCPT ); Fri, 7 Dec 2018 06:56:28 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 412B3EBD; Fri, 7 Dec 2018 03:56:27 -0800 (PST) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D7FC43F5AF; Fri, 7 Dec 2018 03:56:24 -0800 (PST) Subject: Re: [PATCH v4 10/10] sched/fair: Provide idle search schedstats To: Steve Sistare , mingo@redhat.com, peterz@infradead.org Cc: subhra.mazumdar@oracle.com, dhaval.giani@oracle.com, daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, riel@redhat.com, jbacik@fb.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, quentin.perret@arm.com, linux-kernel@vger.kernel.org References: <1544131696-2888-1-git-send-email-steven.sistare@oracle.com> <1544131696-2888-11-git-send-email-steven.sistare@oracle.com> From: Valentin Schneider Message-ID: Date: Fri, 7 Dec 2018 11:56:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1544131696-2888-11-git-send-email-steven.sistare@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, On 06/12/2018 21:28, Steve Sistare wrote: [...] > @@ -6392,6 +6422,7 @@ static int wake_cap(struct task_struct *p, int cpu, int prev_cpu) > static int > select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags) > { > + unsigned long time = schedstat_start_time(); With arm64's defconfig (!CONFIG_SCHEDSTATS) I get: kernel/sched/fair.c: In function ‘select_task_rq_fair’: kernel/sched/fair.c:6459:16: warning: unused variable ‘time’ [-Wunused-variable] unsigned long time = schedstat_start_time(); ^~~~ So you probably want something like this: ----->8----- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 5a113a8..7d33f74 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6456,12 +6456,14 @@ static int wake_cap(struct task_struct *p, int cpu, int prev_cpu) static int select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags) { - unsigned long time = schedstat_start_time(); struct sched_domain *tmp, *sd = NULL; int cpu = smp_processor_id(); int new_cpu = prev_cpu; int want_affine = 0; int sync = (wake_flags & WF_SYNC) && !(current->flags & PF_EXITING); + unsigned long time; + + time = schedstat_start_time(); if (sd_flag & SD_BALANCE_WAKE) { record_wakee(p); -----8<----- The 0-day bot will catch those but since it's the only warn I got I figured I'd report it :) > struct sched_domain *tmp, *sd = NULL; > int cpu = smp_processor_id(); > int new_cpu = prev_cpu; [...]