Received: by 10.223.185.116 with SMTP id b49csp5497142wrg; Tue, 27 Feb 2018 14:33:42 -0800 (PST) X-Google-Smtp-Source: AH8x226FL2aW7AvUrw1beNYRqusP0FdTrIHMeI3Ob5U9aJy9+AeP5QX7f5vs2kr9zLkrk9U3auUJ X-Received: by 10.99.150.2 with SMTP id c2mr12731878pge.424.1519770822280; Tue, 27 Feb 2018 14:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519770822; cv=none; d=google.com; s=arc-20160816; b=nhRKGgSdosrLLivfXdPmjZ3sswjgctsod26EtGH8KTWFEx86r/qmyXDY9w9J7xcgZw Jj72Qk27i97QDoqZ/KSQyhnuWtvNSAaPe6g1KL949ph5jZhcUH+xqA6z14+xtC6Wvm5W NMIf+h4RkdDDA0NFMdsHcPGnMr5hssYl3yt/M/2Hh1hNIZ/ttjo9FrArVyQMhMxUgO7R 51yLJVgK0/967Pq7AW3ZQgp5VjdwdZIZew6B02LR5AxThvqfOXWBlAMi7CuxmCZuezp0 ROKt68HCu0R2dXMGYZBhohqBL/o2atMQCTgNz+WwLisNNYgu/pDUbIjt8KVjQAFrM6ww yKHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=j7brPLCt81yH+6TQgKHs6c7b1ezc3/Qm8HCfog/YsAg=; b=nWzvs9od13kWB5NF7+EyReUKXwT4rG85AppfIJAC1ykIa9J9H/VhhNqY+FOSo7rvkU YTfENOULmnqbIL4FZi7OKW8/Jf48bnDp/ISXaTnGaODzU9ZWank5QV870K/GLaGr9+gM MASBcgT0yRmq9jlCPjwymDqa/2w/sRpxlkJx9pHvKW7sPRCb+93r85HHXfXjayvYiMUJ hrKodVcB5f/bfMZc9F+2rQzAv428TMDDFo1f2uqcfRt7PFpcYsCQjW9jXJEpta5NrPA+ XezymUlsSOq2C0FDOawZrdxR5oVF7ShyeBSB1p8q6ime2AZN293Qz8qwWwQEj2Ol/OXW 5PSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=rpQIrEWA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si138684plc.814.2018.02.27.14.33.27; Tue, 27 Feb 2018 14:33:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=rpQIrEWA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752043AbeB0Wbv (ORCPT + 99 others); Tue, 27 Feb 2018 17:31:51 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36876 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbeB0Wbs (ORCPT ); Tue, 27 Feb 2018 17:31:48 -0500 Received: by mail-qk0-f194.google.com with SMTP id y137so628198qka.4 for ; Tue, 27 Feb 2018 14:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j7brPLCt81yH+6TQgKHs6c7b1ezc3/Qm8HCfog/YsAg=; b=rpQIrEWA0swyTZ6MAgdjsUnZN+S/bd7GTu1SlBhYoYUh1jQNnf8szAsQ9sdhv+yJ9S 9CvFPoznRUfSvIjsZJAfbi20fKNb7mfSbitLsBXAJ4DEIqyskw8xb3jC0F11rZ9dluFS RByITAg2lonxSrUPktqE61oO+pcrlBdDBqHxvZn5mJJzhcgRHjxEjqhcOwgcS+ZlvnJK KKlZOpOBbwLD2LwoiKeRb4C4gcWsmZsb2RrWX8V5kM9EvUXBdaznUK6k2HMl2OK1CQP2 5Go2clCY5J3sugMPHJIcvi0cLalrXPu2jk+LzPwSN2nxpabVu/jzzb4tWH3pvgfrn1P9 4K2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j7brPLCt81yH+6TQgKHs6c7b1ezc3/Qm8HCfog/YsAg=; b=WyzTK0VCG6wu4JqfTNgKCMry0+2O97SLw6GORUe030RbEtnk44YiUs9obQHnDf3dpa PpYi/MglUoIFItwq4D9w85NVkKeNcMYUV+HtVT5xooooJhbu5sAkVg8WzD+45mg/mHZI gWZi153TMuciY/5tMqPCA1nU1EcZ2zVAn55c5JnV88duVTCrRRwd2ugnhA54lCfNF1CI 5bO56Behq7C7jKVwmaQOF8TEHtiYi50ZzPBS8wHAfNpWuj6i6H/+vNFhKonUT/OW8rS0 qFNZZLHgjaPvGMpqwwG73mD7gkRhmtUW5Dhtux9XIxN89fDCqQDJ6PP+2IeEDQgEbZhJ 26RQ== X-Gm-Message-State: APf1xPD9kCYTFo9d7kyaDNmgBvA9bFYxTngtdJsHxLzJnY9pGj4C8T3R WZ96voUHPoel3U7ksgqvKjXItw== X-Received: by 10.55.58.6 with SMTP id h6mr25957163qka.291.1519770707411; Tue, 27 Feb 2018 14:31:47 -0800 (PST) Received: from hlaptop.cpe.express.com.ar ([200.3.222.253]) by smtp.gmail.com with ESMTPSA id q24sm157095qkq.75.2018.02.27.14.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 14:31:46 -0800 (PST) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: Ariel.Elior@cavium.com, everest-linux-l2@cavium.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH] qlogic/qed: Constify *pkt_type_str[] Date: Tue, 27 Feb 2018 19:31:34 -0300 Message-Id: <1519770694-20678-1-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: This is compile only tested as I have no access to the hw. Constifying and declaring as static saves 24 bytes. add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-24 (-24) Function old new delta pkt_type_str 24 - -24 Total: Before=3599256, After=3599232, chg -0.00% Signed-off-by: HernĂ¡n Gonzalez --- drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c index ca4a81d..03ad4ee 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c @@ -1784,7 +1784,7 @@ enum qed_iwarp_mpa_pkt_type { /* fpdu can be fragmented over maximum 3 bds: header, partial mpa, unaligned */ #define QED_IWARP_MAX_BDS_PER_FPDU 3 -char *pkt_type_str[] = { +static const char * const pkt_type_str[] = { "QED_IWARP_MPA_PKT_PACKED", "QED_IWARP_MPA_PKT_PARTIAL", "QED_IWARP_MPA_PKT_UNALIGNED" -- 2.7.4