All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [uapi:disintegrate-main 3/4] fs/binfmt_elf_fdpic.c:123:12: error: conflicting types for 'elf_fdpic_f
Date: Sun, 14 Oct 2012 02:34:20 +0000	[thread overview]
Message-ID: <20121014023420.GE6795@localhost> (raw)

Hi David,

FYI, kernel build failed on

tree:   git://git.infradead.org/users/dhowells/linux-headers.git disintegrate-main
head:   5921e6f8809b1616932ca4afd40fe449faa8fd88
commit: 607ca46e97a1b6594b29647d98a32d545c24bdff [3/4] UAPI: (Scripted) Disintegrate include/linux
config: blackfin-BF533-EZKIT_defconfig # make ARCH=blackfin BF533-EZKIT_defconfig

All error/warnings:

fs/binfmt_elf_fdpic.c:60:68: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:60:68: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
fs/binfmt_elf_fdpic.c:62:17: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:66:15: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:73:17: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:77:33: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:124:13: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:123:12: error: conflicting types for 'elf_fdpic_fetch_phdrs'
fs/binfmt_elf_fdpic.c:60:12: note: previous declaration of 'elf_fdpic_fetch_phdrs' was here
fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_fetch_phdrs':
fs/binfmt_elf_fdpic.c:130:12: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:132:12: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:135:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:136:8: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:137:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:140:35: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:141:24: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:146:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:147:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:152:10: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:152:21: error: 'ELF_FDPIC_FLAG_EXEC_STACK' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:152:21: note: each undeclared identifier is reported only once for each function it appears in
fs/binfmt_elf_fdpic.c:154:10: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:154:21: error: 'ELF_FDPIC_FLAG_NOEXEC_STACK' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:156:9: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c: In function 'load_elf_fdpic_binary':
fs/binfmt_elf_fdpic.c:170:26: error: storage size of 'exec_params' isn't known
fs/binfmt_elf_fdpic.c:170:39: error: storage size of 'interp_params' isn't known
fs/binfmt_elf_fdpic.c:190:22: error: 'ELF_FDPIC_FLAG_PRESENT' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:190:47: error: 'ELF_FDPIC_FLAG_EXECUTABLE' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:273:24: error: 'ELF_FDPIC_FLAG_CONSTDISP' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:290:26: error: 'ELF_FDPIC_FLAG_EXEC_STACK' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:292:31: error: 'ELF_FDPIC_FLAG_NOEXEC_STACK' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:170:39: warning: unused variable 'interp_params' [-Wunused-variable]
fs/binfmt_elf_fdpic.c:170:26: warning: unused variable 'exec_params' [-Wunused-variable]
fs/binfmt_elf_fdpic.c: At top level:
fs/binfmt_elf_fdpic.c:478:15: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:475:12: error: conflicting types for 'create_elf_fdpic_tables'
fs/binfmt_elf_fdpic.c:64:12: note: previous declaration of 'create_elf_fdpic_tables' was here
fs/binfmt_elf_fdpic.c: In function 'create_elf_fdpic_tables':
fs/binfmt_elf_fdpic.c:543:57: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:545:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:547:50: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:552:19: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:555:17: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:557:16: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:559:53: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:623:2: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:625:2: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:626:2: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:628:2: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c: At top level:
fs/binfmt_elf_fdpic.c:741:10: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:738:12: error: conflicting types for 'elf_fdpic_map_file'
fs/binfmt_elf_fdpic.c:61:12: note: previous declaration of 'elf_fdpic_map_file' was here
fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_map_file':
fs/binfmt_elf_fdpic.c:756:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:757:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:768:8: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:773:20: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:777:16: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:777:26: error: 'ELF_FDPIC_FLAG_ARRANGEMENT' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:778:7: error: 'ELF_FDPIC_FLAG_CONSTDISP' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:779:7: error: 'ELF_FDPIC_FLAG_CONTIGUOUS' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:781:3: warning: passing argument 1 of 'elf_fdpic_map_file_constdisp_on_uclinux' from incompatible pointer type [enabled by default]
fs/binfmt_elf_fdpic.c:71:12: note: expected 'struct elf_fdpic_params *' but argument is of type 'struct elf_fdpic_params *'
fs/binfmt_elf_fdpic.c:787:3: warning: passing argument 1 of 'elf_fdpic_map_file_by_direct_mmap' from incompatible pointer type [enabled by default]
fs/binfmt_elf_fdpic.c:76:12: note: expected 'struct elf_fdpic_params *' but argument is of type 'struct elf_fdpic_params *'
fs/binfmt_elf_fdpic.c:794:12: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:797:14: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:798:14: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:799:11: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:800:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:808:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:809:16: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:810:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:812:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:816:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:825:11: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:828:12: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:836:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:837:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:846:11: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:859:16: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c: At top level:
fs/binfmt_elf_fdpic.c:924:9: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:921:12: error: conflicting types for 'elf_fdpic_map_file_constdisp_on_uclinux'
fs/binfmt_elf_fdpic.c:71:12: note: previous declaration of 'elf_fdpic_map_file_constdisp_on_uclinux' was here
fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_map_file_constdisp_on_uclinux':
fs/binfmt_elf_fdpic.c:932:20: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:933:14: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:937:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:938:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:939:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:950:12: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:950:22: error: 'ELF_FDPIC_FLAG_EXECUTABLE' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:962:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:963:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:964:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:980:10: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c: At top level:
fs/binfmt_elf_fdpic.c:1015:18: warning: 'struct elf_fdpic_params' declared inside parameter list [enabled by default]
fs/binfmt_elf_fdpic.c:1013:12: error: conflicting types for 'elf_fdpic_map_file_by_direct_mmap'
fs/binfmt_elf_fdpic.c:76:12: note: previous declaration of 'elf_fdpic_map_file_by_direct_mmap' was here
fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_map_file_by_direct_mmap':
fs/binfmt_elf_fdpic.c:1022:20: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1026:14: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1029:15: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1030:30: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1049:13: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1049:23: error: 'ELF_FDPIC_FLAG_EXECUTABLE' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1054:17: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1054:27: error: 'ELF_FDPIC_FLAG_ARRANGEMENT' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1055:8: error: 'ELF_FDPIC_FLAG_INDEPENDENT' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1059:8: error: 'ELF_FDPIC_FLAG_HONOURVADDR' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1065:8: error: 'ELF_FDPIC_FLAG_CONSTDISP' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1080:8: error: 'ELF_FDPIC_FLAG_CONTIGUOUS' undeclared (first use in this function)
fs/binfmt_elf_fdpic.c:1102:14: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c:1112:10: error: dereferencing pointer to incomplete type
fs/binfmt_elf_fdpic.c: At top level:
fs/binfmt_elf_fdpic.c:61:12: warning: 'elf_fdpic_map_file' used but never defined [enabled by default]
fs/binfmt_elf_fdpic.c:64:12: warning: 'create_elf_fdpic_tables' used but never defined [enabled by default]
fs/binfmt_elf_fdpic.c:71:12: warning: 'elf_fdpic_map_file_constdisp_on_uclinux' used but never defined [enabled by default]
fs/binfmt_elf_fdpic.c:76:12: warning: 'elf_fdpic_map_file_by_direct_mmap' used but never defined [enabled by default]
fs/binfmt_elf_fdpic.c:475:12: warning: 'create_elf_fdpic_tables' defined but not used [-Wunused-function]
fs/binfmt_elf_fdpic.c:738:12: warning: 'elf_fdpic_map_file' defined but not used [-Wunused-function]
fs/binfmt_elf_fdpic.c:921:12: warning: 'elf_fdpic_map_file_constdisp_on_uclinux' defined but not used [-Wunused-function]
fs/binfmt_elf_fdpic.c:1013:12: warning: 'elf_fdpic_map_file_by_direct_mmap' defined but not used [-Wunused-function]

vim +123 fs/binfmt_elf_fdpic.c

^1da177e Linus Torvalds 2005-04-16  107  {
^1da177e Linus Torvalds 2005-04-16  108  	if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0)
^1da177e Linus Torvalds 2005-04-16  109  		return 0;
^1da177e Linus Torvalds 2005-04-16  110  	if (hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN)
^1da177e Linus Torvalds 2005-04-16  111  		return 0;
^1da177e Linus Torvalds 2005-04-16  112  	if (!elf_check_arch(hdr) || !elf_check_fdpic(hdr))
^1da177e Linus Torvalds 2005-04-16  113  		return 0;
^1da177e Linus Torvalds 2005-04-16  114  	if (!file->f_op || !file->f_op->mmap)
^1da177e Linus Torvalds 2005-04-16  115  		return 0;
^1da177e Linus Torvalds 2005-04-16  116  	return 1;
^1da177e Linus Torvalds 2005-04-16  117  }
^1da177e Linus Torvalds 2005-04-16  118  
^1da177e Linus Torvalds 2005-04-16  119  /*****************************************************************************/
^1da177e Linus Torvalds 2005-04-16  120  /*
^1da177e Linus Torvalds 2005-04-16  121   * read the program headers table into memory
^1da177e Linus Torvalds 2005-04-16  122   */
8a2ab7f5 David Howells  2006-07-10 @123  static int elf_fdpic_fetch_phdrs(struct elf_fdpic_params *params,
8a2ab7f5 David Howells  2006-07-10  124  				 struct file *file)
^1da177e Linus Torvalds 2005-04-16  125  {
^1da177e Linus Torvalds 2005-04-16  126  	struct elf32_phdr *phdr;
^1da177e Linus Torvalds 2005-04-16  127  	unsigned long size;
^1da177e Linus Torvalds 2005-04-16  128  	int retval, loop;
^1da177e Linus Torvalds 2005-04-16  129  
^1da177e Linus Torvalds 2005-04-16  130  	if (params->hdr.e_phentsize != sizeof(struct elf_phdr))
^1da177e Linus Torvalds 2005-04-16  131  		return -ENOMEM;

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

             reply	other threads:[~2012-10-14  2:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14  2:34 Fengguang Wu [this message]
2012-10-15  4:26 ` [uapi:disintegrate-main 3/4] fs/binfmt_elf_fdpic.c:123:12: error: conflicting types for 'elf_fdpic_f Fengguang Wu

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=20121014023420.GE6795@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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 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.