Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1451586pxy; Mon, 2 Aug 2021 01:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqG5UJMu3QhB8pPgxrce08S/S8FLeXbfoZx7oArC02cjCBAP8UqAVXph9IlivIlusa4EZh X-Received: by 2002:a17:906:8443:: with SMTP id e3mr14808370ejy.46.1627893988246; Mon, 02 Aug 2021 01:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627893988; cv=none; d=google.com; s=arc-20160816; b=hSGz7ALG1ali2RzECjC9Zc0nBDIGBNbc2G3/wUE5bWuLXcGtA+Qia24UOJkg8ZqDeb VS29L/41WoEUPrgNETZbBi0+RTiIZGFWfGZVAOtoSm+k6M+ZRwE5T0v3LE9X57cLRqRj vNOtaC9gCZ4gXzqwVofyCDZMSljMpSDuadbfB34zX9Tgro+1dxl4pFrLoZoVPO926Q1W +yK0wnpCpzwWICPQ8N1qvodOdw3RdTW8EKZY8kQuUR5oQVVBGq/udyZh1M62HmCWmB4w T5MXRfEWZ9xcofUoBJSj16VjJQ6lJ1dV1XDVi20i1p07wcbNGB1aVa3e6txLxiu76IMI i1/g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6lZTaLHIR2jSPx8r7A/7KZT7VHTlf/7YC9o10dpANeA=; b=NdamkjzdgALq/joFoQHc6zCJV4cv2clBM0ANFgR+qZGbHaSIQ9KqMLD9Dd6rEscNXh 3yl4rqVFEaqMskpxReBmcl1ozzwH4EyTvTzKk3uasJrqtrcX+lCrI7HYan4xymbXZ3g6 7UeLNatkvA/L6uvcWdE2jmKknCKlLm46Me63q6rNlId1N86B3wgY+d57vJoDFE1Dx9cy CMHFH/J2qiY21xxmKjOV27bMWnEmCU6Q9rUWLxEXu5hy5B1wdtac265o7VKIgHbjFJtE enEP2fhL+wcEASRKoLhQnt4OeNm9cdHDkAgZ7XoBs+zZnR/mioSYmGjd6gRTsz5jbMcc xqpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pBUo81o9; 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 f17si8639553ejx.595.2021.08.02.01.46.05; Mon, 02 Aug 2021 01:46:28 -0700 (PDT) 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=pBUo81o9; 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 S232838AbhHBIol (ORCPT + 99 others); Mon, 2 Aug 2021 04:44:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:47026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232433AbhHBIol (ORCPT ); Mon, 2 Aug 2021 04:44:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6EF860F36; Mon, 2 Aug 2021 08:44:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627893872; bh=a0Ol5FJYZBzvBSF9YKlHzeUAeulWHdHeemhy3uNTjrE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pBUo81o9OOSOUC0vY6YZmcipzwLrswYka5Q7J+jswL9VfoiLzsJsHnqbR5VzDuapi NjDyHtsXBPgvLcuUSMWBei15L/6oCmhEMcIIRvHg2yztbvN+qdgsg+NSKZVefAJGh0 fPrvrDpMJcBhPv7qzzwdjEzz6VFSLeSAb85sSEdVfOoDVssjkhzrj26gP1lgwI3N3S aomd3IuCeJAUn+rcF7K8vumPosmKyDfJ8vwK3q82tN/UDu6dH/eVV+6IOBy7R7XHsj T7HO00Sld1CLTYV6n9cjCOlLH0+r1mshenBoGTSYXryUX6M6PR0r2NMEHbjCNBGLHp jlrhpJmDtF8RQ== Date: Mon, 2 Aug 2021 11:44:29 +0300 From: Leon Romanovsky To: Colin King Cc: Tariq Toukan , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx4: make the array states static const, makes object smaller Message-ID: References: <20210801153742.147304-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210801153742.147304-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 01, 2021 at 04:37:42PM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate the array states on the stack but instead it > static const. Makes the object code smaller by 79 bytes. > > Before: > text data bss dec hex filename > 21309 8304 192 29805 746d drivers/net/ethernet/mellanox/mlx4/qp.o > > After: > text data bss dec hex filename > 21166 8368 192 29726 741e drivers/net/ethernet/mellanox/mlx4/qp.o > > (gcc version 10.2.0) > > Signed-off-by: Colin Ian King > --- > drivers/net/ethernet/mellanox/mlx4/qp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky