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:   Sun, 13 May 2018 04:51:21 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Tony Luck <tony.luck@...el.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Borislav Petkov <bp@...e.de>, Jean Delvare <jdelvare@...e.de>
Subject: drivers/edac/skx_edac.c:399: undefined reference to
 `nfit_get_smbios_id'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   427fbe89261d8f11cd20b5a4ba94e977061f69d6
commit: 58ca9ac1463d07d24b9fa8befe065192abca6f76 EDAC, skx_edac: Detect non-volatile DIMMs
date:   8 weeks ago
config: x86_64-randconfig-v0-05130337 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 58ca9ac1463d07d24b9fa8befe065192abca6f76
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/edac/skx_edac.o: In function `get_nvdimm_info':
>> drivers/edac/skx_edac.c:399: undefined reference to `nfit_get_smbios_id'

vim +399 drivers/edac/skx_edac.c

   387	
   388	static int get_nvdimm_info(struct dimm_info *dimm, struct skx_imc *imc,
   389				   int chan, int dimmno)
   390	{
   391		int smbios_handle;
   392		u32 dev_handle;
   393		u16 flags;
   394		u64 size = 0;
   395	
   396		dev_handle = ACPI_NFIT_BUILD_DEVICE_HANDLE(dimmno, chan, imc->lmc,
   397							   imc->src_id, 0);
   398	
 > 399		smbios_handle = nfit_get_smbios_id(dev_handle, &flags);
   400		if (smbios_handle == -EOPNOTSUPP) {
   401			pr_warn_once(EDAC_MOD_STR ": Can't find size of NVDIMM. Try enabling CONFIG_ACPI_NFIT\n");
   402			goto unknown_size;
   403		}
   404	
   405		if (smbios_handle < 0) {
   406			skx_printk(KERN_ERR, "Can't find handle for NVDIMM ADR=%x\n", dev_handle);
   407			goto unknown_size;
   408		}
   409	
   410		if (flags & ACPI_NFIT_MEM_MAP_FAILED) {
   411			skx_printk(KERN_ERR, "NVDIMM ADR=%x is not mapped\n", dev_handle);
   412			goto unknown_size;
   413		}
   414	
   415		size = dmi_memdev_size(smbios_handle);
   416		if (size == ~0ull)
   417			skx_printk(KERN_ERR, "Can't find size for NVDIMM ADR=%x/SMBIOS=%x\n",
   418				   dev_handle, smbios_handle);
   419	
   420	unknown_size:
   421		dimm->nr_pages = size >> PAGE_SHIFT;
   422		dimm->grain = 32;
   423		dimm->dtype = DEV_UNKNOWN;
   424		dimm->mtype = MEM_NVDIMM;
   425		dimm->edac_mode = EDAC_SECDED; /* likely better than this */
   426	
   427		edac_dbg(0, "mc#%d: channel %d, dimm %d, %llu Mb (%u pages)\n",
   428			 imc->mc, chan, dimmno, size >> 20, dimm->nr_pages);
   429	
   430		snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u",
   431			 imc->src_id, imc->lmc, chan, dimmno);
   432	
   433		return (size == 0 || size == ~0ull) ? 0 : 1;
   434	}
   435	

---
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" (31840 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ