From: kbuild test robot <fengguang.wu@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com
Subject: [tip:WIP.sched/core 144/144] arch/blackfin/kernel/flat.c:49:27: error: dereferencing pointer to incomplete type 'struct mm_struct'
Date: Sat, 4 Feb 2017 08:37:46 +0800 [thread overview]
Message-ID: <201702040841.liDTYWac%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3003 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: 2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9
commit: 2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9 [144/144] sched/headers: Remove the <linux/mm_types.h> dependency from <linux/sched.h>
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.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 2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9
# save the attached .config to linux build tree
make.cross ARCH=blackfin
All errors (new ones prefixed by >>):
arch/blackfin/kernel/flat.c: In function 'bfin_get_addr_from_rp':
>> arch/blackfin/kernel/flat.c:49:27: error: dereferencing pointer to incomplete type 'struct mm_struct'
return val + current->mm->context.end_brk;
^~
vim +49 arch/blackfin/kernel/flat.c
1394f032 Bryan Wu 2007-05-06 33 case FLAT_BFIN_RELOC_TYPE_32_BIT:
1394f032 Bryan Wu 2007-05-06 34 pr_debug("*ptr = %lx", get_unaligned(ptr));
1394f032 Bryan Wu 2007-05-06 35 val = get_unaligned(ptr);
1394f032 Bryan Wu 2007-05-06 36 break;
1394f032 Bryan Wu 2007-05-06 37
1394f032 Bryan Wu 2007-05-06 38 default:
1f83b8f1 Mike Frysinger 2007-07-12 39 pr_debug("BINFMT_FLAT: Unknown relocation type %x\n", type);
1394f032 Bryan Wu 2007-05-06 40 return 0;
1394f032 Bryan Wu 2007-05-06 41 }
1394f032 Bryan Wu 2007-05-06 42
1394f032 Bryan Wu 2007-05-06 43 /*
1394f032 Bryan Wu 2007-05-06 44 * Stack-relative relocs contain the offset into the stack, we
1394f032 Bryan Wu 2007-05-06 45 * have to add the stack's start address here and return 1 from
1394f032 Bryan Wu 2007-05-06 46 * flat_addr_absolute to prevent the normal address calculations
1394f032 Bryan Wu 2007-05-06 47 */
1394f032 Bryan Wu 2007-05-06 48 if (relval & (1 << 29))
1394f032 Bryan Wu 2007-05-06 @49 return val + current->mm->context.end_brk;
1394f032 Bryan Wu 2007-05-06 50
1394f032 Bryan Wu 2007-05-06 51 if ((flags & FLAT_FLAG_GOTPIC) == 0)
1394f032 Bryan Wu 2007-05-06 52 val = htonl(val);
1394f032 Bryan Wu 2007-05-06 53 return val;
1394f032 Bryan Wu 2007-05-06 54 }
1394f032 Bryan Wu 2007-05-06 55 EXPORT_SYMBOL(bfin_get_addr_from_rp);
1394f032 Bryan Wu 2007-05-06 56
1394f032 Bryan Wu 2007-05-06 57 /*
:::::: The code at line 49 was first introduced by commit
:::::: 1394f03221790a988afc3e4b3cb79f2e477246a9 blackfin architecture
:::::: TO: Bryan Wu <bryan.wu@analog.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.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: 42967 bytes --]
reply other threads:[~2017-02-04 0:30 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=201702040841.liDTYWac%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tipbuild@zytor.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®