linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 152/178] include/linux/kexec.h:356:9: error: implicit declaration of function 'phys_to_virt'
Date: Sat, 4 Jun 2016 10:11:47 +0800	[thread overview]
Message-ID: <201606041044.dTOHh5q4%fengguang.wu@intel.com> (raw)

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   2e0066ec9585a5074c8040d639c3c669eb4e905f
commit: 60c8a7d9e20b888121b304895074928bf9b69029 [152/178] kexec: allow architectures to override boot mapping
config: sh-sh7785lcr_32bit_defconfig (attached as .config)
compiler: sh4-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 60c8a7d9e20b888121b304895074928bf9b69029
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All error/warnings (new ones prefixed by >>):

   In file included from arch/sh/kernel/reboot.c:2:0:
   include/linux/kexec.h: In function 'boot_phys_to_virt':
>> include/linux/kexec.h:356:9: error: implicit declaration of function 'phys_to_virt' [-Werror=implicit-function-declaration]
     return phys_to_virt(boot_phys_to_phys(entry));
            ^
>> include/linux/kexec.h:356:9: error: return makes pointer from integer without a cast [-Werror=int-conversion]
   cc1: all warnings being treated as errors
--
   In file included from kernel/ksysfs.c:16:0:
   include/linux/kexec.h: In function 'boot_phys_to_virt':
>> include/linux/kexec.h:356:9: error: implicit declaration of function 'phys_to_virt' [-Werror=implicit-function-declaration]
     return phys_to_virt(boot_phys_to_phys(entry));
            ^
>> include/linux/kexec.h:356:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
   cc1: some warnings being treated as errors

vim +/phys_to_virt +356 include/linux/kexec.h

   350	{
   351		return phys_to_boot_phys(__pa((unsigned long)addr));
   352	}
   353	
   354	static inline void *boot_phys_to_virt(unsigned long entry)
   355	{
 > 356		return phys_to_virt(boot_phys_to_phys(entry));
   357	}
   358	
   359	#else /* !CONFIG_KEXEC_CORE */

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 16556 bytes --]

             reply	other threads:[~2016-06-04  2:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04  2:11 kbuild test robot [this message]
2016-06-04 10:42 ` Russell King - ARM Linux
2016-06-06 21:21   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201606041044.dTOHh5q4%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=rmk+kernel@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox