https://github.com/torvalds/linux
Revision 06ed4625fdfffee1251708cd30de276186d5fdcf authored by Sergei Trofimovich on 25 August 2011, 22:59:01 UTC, committed by Linus Torvalds on 25 August 2011, 23:25:33 UTC
Found on allmodconfig build (ARCH=alpha)

    drivers/misc/pti.c: In function 'get_id':
    drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc'
    drivers/misc/pti.c: In function 'pti_char_write':
    drivers/misc/pti.c:658: error: implicit declaration of function 'copy_from_user'

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: J Freyensee <james_p_freyensee@linux.intel.com>
Cc: Jeremy Rocher <rocher.jeremy@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b4ca46e
Raw File
Tip revision: 06ed4625fdfffee1251708cd30de276186d5fdcf authored by Sergei Trofimovich on 25 August 2011, 22:59:01 UTC
drivers/misc/pti.c: add missing includes
Tip revision: 06ed462
elfcore.c
#include <linux/elf.h>
#include <linux/fs.h>
#include <linux/mm.h>

#include <asm/elf.h>


Elf_Half __weak elf_core_extra_phdrs(void)
{
	return 0;
}

int __weak elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
				      unsigned long limit)
{
	return 1;
}

int __weak elf_core_write_extra_data(struct file *file, size_t *size,
				     unsigned long limit)
{
	return 1;
}

size_t __weak elf_core_extra_data_size(void)
{
	return 0;
}
back to top