]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_io.c: work around gcc bug
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 00:54:24 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 May 2014 06:58:33 +0000 (16:58 +1000)
commit9c837bf9600d7be6f7e3db3edc9915037cdd82f0
treee0d788cfd47f020eafce5a691f7d83d50927720b
parent07596af3807d43d9a63c5a21506e651810bf55c0
mm/page_io.c: work around gcc bug

gcc-4.4.4 (at least) screws up this initialization.

mm/page_io.c: In function '__swap_writepage':
mm/page_io.c:277: error: unknown field 'bvec' specified in initializer
mm/page_io.c:278: warning: excess elements in struct initializer
mm/page_io.c:278: warning: (near initialization for 'from')

Fixes f990bbc9bfa3cbd2d ("bio_vec-backed iov_iter").

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_io.c