From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752792AbdDJJpe (ORCPT ); Mon, 10 Apr 2017 05:45:34 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:49963 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbdDJJpd (ORCPT ); Mon, 10 Apr 2017 05:45:33 -0400 Date: Mon, 10 Apr 2017 11:45:21 +0200 (CEST) From: Thomas Gleixner To: Jiri Olsa cc: Fenghua Yu , Jiri Olsa , Peter Zijlstra , Mike Galbraith , Shaohua Li , lkml , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCHv3] x86/intel_rdt: Add cpus_list rdtgroup file In-Reply-To: <20170410074004.GA25354@krava> Message-ID: References: <20170329150948.4981-1-jolsa@kernel.org> <20170329160825.GA24537@linux.intel.com> <20170331155512.GB5707@krava> <20170409164929.GA11826@krava> <20170409173853.GA27206@linux.intel.com> <20170410074004.GA25354@krava> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Apr 2017, Jiri Olsa wrote: > /* List of all resource groups */ > extern struct list_head rdt_all_groups; > > @@ -56,6 +59,7 @@ struct rftype { > char *name; > umode_t mode; > struct kernfs_ops *kf_ops; > + unsigned long flags; Lacks update in the kernel-doc comment. > @@ -182,9 +189,10 @@ static int rdtgroup_cpus_show(struct kernfs_open_file *of, > > rdtgrp = rdtgroup_kn_lock_live(of->kn); > > - if (rdtgrp) > - seq_printf(s, "%*pb\n", cpumask_pr_args(&rdtgrp->cpu_mask)); > - else > + if (rdtgrp) { > + seq_printf(s, is_list(of) ? "%*pbl\n" : "%*pb\n", > + cpumask_pr_args(&rdtgrp->cpu_mask)); > + } else > ret = -ENOENT; This lacks braces around the else path > @@ -473,6 +485,14 @@ static int rdtgroup_tasks_show(struct kernfs_open_file *of, > .seq_show = rdtgroup_cpus_show, > }, > { > + .name = "cpus_list", > + .mode = 0644, > + .kf_ops = &rdtgroup_kf_single_ops, > + .write = rdtgroup_cpus_write, > + .seq_show = rdtgroup_cpus_show, > + .flags = RFTYPE_FLAGS_CPUS_LIST, > + }, Please add the new file to Documentation/x86/intel_rdt_ui.txt Thanks, tglx