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 <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to