Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp614140ybg; Wed, 10 Jun 2020 09:08:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI9eUdI9f65uMApJDcc4OasZfx5KRRt9MqqA27RRv24dEGZA7a/C46wl5B55Z8uHzuvHq2 X-Received: by 2002:aa7:dd8e:: with SMTP id g14mr3126528edv.263.1591805298409; Wed, 10 Jun 2020 09:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591805298; cv=none; d=google.com; s=arc-20160816; b=mTiAzhpOZkxlClAwqvrbebX/ikcBGorjsHlZ5MIcWuybjVroxLvNiDW8idfQBkyb0u w1ytuaNgN8TNA+wLTuoZ2wBkkZIuuO/SSlh/TN9ig856+30t4KfrBEIXE3/7sNaLYkXD u4VeEzQJExafUoC/3OhmdMCr9XdmPOOQGQcOcdIFhQM/jfk6FbkahEFDgVyJX92kA5GE 9IlcmzLGqtMugZyW4VPsV/LrNfezQK+RW4zC3dwATXmwZ+Qgjsn6xXBYzbTdAiF1TZRQ qzj/v1XHNmrnEK87a7v+2FGaQ0nEBqjU1mR9Y0Cgy1yI4Ahm6gy7rEyif6yYGv2Okp/0 tTjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=c8owrabBVXYOAlZEJWaYzJhzxL5ZoyFXcoxC6SZrPlU=; b=aojJCGPW0lCOyN+XLI9W2SgRNWWd14vxU/N5cUR8juiqpz8hthX3a+jCYzG1Ju2OI5 mLxOzDKDCc3qenbqSSXoEhTWRE9aXCjfW+Z6ktc+VbkQCMrCIbppWGV4ACLgaJv227ib C2K73616YpjN8jQ9uTlFFFJSE+ibB1gltQyeFQ+K7vPT5ICRbgPzz3DCnKQJ5vg1zMeM Cc3RFpY+Yv7pI60RyzcTo7G07Lpr+nI2DPtrGxBVaGLCVlFFdb6Jxsr5vFi4rwNAFgQa 4Eg0zuuS5SVmSBSWYZ+VuuK2iqfKxf0iBeGwZ1j6G4QicJzsTp0ckmiaBp1aVvnXwJL0 Cpsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si24254edp.357.2020.06.10.09.07.53; Wed, 10 Jun 2020 09:08:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728077AbgFJKDX (ORCPT + 99 others); Wed, 10 Jun 2020 06:03:23 -0400 Received: from foss.arm.com ([217.140.110.172]:56192 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgFJKDW (ORCPT ); Wed, 10 Jun 2020 06:03:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 538981FB; Wed, 10 Jun 2020 03:03:22 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD8573F73D; Wed, 10 Jun 2020 03:03:20 -0700 (PDT) References: <20200609150936.GA13060@iZj6chx1xj0e0buvshuecpZ> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Peng Liu Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched: correct SD_flags returned by tl->sd_flags() In-reply-to: <20200609150936.GA13060@iZj6chx1xj0e0buvshuecpZ> Date: Wed, 10 Jun 2020 11:03:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/20 16:09, Peng Liu wrote: > During sched domain init, we check whether non-topological SD_flags are > returned by tl->sd_flags(), if found, fire a waning and correct the ^^^^^^ s/waning/warning/ > violation, but the code failed to correct the violation. Correct this. > > Fixes: 143e1e28cb40 ("sched: Rework sched_domain topology definition") > Signed-off-by: Peng Liu Reviewed-by: Valentin Schneider > --- > kernel/sched/topology.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > index ba81187bb7af..9079d865a935 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -1328,7 +1328,7 @@ sd_init(struct sched_domain_topology_level *tl, > sd_flags = (*tl->sd_flags)(); > if (WARN_ONCE(sd_flags & ~TOPOLOGY_SD_FLAGS, > "wrong sd_flags in topology description\n")) > - sd_flags &= ~TOPOLOGY_SD_FLAGS; > + sd_flags &= TOPOLOGY_SD_FLAGS; > > /* Apply detected topology flags */ > sd_flags |= dflags;