From: Jason Gunthorpe <jgg@ziepe.ca>
To: Souptick Joarder <jrdr.linux@gmail.com>
Cc: leon@kernel.org, dledford@redhat.com, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] RDMA/mlx5: Merge two enums into a single one
Date: Tue, 27 Aug 2019 12:52:39 -0300 [thread overview]
Message-ID: <20190827155239.GA15262@ziepe.ca> (raw)
In-Reply-To: <1566665546-8209-1-git-send-email-jrdr.linux@gmail.com>
On Sat, Aug 24, 2019 at 10:22:26PM +0530, Souptick Joarder wrote:
> These two enums can be merged into a single one wihtout effecting
> their caller if those were created without intension.
>
> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
> include/uapi/rdma/mlx5-abi.h | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5-abi.h
> index 624f5b53..c89363a 100644
> +++ b/include/uapi/rdma/mlx5-abi.h
> @@ -461,13 +461,10 @@ enum mlx5_ib_mmap_cmd {
> MLX5_IB_MMAP_DEVICE_MEM = 8,
> };
>
> -enum {
> - MLX5_IB_CLOCK_INFO_KERNEL_UPDATING = 1,
> -};
> -
> /* Bit indexes for the mlx5_alloc_ucontext_resp.clock_info_versions bitmap */
> enum {
> MLX5_IB_CLOCK_INFO_V1 = 0,
> + MLX5_IB_CLOCK_INFO_KERNEL_UPDATING = 1,
> };
The enums are used in different contexts, I don't think this is an
improvement
Jason
prev parent reply other threads:[~2019-08-27 15:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-24 16:52 [PATCH] RDMA/mlx5: Merge two enums into a single one Souptick Joarder
2019-08-27 15:52 ` Jason Gunthorpe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190827155239.GA15262@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=dledford@redhat.com \
--cc=jrdr.linux@gmail.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).