lkml.org 
[lkml]   [2016]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: undefined reference to `printk'
    I think fix it.
    default_eit_handler rewritten in C, it is best way.
    But it test difficult.

    Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
    ---
    arch/m32r/kernel/entry.S | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/arch/m32r/kernel/entry.S b/arch/m32r/kernel/entry.S
    index c639bfa..a71105c 100644
    --- a/arch/m32r/kernel/entry.S
    +++ b/arch/m32r/kernel/entry.S
    @@ -419,6 +419,12 @@ ENTRY(default_eit_handler)
    infinit:
    bra infinit

    +#ifndef CONFIG_PRINTK
    +printk:
    + jmp lr
    + .fillinsn
    +#endif
    +
    #ifdef CONFIG_ MMU
    /*
    * Access Exception handler
    2.7.0
    On Sun, 26 Jun 2016 10:19:50 +0900,
    kbuild test robot wrote:
    >
    > Hi,
    >
    > FYI, the error/warning still remains.
    >
    > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
    > head: da2f6aba4a21f8da3331e5251a117c52764da579
    > commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
    > date: 2 years, 3 months ago
    > config: m32r-allnoconfig (attached as .config)
    > compiler: m32r-linux-gcc (GCC) 4.9.0
    > 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 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
    > # save the attached .config to linux build tree
    > make.cross ARCH=m32r
    >
    > All errors (new ones prefixed by >>):
    >
    > arch/m32r/kernel/built-in.o: In function `default_eit_handler':
    > >> (.text+0x3f8): undefined reference to `printk'
    > arch/m32r/kernel/built-in.o: In function `default_eit_handler':
    > (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'
    >
    > ---
    > 0-DAY kernel test infrastructure Open Source Technology Center
    > https://lists.01.org/pipermail/kbuild-all Intel Corporation

    --
    Yoshinori Sato
    <ysato@users.sourceforge.jp>

    \
     
     \ /
      Last update: 2016-06-27 07:41    [W:3.454 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site