mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Oded Gabbay <oded.gabbay@gmail.com>
Subject: arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info'
Date: Sun, 17 Sep 2017 09:50:18 +0800	[thread overview]
Message-ID: <201709170909.rrOpaKIq%fengguang.wu@intel.com> (raw)

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

Hi Felix,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
commit: 70539bd79500245cbb4c7af00572fcce540d0105 drm/amd: Update MEC HQD loading code for KFD
date:   5 weeks ago
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 70539bd79500245cbb4c7af00572fcce540d0105
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   In file included from include/linux/mmu_context.h:4:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
   arch/alpha/include/asm/mmu_context.h: In function 'ev5_switch_mm':
>> arch/alpha/include/asm/mmu_context.h:160:2: error: implicit declaration of function 'task_thread_info' [-Werror=implicit-function-declaration]
     task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
     ^~~~~~~~~~~~~~~~
>> arch/alpha/include/asm/mmu_context.h:160:24: error: invalid type argument of '->' (have 'int')
     task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
                           ^~
   arch/alpha/include/asm/mmu_context.h: In function 'init_new_context':
   arch/alpha/include/asm/mmu_context.h:238:24: error: invalid type argument of '->' (have 'int')
      task_thread_info(tsk)->pcb.ptbr
                           ^~
   arch/alpha/include/asm/mmu_context.h: In function 'enter_lazy_tlb':
   arch/alpha/include/asm/mmu_context.h:252:23: error: invalid type argument of '->' (have 'int')
     task_thread_info(tsk)->pcb.ptbr
                          ^~
   cc1: some warnings being treated as errors

vim +/task_thread_info +160 arch/alpha/include/asm/mmu_context.h

^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  156  
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  157  	/* Always update the PCB ASN.  Another thread may have allocated
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  158  	   a new mm->context (via flush_tlb_mm) without the ASN serial
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  159  	   number wrapping.  We have no way to detect when this is needed.  */
37bfbaf99 include/asm-alpha/mmu_context.h Al Viro        2006-01-12 @160  	task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  161  }
^1da177e4 include/asm-alpha/mmu_context.h Linus Torvalds 2005-04-16  162  

:::::: The code at line 160 was first introduced by commit
:::::: 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8 [PATCH] alpha: task_thread_info()

:::::: TO: Al Viro <viro@ftp.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
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: 50388 bytes --]

             reply	other threads:[~2017-09-17  1:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17  1:50 kbuild test robot [this message]
2017-09-19 21:38 ` Felix Kuehling

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=201709170909.rrOpaKIq%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oded.gabbay@gmail.com \
    /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

all inboxes | Powered by JetHome®