Received: by 10.223.185.116 with SMTP id b49csp5495440wrg; Tue, 27 Feb 2018 14:31:29 -0800 (PST) X-Google-Smtp-Source: AH8x227SnKKN6L3T9QoB9m2ZiGaitc9wkPEKEIhzbg4XO41X+3/kTA5apnkfi8KOg+gDuNT9616b X-Received: by 2002:a17:902:b28b:: with SMTP id u11-v6mr15616798plr.146.1519770689440; Tue, 27 Feb 2018 14:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519770689; cv=none; d=google.com; s=arc-20160816; b=cdcTz9nEm/OIfX8v5eBwPw9QfqeFDHXygMZFkIa/f35mKkjipEQYyo23Hu+ttZcwLd JWtokSo7Q7C4nB8v1r8/l0MmvF1K74T7W7d7HTmuYxFinIXoREOiGld6GuePICDSYXr0 VUdit47+T1hohuEAmYWzWAJGXE+4hUvU4vdVKgW4j4+4ekEEA3S4hjuk7IqWNFf54ZEb PokfGLmYwTPKS9LTxqcX7UBqGimprosA/RcpJItiWmWPKsLQLzyas2g4EZuVdh0eRBCz T0qBaZVvEGZMM3Ej7Lu4n//FtMEpc7m9rqs7DKWfltu0C87/0tzb198MZHGK32PRtPhb 4vPA== 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=rGxWYgeEL5YfPK/mmSNQtcMUiHW5T98xB5hl9Ptjla4=; b=ZEBmCI5TRWDAAtt1/ZrB2NHxJNsy8MfPlsmLdRkby108JlepYkGs8sq1A6D9BzjUbt Jv2JzlfGD0j4p3wHgGe2iu2BIORwUrPRNiuxnxE6hSRG65bIrhmpm3x3XCKaiucgnDcb UYbKQIW5+ZatioBYbewZJBzoQ1pq3WE4oyjtw80Ro1l+RKjUDXQMp7dSN/UwZOGfDNfX gzRnIXuIJHKqzjAJa7aQJqj4eT3g8pEUW9/+CMyTBqzJg/R7lc9DLZN/niCSJjQWZ7Ke wGYDnCgh3u/sUgwQ5iFDnFb0qBN6YWdKL2goROlZwpgefU8LFcnkhvTNXdPfSWb8WEFm pyLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=EZYmqsZB; 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 g7si74562pfc.393.2018.02.27.14.31.14; Tue, 27 Feb 2018 14:31:29 -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=EZYmqsZB; 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 S1752441AbeB0W3n (ORCPT + 99 others); Tue, 27 Feb 2018 17:29:43 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34220 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752210AbeB0W3k (ORCPT ); Tue, 27 Feb 2018 17:29:40 -0500 Received: by mail-qt0-f193.google.com with SMTP id l25so616338qtj.1 for ; Tue, 27 Feb 2018 14:29:40 -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=rGxWYgeEL5YfPK/mmSNQtcMUiHW5T98xB5hl9Ptjla4=; b=EZYmqsZB2+vo0+5Xm/lFgV7yX/UyhmmsMetapRDGObl8ykV/BlJFyJOwU3cDfLiuxd 2gBhMH6zDd6zEiIQ3TJA3XEot60ANePLPKi6L3wBdJ2ARUajRL4qfsT6PPZf3x8hSmUP CsNLDwZriL9PwbEVxqjnqlTjBJthdklAHPzYoa+QIMPcS+Vym2l1fvtY/DR5pQIQybta sOJDnzN+Lwq3V/mSyDtDjSka8bvEwT3SDt01pP2RPGEH8zIzjfO7OCLs1JarT/SmmvUM kMtJh+bwSzBzja+PLzzHw6vWh9CPyCX1DutIZoeQ4ZZ/M8v6WS5a7PXG7SyEzsMPV7oV jn4Q== 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=rGxWYgeEL5YfPK/mmSNQtcMUiHW5T98xB5hl9Ptjla4=; b=qjjyUME7K6qh2miOVjMrtffMxFu4M+f1/nFiOjh54YFVpXeQo5CwP0DNtgOm48+e3A oiuyzWFJNwNrpOTavSxvHdYe8xrUTekp46JqPZCPuZ1FagaYvaETdXnYwfq8QXd/s21D rtTxOHdLDSAgMjcGxWsQcdcf35Wihp2BDGwdlS/4eYPMFtJAiYzEYCGJblGEo008uUUQ 6qtUx/82rQJzyq9VQwjlRHTb3f/mF4sKJfG3L2Z5cma4026+viSmg+WtpgWv5DUQixop +tnwVp2T99a6cmDsjUP57bX/1tO/jMT0bi5v42d/hSYCpNgoqIo10Nebb3rO/j3HzD3J 6LXA== X-Gm-Message-State: APf1xPDBin4WmNhqciceUi9OsB+eirWssFS12FhigfhIGR3wRE5wpnQ0 vBRbLC/wCURuoIPvV67px5C9xfZwDZ0= X-Received: by 10.200.33.251 with SMTP id 56mr25298451qtz.1.1519770579981; Tue, 27 Feb 2018 14:29:39 -0800 (PST) Received: from hlaptop.cpe.express.com.ar ([200.3.222.253]) by smtp.gmail.com with ESMTPSA id n28sm163738qki.49.2018.02.27.14.29.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 14:29:39 -0800 (PST) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: sathya.perla@broadcom.com, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH] emulex/benet: Constify *be_misconfig_evt_port_state[] Date: Tue, 27 Feb 2018 19:29:23 -0300 Message-Id: <1519770563-20603-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. No benefit gained except for some self-documenting. add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0) Function old new delta Total: Before=2757703, After=2757703, chg +0.00% Signed-off-by: Hernán Gonzalez --- drivers/net/ethernet/emulex/benet/be_cmds.c | 2 +- drivers/net/ethernet/emulex/benet/be_cmds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 1a49297..ff92ab1 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -19,7 +19,7 @@ #include "be.h" #include "be_cmds.h" -char *be_misconfig_evt_port_state[] = { +const char * const be_misconfig_evt_port_state[] = { "Physical Link is functional", "Optics faulted/incorrectly installed/not installed - Reseat optics. If issue not resolved, replace.", "Optics of two types installed – Remove one optic or install matching pair of optics.", diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h index 09da2d8..e8b43cf 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.h +++ b/drivers/net/ethernet/emulex/benet/be_cmds.h @@ -201,7 +201,7 @@ enum { phy_state == BE_PHY_UNQUALIFIED || \ phy_state == BE_PHY_UNCERTIFIED) -extern char *be_misconfig_evt_port_state[]; +extern const char * const be_misconfig_evt_port_state[]; /* async event indicating misconfigured port */ struct be_async_event_misconfig_port { -- 2.7.4