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/microblaze/include/asm/mmu_context_mm.h:122:5: error: dereferencing pointer to incomplete type 'struct task_struct'
Date: Wed, 25 Oct 2017 00:51:41 +0800	[thread overview]
Message-ID: <201710250030.GCWQdrEH%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6cff0a118f23b98c604a3604ea9de11338e24fbe
commit: 70539bd79500245cbb4c7af00572fcce540d0105 drm/amd: Update MEC HQD loading code for KFD
date:   2 months ago
config: microblaze-allyesconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
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=microblaze 

All errors (new ones prefixed by >>):

   In file included from arch/microblaze/include/asm/mmu_context.h:2:0,
                    from include/linux/mmu_context.h:4,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
   arch/microblaze/include/asm/mmu_context_mm.h: In function 'switch_mm':
>> arch/microblaze/include/asm/mmu_context_mm.h:122:5: error: dereferencing pointer to incomplete type 'struct task_struct'
     tsk->thread.pgdir = next->pgd;
        ^~

vim +122 arch/microblaze/include/asm/mmu_context_mm.h

fc34d1eb Michal Simek 2009-05-26  118  
fc34d1eb Michal Simek 2009-05-26  119  static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
fc34d1eb Michal Simek 2009-05-26  120  			     struct task_struct *tsk)
fc34d1eb Michal Simek 2009-05-26  121  {
fc34d1eb Michal Simek 2009-05-26 @122  	tsk->thread.pgdir = next->pgd;
fc34d1eb Michal Simek 2009-05-26  123  	get_mmu_context(next);
fc34d1eb Michal Simek 2009-05-26  124  	set_context(next->context, next->pgd);
fc34d1eb Michal Simek 2009-05-26  125  }
fc34d1eb Michal Simek 2009-05-26  126  

:::::: The code at line 122 was first introduced by commit
:::::: fc34d1eb1ca09d3450508e2cf9cf511364c2c460 microblaze_mmu_v2: Context handling - mmu_context.c/h

:::::: TO: Michal Simek <monstr@monstr.eu>
:::::: CC: Michal Simek <monstr@monstr.eu>

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

                 reply	other threads:[~2017-10-24 16:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201710250030.GCWQdrEH%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®