* [tip:WIP.sched/core 144/144] arch/blackfin/kernel/flat.c:49:27: error: dereferencing pointer to incomplete type 'struct mm_struct'
@ 2017-02-04 0:37 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-02-04 0:37 UTC (permalink / raw)
To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, tipbuild
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-04 0:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-04 0:37 [tip:WIP.sched/core 144/144] arch/blackfin/kernel/flat.c:49:27: error: dereferencing pointer to incomplete type 'struct mm_struct' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.