lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 23 Jun 2018 20:24:28 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:for-vfs-merged 2/2]
 arch/x86//kernel/cpu/intel_rdt_rdtgroup.c:1263:3: error: 'dentry' undeclared

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git for-vfs-merged
head:   3211a734d6978435fe71c38bd6987fa1998bae83
commit: 3211a734d6978435fe71c38bd6987fa1998bae83 [2/2] Merge branch 'for-vfs' into for-vfs-merged
config: i386-randconfig-x014-201824 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 3211a734d6978435fe71c38bd6987fa1998bae83
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86//kernel/cpu/intel_rdt_rdtgroup.c: In function 'rdt_get_tree':
>> arch/x86//kernel/cpu/intel_rdt_rdtgroup.c:1263:3: error: 'dentry' undeclared (first use in this function)
      dentry = ERR_PTR(ret);
      ^~~~~~
   arch/x86//kernel/cpu/intel_rdt_rdtgroup.c:1263:3: note: each undeclared identifier is reported only once for each function it appears in

vim +/dentry +1263 arch/x86//kernel/cpu/intel_rdt_rdtgroup.c

ba3e9328 Thomas Gleixner 2018-06-23  1217  
58e4e439 David Howells   2018-06-15  1218  static int rdt_get_tree(struct fs_context *fc)
5ff193fb Fenghua Yu      2016-10-28  1219  {
58e4e439 David Howells   2018-06-15  1220  	struct rdt_fs_context *ctx = rdt_fc2context(fc);
e3302683 Vikas Shivappa  2017-07-25  1221  	struct rdt_domain *dom;
e3302683 Vikas Shivappa  2017-07-25  1222  	struct rdt_resource *r;
5ff193fb Fenghua Yu      2016-10-28  1223  	int ret;
5ff193fb Fenghua Yu      2016-10-28  1224  
87943db7 Reinette Chatre 2017-10-20  1225  	cpus_read_lock();
5ff193fb Fenghua Yu      2016-10-28  1226  	mutex_lock(&rdtgroup_mutex);
5ff193fb Fenghua Yu      2016-10-28  1227  	/*
5ff193fb Fenghua Yu      2016-10-28  1228  	 * resctrl file system can only be mounted once.
5ff193fb Fenghua Yu      2016-10-28  1229  	 */
4af4a88e Vikas Shivappa  2017-07-25  1230  	if (static_branch_unlikely(&rdt_enable_key)) {
58e4e439 David Howells   2018-06-15  1231  		ret = -EBUSY;
5ff193fb Fenghua Yu      2016-10-28  1232  		goto out;
5ff193fb Fenghua Yu      2016-10-28  1233  	}
5ff193fb Fenghua Yu      2016-10-28  1234  
ba3e9328 Thomas Gleixner 2018-06-23  1235  	ret = rdt_enable_ctx(ctx);
58e4e439 David Howells   2018-06-15  1236  	if (ret < 0)
5ff193fb Fenghua Yu      2016-10-28  1237  		goto out_cdp;
4e978d06 Fenghua Yu      2016-10-28  1238  
58e4e439 David Howells   2018-06-15  1239  	closid_init();
58e4e439 David Howells   2018-06-15  1240  
58e4e439 David Howells   2018-06-15  1241  	ret = rdtgroup_create_info_dir(rdtgroup_default.kn);
58e4e439 David Howells   2018-06-15  1242  	if (ret < 0)
58e4e439 David Howells   2018-06-15  1243  		goto out_mba;
58e4e439 David Howells   2018-06-15  1244  
4af4a88e Vikas Shivappa  2017-07-25  1245  	if (rdt_mon_capable) {
4af4a88e Vikas Shivappa  2017-07-25  1246  		ret = mongroup_create_dir(rdtgroup_default.kn,
4af4a88e Vikas Shivappa  2017-07-25  1247  					  NULL, "mon_groups",
4af4a88e Vikas Shivappa  2017-07-25  1248  					  &kn_mongrp);
58e4e439 David Howells   2018-06-15  1249  		if (ret < 0)
4af4a88e Vikas Shivappa  2017-07-25  1250  			goto out_info;
4af4a88e Vikas Shivappa  2017-07-25  1251  		kernfs_get(kn_mongrp);
4af4a88e Vikas Shivappa  2017-07-25  1252  
4af4a88e Vikas Shivappa  2017-07-25  1253  		ret = mkdir_mondata_all(rdtgroup_default.kn,
4af4a88e Vikas Shivappa  2017-07-25  1254  					&rdtgroup_default, &kn_mondata);
58e4e439 David Howells   2018-06-15  1255  		if (ret < 0)
4af4a88e Vikas Shivappa  2017-07-25  1256  			goto out_mongrp;
4af4a88e Vikas Shivappa  2017-07-25  1257  		kernfs_get(kn_mondata);
4af4a88e Vikas Shivappa  2017-07-25  1258  		rdtgroup_default.mon.mon_data_kn = kn_mondata;
4af4a88e Vikas Shivappa  2017-07-25  1259  	}
4af4a88e Vikas Shivappa  2017-07-25  1260  
32206ab3 Reinette Chatre 2018-06-22  1261  	ret = rdt_pseudo_lock_init();
32206ab3 Reinette Chatre 2018-06-22  1262  	if (ret) {
32206ab3 Reinette Chatre 2018-06-22 @1263  		dentry = ERR_PTR(ret);
32206ab3 Reinette Chatre 2018-06-22  1264  		goto out_mondata;
32206ab3 Reinette Chatre 2018-06-22  1265  	}
32206ab3 Reinette Chatre 2018-06-22  1266  
58e4e439 David Howells   2018-06-15  1267  	ret = kernfs_get_tree(fc);
58e4e439 David Howells   2018-06-15  1268  	if (ret < 0)
32206ab3 Reinette Chatre 2018-06-22  1269  		goto out_psl;
5ff193fb Fenghua Yu      2016-10-28  1270  
4af4a88e Vikas Shivappa  2017-07-25  1271  	if (rdt_alloc_capable)
87943db7 Reinette Chatre 2017-10-20  1272  		static_branch_enable_cpuslocked(&rdt_alloc_enable_key);
4af4a88e Vikas Shivappa  2017-07-25  1273  	if (rdt_mon_capable)
87943db7 Reinette Chatre 2017-10-20  1274  		static_branch_enable_cpuslocked(&rdt_mon_enable_key);
4af4a88e Vikas Shivappa  2017-07-25  1275  
4af4a88e Vikas Shivappa  2017-07-25  1276  	if (rdt_alloc_capable || rdt_mon_capable)
87943db7 Reinette Chatre 2017-10-20  1277  		static_branch_enable_cpuslocked(&rdt_enable_key);
e3302683 Vikas Shivappa  2017-07-25  1278  
e3302683 Vikas Shivappa  2017-07-25  1279  	if (is_mbm_enabled()) {
e3302683 Vikas Shivappa  2017-07-25  1280  		r = &rdt_resources_all[RDT_RESOURCE_L3];
e3302683 Vikas Shivappa  2017-07-25  1281  		list_for_each_entry(dom, &r->domains, list)
bbc4615e Vikas Shivappa  2017-08-15  1282  			mbm_setup_overflow_handler(dom, MBM_OVERFLOW_INTERVAL);
e3302683 Vikas Shivappa  2017-07-25  1283  	}
e3302683 Vikas Shivappa  2017-07-25  1284  
5ff193fb Fenghua Yu      2016-10-28  1285  	goto out;
5ff193fb Fenghua Yu      2016-10-28  1286  
32206ab3 Reinette Chatre 2018-06-22  1287  out_psl:
32206ab3 Reinette Chatre 2018-06-22  1288  	rdt_pseudo_lock_release();
4af4a88e Vikas Shivappa  2017-07-25  1289  out_mondata:
4af4a88e Vikas Shivappa  2017-07-25  1290  	if (rdt_mon_capable)
4af4a88e Vikas Shivappa  2017-07-25  1291  		kernfs_remove(kn_mondata);
4af4a88e Vikas Shivappa  2017-07-25  1292  out_mongrp:
4af4a88e Vikas Shivappa  2017-07-25  1293  	if (rdt_mon_capable)
4af4a88e Vikas Shivappa  2017-07-25  1294  		kernfs_remove(kn_mongrp);
4af4a88e Vikas Shivappa  2017-07-25  1295  out_info:
79298acc Vikas Shivappa  2017-06-26  1296  	kernfs_remove(kn_info);
58e4e439 David Howells   2018-06-15  1297  out_mba:
ba3e9328 Thomas Gleixner 2018-06-23  1298  	if (ctx->enable_mba_mbps)
58e4e439 David Howells   2018-06-15  1299  		set_mba_sc(false);
5ff193fb Fenghua Yu      2016-10-28  1300  out_cdp:
99adde9b Fenghua Yu      2017-12-20  1301  	cdp_disable_all();
5ff193fb Fenghua Yu      2016-10-28  1302  out:
9b3a7fd0 Tony Luck       2017-09-25  1303  	rdt_last_cmd_clear();
5ff193fb Fenghua Yu      2016-10-28  1304  	mutex_unlock(&rdtgroup_mutex);
87943db7 Reinette Chatre 2017-10-20  1305  	cpus_read_unlock();
58e4e439 David Howells   2018-06-15  1306  	return ret;
58e4e439 David Howells   2018-06-15  1307  }
58e4e439 David Howells   2018-06-15  1308  

:::::: The code at line 1263 was first introduced by commit
:::::: 32206ab36553be8714d9253ce33f4085681d369c x86/intel_rdt: Provide pseudo-locking hooks within rdt_mount

:::::: TO: Reinette Chatre <reinette.chatre@...el.com>
:::::: CC: Thomas Gleixner <tglx@...utronix.de>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (27467 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ