Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5002281imu; Sun, 25 Nov 2018 14:42:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVmOYxiYCS8k84t4ORGALicn7EN5+Lt6hES9zc+oJDVlU7zrSGTVBxBP3iqgpCEtm5Kr6r X-Received: by 2002:a62:2044:: with SMTP id g65mr11034489pfg.127.1543185726160; Sun, 25 Nov 2018 14:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543185726; cv=none; d=google.com; s=arc-20160816; b=r7zDFw7zjbepxMylCRgeiCJffAkApOtoWduRKeuhsH2zSa8JJdh0789PrnZOLqvRoE qVTOI7jbEKbwAtB7dwFWo3l10nTAQ6aP+lsLyUM2k55GH+gaiXLJ1LkZjJhg9sej0+jY eDDmZCTkfZMqzYtfGTuqg6r/B35EHnqSRdi8OeZE2YXveSSVKMBI2TJuccCQagFsoujT oEWzva3AXz1seI3szCXDER6Jyn7/WwSH6HHb26o44EcgDxzbY0KJsf9owga/4epHFt8T tBJGBEkcp2hlgyY+yTCFXaMMoaAiLlPqNHFOR4JZtSVppgJBsyGq83ROgGkOWuG36XZB mQVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=K4TUz32cIIhqvLy9aozJf9E4I+SHSNvQ4IELAYlxGVg=; b=us+PqrXMV8mWRVFvhVDRRmPT3aHI0KEyiEG3PpAccdf/6OvKGIbSpGK/IrhKaFmrtx 128RJIKXemJmfYi1eCu6c9H5qgNk6YG3+EuV6r4m17EtyBAJs6ccDzSv8rmBmVPj0qFY ETciwR0pxhGSdv0DnIAEFJc4civLVyx7Doq1hi6AlV3uBaj8fZjmXzZ1sXUb8P96RpFZ rH93pA0Cm1gsvwpPAyduUDq5sT3k+RJv4sMwEBtUGh89l9yWc7u6VadfKMHA/twquvrR nxs5wJsN12pgkIIVWRSyuz+40UgBYBdoRJ9vvcPCHbZ4JHuFO+ksDI1iiqnnI0xARCr/ byjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=wqoiumwR; 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 m61si24953877plb.154.2018.11.25.14.41.50; Sun, 25 Nov 2018 14:42:06 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=wqoiumwR; 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 S1726079AbeKZJd0 (ORCPT + 99 others); Mon, 26 Nov 2018 04:33:26 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33571 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbeKZJd0 (ORCPT ); Mon, 26 Nov 2018 04:33:26 -0500 Received: by mail-pg1-f195.google.com with SMTP id z11so5232659pgu.0 for ; Sun, 25 Nov 2018 14:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=K4TUz32cIIhqvLy9aozJf9E4I+SHSNvQ4IELAYlxGVg=; b=wqoiumwRfY24rRYwjuj+u8E4w34KFkLuSsq8cndofVg7+Q6xegOOBbSdxEKfSO8dPW zrbnjlyxY/yy7bTcVd5nxjS+7uDs9WOnmaLOIYu6ToTai8dRlzsX33VD+88O3Yq21xga JZqAbXURdaCD8p6hPweC+s7zRKb9HcMfjkHhrWbpGTpP4cYYJXMGjbHlmNUD4dfg/faf bT1wD44OqiVkiYTtcHyfqTNRLL2EQ1sTXHyFc2tEJn8w+kRJWBKFdmB5QnHpRddT3qRF c5pGwZEst8Qcg0n091XoymtieGaCn25vSCIaeZ5xmsQplyrBzqUk31TMUgnovcocdrLE MYog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K4TUz32cIIhqvLy9aozJf9E4I+SHSNvQ4IELAYlxGVg=; b=Q+bsz0eQ7mkeulzzTOujrLUpR7xYUdNYjizZIm62L12oc2J2HEHUKp8obwHZR5uOA+ 3t3rXzSl2mvF88rX/uJ8VzlWeVK0cLiC2MRPrFqZxLeRf7ZIj65dWEw63/inMSX6WNjq lQa793NOFbXYAJrJs+UUrxwMWVbGi15HU+irzTKsLC14WU7swgQH8OUuDhpQresLwoS2 n6NpCYjs5sEVeYnf5FsZB5JhNaGFgp+bqxuOuyaLlLnJHr6yp6IfiKxQ4kDiZ0tPxksy HsVYGQ7EPRUBxeEx+m9uQs9PzWzVPx35lESZ3GRaXLItsucIEP+TMqWaMM1tx4bnpth3 5NRw== X-Gm-Message-State: AGRZ1gIXAKAkfQJl9hcX9xybaGJV8tppgsSHJUK34QsVm4AInH8qMK8Y t7TVgRlB7cokhAJwdVIUGB0AjA== X-Received: by 2002:a62:db41:: with SMTP id f62mr25656920pfg.123.1543185676046; Sun, 25 Nov 2018 14:41:16 -0800 (PST) Received: from rip.lixom.net (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id m65sm7568463pfg.180.2018.11.25.14.41.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Nov 2018 14:41:14 -0800 (PST) From: Olof Johansson To: Ingo Molnar , Peter Zijlstra Cc: Muchun Song , linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH] sched/fair: Fix warning on non-SMP build Date: Sun, 25 Nov 2018 14:41:05 -0800 Message-Id: <20181125224105.123568-1-olof@lixom.net> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Caused by making the variable static: kernel/sched/fair.c:119:21: warning: 'capacity_margin' defined but not used [-Wunused-variable] Seems easiest to just move it up under the existing ifdef CONFIG_SMP that's a few lines above. Fixes: ed8885a14433a ('sched/fair: Make some variables static') Signed-off-by: Olof Johansson --- kernel/sched/fair.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e30dea59d215d..d25211f45c671 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -94,6 +94,14 @@ int __weak arch_asym_cpu_priority(int cpu) { return -cpu; } + +/* + * The margin used when comparing utilization with CPU capacity: + * util * margin < capacity * 1024 + * + * (default: ~20%) + */ +static unsigned int capacity_margin = 1280; #endif #ifdef CONFIG_CFS_BANDWIDTH @@ -110,14 +118,6 @@ int __weak arch_asym_cpu_priority(int cpu) unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL; #endif -/* - * The margin used when comparing utilization with CPU capacity: - * util * margin < capacity * 1024 - * - * (default: ~20%) - */ -static unsigned int capacity_margin = 1280; - static inline void update_load_add(struct load_weight *lw, unsigned long inc) { lw->weight += inc; -- 2.11.0