freebsd-dev/sys/dev/mthca
Hans Petter Selasky c3987b8ea7 ibcore: Declare ib_post_send() and ib_post_recv() arguments const
Since neither ib_post_send() nor ib_post_recv() modify the data structure
their second argument points at, declare that argument const. This change
makes it necessary to declare the 'bad_wr' argument const too and also to
modify all ULPs that call ib_post_send(), ib_post_recv() or
ib_post_srq_recv(). This patch does not change any functionality but makes
it possible for the compiler to verify whether the
ib_post_(send|recv|srq_recv) really do not modify the posted work request.

Linux commit:
f696bf6d64b195b83ca1bdb7cd33c999c9dcf514
7bb1fafc2f163ad03a2007295bb2f57cfdbfb630
d34ac5cd3a73aacd11009c4fc3ba15d7ea62c411

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:33 +02:00
..
mthca_allocator.c
mthca_av.c
mthca_catas.c
mthca_cmd.c mlx4, mthca: Silence warnings about no-op alignment operations 2021-02-11 10:16:59 -05:00
mthca_cmd.h
mthca_config_reg.h
mthca_cq.c
mthca_dev.h ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mthca_doorbell.h
mthca_eq.c
mthca_mad.c mthca: clean up empty lines in .c and .h files 2020-09-01 22:06:07 +00:00
mthca_main.c
mthca_mcg.c
mthca_memfree.c
mthca_memfree.h mlx4, mthca: Silence warnings about no-op alignment operations 2021-02-11 10:16:59 -05:00
mthca_mr.c mthca: clean up empty lines in .c and .h files 2020-09-01 22:06:07 +00:00
mthca_pd.c
mthca_profile.c
mthca_profile.h
mthca_provider.c
mthca_provider.h
mthca_qp.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mthca_reset.c
mthca_srq.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mthca_uar.c
mthca_user.h
mthca_wqe.h