Thread (2 messages) 2 messages, 2 authors, 2012-08-31

Re: [josef-btrfs:master 29/29] fs/btrfs/backref.c:1586:2: error: implicit declaration of function 'vmalloc'

From: Josef Bacik <hidden>
Date: 2012-08-31 15:01:43
Also in: kernel-janitors

On Fri, Aug 31, 2012 at 08:47:16AM -0600, Fengguang Wu wrote:
Hi Liu,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git master
head:   8ccfefeea39d6ee32ad312b1fd3b8eeb19de9265
commit: 8ccfefeea39d6ee32ad312b1fd3b8eeb19de9265 [29/29] Btrfs: use larger limit for translation of logical to inode
config: x86_64-randconfig-h842 (attached as .config)

All related error/warning messages:

fs/btrfs/backref.c: In function 'init_data_container':
fs/btrfs/backref.c:1586:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
fs/btrfs/backref.c:1586:7: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors

vim +1586 fs/btrfs/backref.c
  1583		size_t alloc_bytes;
  1584	
  1585		alloc_bytes = max_t(size_t, total_bytes, sizeof(*data));
quoted
1586		data = vmalloc(alloc_bytes);
  1587		if (!data)
  1588			return ERR_PTR(-ENOMEM);
  1589	
Good lord Fengguang I just pushed that out 45 minutes ago.  I will fix and push
it out, thanks!

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help