[s390:features 19/19] arch/s390/kernel/machine_kexec.c:172:3: error: implicit declaration of function 'set_memory_ro'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
head:   0b45bc53cb188daba69a02725967af8ace276c60
commit: 0b45bc53cb188daba69a02725967af8ace276c60 [19/19] s390/kexec: fix crash on resize of reserved memory
config: s390-zfcpdump_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0b45bc53cb188daba69a02725967af8ace276c60
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

Note: the s390/features HEAD 0b45bc53cb188daba69a02725967af8ace276c60 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   arch/s390/kernel/machine_kexec.c: In function 'crash_protect_pages':
>> arch/s390/kernel/machine_kexec.c:172:3: error: implicit declaration of function 'set_memory_ro' [-Werror=implicit-function-declaration]
      set_memory_ro(crashk_res.start, size >> PAGE_SHIFT);
      ^
>> arch/s390/kernel/machine_kexec.c:174:3: error: implicit declaration of function 'set_memory_rw' [-Werror=implicit-function-declaration]
      set_memory_rw(crashk_res.start, size >> PAGE_SHIFT);
      ^
   cc1: some warnings being treated as errors

vim +/set_memory_ro +172 arch/s390/kernel/machine_kexec.c

   166		unsigned long size;
   167	
   168		if (!crashk_res.end)
   169			return;
   170		size = resource_size(&crashk_res);
   171		if (protect)
 > 172			set_memory_ro(crashk_res.start, size >> PAGE_SHIFT);
   173		else
 > 174			set_memory_rw(crashk_res.start, size >> PAGE_SHIFT);
   175	}
   176	
   177	void arch_kexec_protect_crashkres(void)

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

Attachment: .config.gz
Description: Binary data


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux