]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_io.c: work around gcc bug
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 14 May 2014 00:07:50 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 16 May 2014 06:39:08 +0000 (16:39 +1000)
commitc9fd00c3d2112733418cd02ec7897c90bcfe2d34
tree5aba6f513d345168f953fa4dd0403c42d84730e9
parent24e4874943679db5ac9a8637fbb4b48b6c5963c6
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