All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [next:akpm 340/376] arch/mips/kernel/../../../fs/binfmt_elf.c:1419:2: error: implicit
Date: Fri, 21 Sep 2012 11:36:40 +0000	[thread overview]
Message-ID: <20120921113640.GA15444@localhost> (raw)

Hi Denys,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm
head:   69921c36f9e0e4e7952fa2583bf2d33713835eaf
commit: 0695d4b2814020d99191ba8b441ff8feeb92c878 [340/376] coredump: extend core dump note section to contain file names of mapped files
config: mips-fuloong2e_defconfig

[error]
arch/mips/kernel/../../../fs/binfmt_elf.c:1419:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
arch/mips/kernel/../../../fs/binfmt_elf.c:1419:7: error: assignment makes pointer from integer without a cast [-Werror]
arch/mips/kernel/../../../fs/binfmt_elf.c:1437:5: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]

vim +1419 arch/mips/kernel/../../../fs/binfmt_elf.c
  1403	{
  1404		struct vm_area_struct *vma;
  1405		unsigned count, size, names_ofs, remaining, n;
  1406		user_long_t *data;
  1407		user_long_t *start_end_ofs;
  1408		char *name_base, *name_curpos;
  1409	
  1410		/* *Estimated* file count and total data size needed */
  1411		count = current->mm->map_count;
  1412		size = count * 64;
  1413	
  1414		names_ofs = (2 + 3 * count) * sizeof(data[0]);
  1415	 alloc:
  1416		if (size >= MAX_FILE_NOTE_SIZE) /* paranoia check */
  1417			goto err;
  1418		size = round_up(size, PAGE_SIZE);
> 1419		data = vmalloc(size);
  1420		if (!data)
  1421			goto err;
  1422	
  1423		start_end_ofs = data + 2;
  1424		name_base = name_curpos = ((char*)data) + names_ofs;
  1425		remaining = size - names_ofs;
  1426		count = 0;
  1427		for (vma = current->mm->mmap; vma != NULL; vma = vma->vm_next) {

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

                 reply	other threads:[~2012-09-21 11:36 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=20120921113640.GA15444@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.