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>] [day] [month] [year] [list]
Message-ID: <202206300952.nKxdsKM9-lkp@intel.com>
Date:   Thu, 30 Jun 2022 09:52:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sebastian Ene <sebastianene@...gle.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: drivers/misc/vcpu_stall_detector.c:137: undefined reference to
 `ioremap'

tree:   https://github.com/intel-lab-lkp/linux/commits/Sebastian-Ene/Detect-stalls-on-guest-vCPUS/20220621-160708
head:   c478d8425a957c2845406789d230e24727a76820
commit: c478d8425a957c2845406789d230e24727a76820 misc: Add a mechanism to detect stalls on guest vCPUs
date:   9 days ago
config: s390-randconfig-p001-20220629
compiler: s390-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/c478d8425a957c2845406789d230e24727a76820
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Sebastian-Ene/Detect-stalls-on-guest-vCPUS/20220621-160708
        git checkout c478d8425a957c2845406789d230e24727a76820
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
   drivers/char/xillybus/xillybus_of.c:50: undefined reference to `devm_platform_ioremap_resource'
   s390-linux-ld: drivers/misc/vcpu_stall_detector.o: in function `vcpu_stall_detect_probe':
>> drivers/misc/vcpu_stall_detector.c:137: undefined reference to `ioremap'
   s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
   drivers/clocksource/timer-of.c:159: undefined reference to `of_iomap'
   s390-linux-ld: drivers/clocksource/timer-of.c:151: undefined reference to `iounmap'
   s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
   drivers/clocksource/timer-of.c:151: undefined reference to `iounmap'


vim +137 drivers/misc/vcpu_stall_detector.c

   120	
   121	static int vcpu_stall_detect_probe(struct platform_device *dev)
   122	{
   123		int cpu, ret, err;
   124		void __iomem *membase;
   125		struct resource *r;
   126		struct vm_stall_detect_s __percpu *vm_stall_detect;
   127		u32 stall_detect_clock, stall_detect_timeout_sec = 0;
   128	
   129		r = platform_get_resource(dev, IORESOURCE_MEM, 0);
   130		if (r == NULL)
   131			return -ENOENT;
   132	
   133		vm_stall_detect = alloc_percpu(typeof(struct vm_stall_detect_s));
   134		if (!vm_stall_detect)
   135			return -ENOMEM;
   136	
 > 137		membase = ioremap(r->start, resource_size(r));
   138		if (!membase) {
   139			ret = -ENXIO;
   140			goto err_withmem;
   141		}
   142	
   143		virt_dev = dev;
   144		platform_set_drvdata(dev, vm_stall_detect);
   145		if (of_property_read_u32(dev->dev.of_node, "clock-frequency",
   146					 &stall_detect_clock))
   147			stall_detect_clock = DEFAULT_CLOCK_HZ;
   148	
   149		if (of_property_read_u32(dev->dev.of_node, "timeout-sec",
   150					 &stall_detect_timeout_sec))
   151			stall_detect_timeout_sec = DEFAULT_TIMEOT_SEC;
   152	
   153		for_each_cpu_and(cpu, cpu_online_mask, &watchdog_cpumask) {
   154			struct vm_stall_detect_s *cpu_stall_detect;
   155	
   156			cpu_stall_detect = per_cpu_ptr(vm_stall_detect, cpu);
   157			cpu_stall_detect->membase = membase + cpu * REG_LEN;
   158			cpu_stall_detect->clock_freq = stall_detect_clock;
   159			cpu_stall_detect->expiration_sec = stall_detect_timeout_sec;
   160			cpu_stall_detect->ping_timeout_ms = stall_detect_timeout_sec *
   161				MSEC_PER_SEC / 2;
   162			smp_call_function_single(cpu, vcpu_stall_detect_start,
   163						 cpu_stall_detect, true);
   164		}
   165	
   166		err = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
   167						"virt/vcpu_stall_detector:online",
   168						start_stall_detector_on_cpu,
   169						stop_stall_detector_on_cpu);
   170		if (err < 0) {
   171			dev_warn(&dev->dev, "failed to install cpu hotplug");
   172			ret = err;
   173			goto err_withmem;
   174		}
   175	
   176		return 0;
   177	
   178	err_withmem:
   179		free_percpu(vm_stall_detect);
   180		return ret;
   181	}
   182	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (69877 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ