From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937014AbdCYCCd (ORCPT ); Fri, 24 Mar 2017 22:02:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbdCYCC2 (ORCPT ); Fri, 24 Mar 2017 22:02:28 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 87CA06A6B4 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dledford@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 87CA06A6B4 Message-ID: <1490407345.2404.36.camel@redhat.com> Subject: Re: [PATCH] uapi: fix rdma/mlx5-abi.h userspace compilation errors From: Doug Ledford To: "Dmitry V. Levin" , Saeed Mahameed , Matan Barak , Leon Romanovsky , Sean Hefty , Hal Rosenstock Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 24 Mar 2017 22:02:25 -0400 In-Reply-To: <20170224002813.GB31010@altlinux.org> References: <20170224002813.GB31010@altlinux.org> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sat, 25 Mar 2017 02:02:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2017-02-24 at 03:28 +0300, Dmitry V. Levin wrote: > Consistently use types from linux/types.h to fix the following > rdma/mlx5-abi.h userspace compilation errors: > > /usr/include/rdma/mlx5-abi.h:69:25: error: 'u64' undeclared here (not > in a function) >   MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, > /usr/include/rdma/mlx5-abi.h:69:29: error: expected ',' or '}' before > numeric constant >   MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, > > Include to fix the following rdma/mlx5-abi.h > userspace compilation error: > > /usr/include/rdma/mlx5-abi.h:286:12: error: 'ETH_ALEN' undeclared > here (not in a function) >   __u8 dmac[ETH_ALEN]; > > Signed-off-by: Dmitry V. Levin Thanks, applied. > --- >  include/uapi/rdma/mlx5-abi.h | 3 ++- >  1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5- > abi.h > index da7cd62..0b3d308 100644 > --- a/include/uapi/rdma/mlx5-abi.h > +++ b/include/uapi/rdma/mlx5-abi.h > @@ -34,6 +34,7 @@ >  #define MLX5_ABI_USER_H >   >  #include > +#include /* For ETH_ALEN. */ >   >  enum { >   MLX5_QP_FLAG_SIGNATURE = 1 << 0, > @@ -66,7 +67,7 @@ struct mlx5_ib_alloc_ucontext_req { >  }; >   >  enum mlx5_lib_caps { > - MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, > + MLX5_LIB_CAP_4K_UAR = (__u64)1 << 0, >  }; >   >  struct mlx5_ib_alloc_ucontext_req_v2 { -- Doug Ledford     GPG KeyID: B826A3330E572FDD     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD