OSDN Git Service

drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 13 Mar 2018 22:06:45 +0000 (15:06 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 22:14:08 +0000 (18:14 -0400)
commit06892cc190550807d332c95a0114c7e175584012
treeb725cb2962fd448600e78691b3355d1324a7c14d
parent6ee687735e745eafae9e6b93d1ea70bc52e7ad07
drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4

gcc-4.4.4 has issues with initialization of anonymous unions:

drivers/infiniband/ulp/srpt/ib_srpt.c: In function 'srpt_zerolength_write':
drivers/infiniband/ulp/srpt/ib_srpt.c:854: error: unknown field 'wr_cqe' specified in initializer
drivers/infiniband/ulp/srpt/ib_srpt.c:854: warning: initialization makes integer from pointer without a cast

Work aound this.

Fixes: 2a78cb4db487 ("IB/srpt: Fix an out-of-bounds stack access in srpt_zerolength_write()")
Cc: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jason Gunthorpe <jgg@mellanox.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c