Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3744224pxu; Tue, 8 Dec 2020 22:26:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrnjrQFEru+236Vsk6zQNeToUeBMStAMogykoLipsGBjMDI3oZfmhN0lB2bvCkAWHBIinj X-Received: by 2002:a17:906:7d91:: with SMTP id v17mr803878ejo.522.1607495179918; Tue, 08 Dec 2020 22:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607495179; cv=none; d=google.com; s=arc-20160816; b=uF81qwUnXGErOUfghsqmUNF3fdHBFwe2newA0BAjMr0o6f/YoPdpGtt9guGI2t2dUZ hBI/SylfYZXX/NGDohdDNm9fkKUboSc6NtiT+TVkw2hMJ9FNBxs+0tL3Q8l9CuRsiXs5 XsZXjUexZF/uu2hNIwX9NSikxDiBEubMUgwflN5+/EIR2nmvX+vmgDC1LDacqOiC+/RJ PPWFat89yvFSOt47MH28coGXfLdH/S9+p7vfck1w61vPG477tvERmCrM1scDC5/U3fi1 REUykN7wdIg4W2JWohjaJjKSbKfBkRenE40ftriIDtdj4nszFQvM8LOmny8JNy6Fc0Vo E6Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=MCTxKQZ1arKheIRUdyWqSf6H+xspEIcZ1hZpPqQ1E+U=; b=Q1NFlGf25yNlDvigft97GoLa+7HtvCkPz8NMbo2LSe8kupX4s44sPBmtLLlz1M1r6d ff6kZmR9NUv2R64/1eZFVRJQQFcbX1MPOs3u/UC/7VIBvshnBrHCtX3Zy7wpsNVt6ebu JNNVE5xOG7kjH94C8B2I+C1hx0hVbPkG0RwwoHub+8SD/5SneTyK+08ww7vKWEJgYS9I rXxhWQ571nJwXW9nrrcZIQpgvTYBiS0z165uGA6TWr3jQ9r07389OB1lDSxgSD1mjO7W 2i4JMNjiDA/uKfmyHwsNO+kDlZgAr/oDnx9eLP95GX5NHXErQbpzEEfsfMp9XlHz3UKo FjOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ji0d8dHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si327339edg.223.2020.12.08.22.25.55; Tue, 08 Dec 2020 22:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ji0d8dHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727990AbgLIGVq (ORCPT + 99 others); Wed, 9 Dec 2020 01:21:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:59228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbgLIGVp (ORCPT ); Wed, 9 Dec 2020 01:21:45 -0500 Date: Wed, 9 Dec 2020 08:21:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607494864; bh=/JNDa/e+VUwp3PfZgTT/W850EJGQatfgwghGNsJk2LQ=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=ji0d8dHw/kMB7xyQ82EN1q6oQoQAasEjgmwq5I6KApROX2vY9gOZlP+if/FvCyTWF rXbBXFTa6zEVoPfMXv8WcD6LL4vHR3nfo5iml9n6N6HqbgTvDMMJfOHKXJ1bFg9AGv LK26PAN/WcWIr8R+X8WpIU4ToKbbQdDNWnsoSjP/b8TXtP948naZJGjt4qEcSYML+j PNmInj2LwZP8tbhzmEtQm71r0DW0TCZqUgD+z5o2ns8MNgsCWGB79atKwHj8yAMspE UtfOTTe7GATdFgRn21B0M1J60Neq7QCUg3H3mk3khw19AnYlZh7VIIaSw94onDNjR/ wbljBNs3OX4oQ== From: Leon Romanovsky To: Jakub Kicinski Cc: Zou Wei , saeedm@nvidia.com, davem@davemloft.net, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] net/mlx5_core: remove unused including Message-ID: <20201209062100.GK4430@unreal> References: <1607343240-39155-1-git-send-email-zou_wei@huawei.com> <20201208112226.1bb31229@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201208112226.1bb31229@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 08, 2020 at 11:22:26AM -0800, Jakub Kicinski wrote: > On Mon, 7 Dec 2020 20:14:00 +0800 Zou Wei wrote: > > Remove including that don't need it. > > > > Signed-off-by: Zou Wei > > --- > > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c > > index 989c70c..82ecc161 100644 > > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c > > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c > > @@ -30,7 +30,6 @@ > > * SOFTWARE. > > */ > > > > -#include > > #include > > #include > > #include Jakub, You probably doesn't have latest net-next. In the commit 17a7612b99e6 ("net/mlx5_core: Clean driver version and name"), I removed "strlcpy(drvinfo->version, UTS_RELEASE, sizeof(drvinfo->version));" line. The patch is ok, but should have Fixes line. Fixes: 17a7612b99e6 ("net/mlx5_core: Clean driver version and name") Thanks > > > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function ‘mlx5e_rep_get_drvinfo’: > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:66:28: error: ‘UTS_RELEASE’ undeclared (first use in this function); did you mean ‘CSS_RELEASED’? > 66 | strlcpy(drvinfo->version, UTS_RELEASE, sizeof(drvinfo->version)); > | ^~~~~~~~~~~ > | CSS_RELEASED > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:66:28: note: each undeclared identifier is reported only once for each function it appears in > make[6]: *** [drivers/net/ethernet/mellanox/mlx5/core/en_rep.o] Error 1 > make[5]: *** [drivers/net/ethernet/mellanox/mlx5/core] Error 2 > make[4]: *** [drivers/net/ethernet/mellanox] Error 2 > make[3]: *** [drivers/net/ethernet] Error 2 > make[2]: *** [drivers/net] Error 2 > make[2]: *** Waiting for unfinished jobs.... > make[1]: *** [drivers] Error 2 > make: *** [__sub-make] Error 2