Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752616AbdHAUkz (ORCPT ); Tue, 1 Aug 2017 16:40:55 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47676 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752122AbdHAUkx (ORCPT ); Tue, 1 Aug 2017 16:40:53 -0400 Date: Tue, 1 Aug 2017 22:40:50 +0200 (CEST) From: Thomas Gleixner To: Vikas Shivappa cc: vikas.shivappa@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, peterz@infradead.org, ravi.v.shankar@intel.com, tony.luck@intel.com, fenghua.yu@intel.com, eranian@google.com, davidcc@google.com, ak@linux.intel.com, reinette.chatre@intel.com Subject: Re: [PATCH 11/28] x86/intel_rdt/cqm: Add info files for RDT monitoring In-Reply-To: <1501017287-28083-12-git-send-email-vikas.shivappa@linux.intel.com> Message-ID: References: <1501017287-28083-1-git-send-email-vikas.shivappa@linux.intel.com> <1501017287-28083-12-git-send-email-vikas.shivappa@linux.intel.com> 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 Content-Length: 484 Lines: 14 On Tue, 25 Jul 2017, Vikas Shivappa wrote: > @@ -658,6 +732,14 @@ static int rdtgroup_create_info_dir(struct kernfs_node *parent_kn) > if (rdtgroup_mkdir_info_resdir(r, r->name, fflags)) > goto out_destroy; > } > + > + for_each_mon_enabled_rdt_resource(r) { > + fflags = r->fflags | RF_MON_INFO; > + sprintf(name, "%s_MON", r->name); > + if (rdtgroup_mkdir_info_resdir(r, name, fflags)) > + goto out_destroy; > + } Copy and paste and still the compiler complains ....