linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm-platforms:arm64/spectre-sysfs 7/9] arch/arm64/kernel/cpu_errata.c:854:6: error: '__ssb_safe' undeclared; did you mean '__safe'?
@ 2019-01-14  3:51 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-01-14  3:51 UTC (permalink / raw)
  To: Mian Yousaf Kaukab
  Cc: Marc Zyngier, kbuild-all, linux-arm-kernel, Jeremy Linton

[-- Attachment #1: Type: text/plain, Size: 3345 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git arm64/spectre-sysfs
head:   3c40035559ebdef0ca29c703d5e963a45c510851
commit: e2aefa70c8e57758618df743dcfd60c03a21f4b2 [7/9] arm64: enable generic CPU vulnerabilites support
config: arm64-allnoconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e2aefa70c8e57758618df743dcfd60c03a21f4b2
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/kernel/cpu_errata.c: In function 'cpu_show_spec_store_bypass':
>> arch/arm64/kernel/cpu_errata.c:854:6: error: '__ssb_safe' undeclared (first use in this function); did you mean '__safe'?
     if (__ssb_safe)
         ^~~~~~~~~~
         __safe
   arch/arm64/kernel/cpu_errata.c:854:6: note: each undeclared identifier is reported only once for each function it appears in

vim +854 arch/arm64/kernel/cpu_errata.c

80d44f9d Jeremy Linton 2019-01-09  833  
69cd443b Jeremy Linton 2019-01-09  834  ssize_t cpu_show_spec_store_bypass(struct device *dev,
69cd443b Jeremy Linton 2019-01-09  835  		struct device_attribute *attr, char *buf)
69cd443b Jeremy Linton 2019-01-09  836  {
69cd443b Jeremy Linton 2019-01-09  837  	/*
69cd443b Jeremy Linton 2019-01-09  838  	 *  Two assumptions: First, get_ssbd_state() reflects the worse case
69cd443b Jeremy Linton 2019-01-09  839  	 *  for hetrogenous machines, and that if SSBS is supported its
69cd443b Jeremy Linton 2019-01-09  840  	 *  supported by all cores.
69cd443b Jeremy Linton 2019-01-09  841  	 */
69cd443b Jeremy Linton 2019-01-09  842  	switch (arm64_get_ssbd_state()) {
69cd443b Jeremy Linton 2019-01-09  843  	case ARM64_SSBD_MITIGATED:
69cd443b Jeremy Linton 2019-01-09  844  		return sprintf(buf, "Not affected\n");
69cd443b Jeremy Linton 2019-01-09  845  
69cd443b Jeremy Linton 2019-01-09  846  	case ARM64_SSBD_KERNEL:
69cd443b Jeremy Linton 2019-01-09  847  	case ARM64_SSBD_FORCE_ENABLE:
69cd443b Jeremy Linton 2019-01-09  848  		if (cpus_have_cap(ARM64_SSBS))
69cd443b Jeremy Linton 2019-01-09  849  			return sprintf(buf, "Not affected\n");
69cd443b Jeremy Linton 2019-01-09  850  		return sprintf(buf,
69cd443b Jeremy Linton 2019-01-09  851  			"Mitigation: Speculative Store Bypass disabled\n");
69cd443b Jeremy Linton 2019-01-09  852  	}
69cd443b Jeremy Linton 2019-01-09  853  
69cd443b Jeremy Linton 2019-01-09 @854  	if (__ssb_safe)
69cd443b Jeremy Linton 2019-01-09  855  		return sprintf(buf, "Not affected\n");
69cd443b Jeremy Linton 2019-01-09  856  
69cd443b Jeremy Linton 2019-01-09  857  	return sprintf(buf, "Vulnerable\n");
69cd443b Jeremy Linton 2019-01-09  858  }
69cd443b Jeremy Linton 2019-01-09  859  

:::::: The code at line 854 was first introduced by commit
:::::: 69cd443bc1874789fc016ec6d14f31b2951094ab arm64: add sysfs vulnerability show for speculative store bypass

:::::: TO: Jeremy Linton <jeremy.linton@arm.com>
:::::: CC: Marc Zyngier <marc.zyngier@arm.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7087 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-14  3:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14  3:51 [arm-platforms:arm64/spectre-sysfs 7/9] arch/arm64/kernel/cpu_errata.c:854:6: error: '__ssb_safe' undeclared; did you mean '__safe'? kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).