From patchwork Mon Jul 17 15:01:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 789550 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xB62D3rRSz9t1t for ; Tue, 18 Jul 2017 01:01:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="G912sDQe"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751402AbdGQPBc (ORCPT ); Mon, 17 Jul 2017 11:01:32 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34275 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbdGQPBb (ORCPT ); Mon, 17 Jul 2017 11:01:31 -0400 Received: by mail-pf0-f195.google.com with SMTP id o88so1772369pfk.1; Mon, 17 Jul 2017 08:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7xUJxXJNOY/V+bNNhx2eGFF3srY9dumkoYq1cCK0JKY=; b=G912sDQe7B+dsJsa6bTJgENpv05qR3MGsVK6Xo4iF4mHKQhsNeuP4o3PSvQ9yUteJz wuuO55/NQpiUMkNlNBt+MB387lmHqQlme0M9u+caeahYhcKMzq7rOMU15klIKygbFhqr uwXqYefizbzn67FGsNZom/kentj/0xIg/GK58juLvoYoSSaxF8C1gnudhtNtwHRTSVz3 g/yj1F6uxVqWxiXB7X7ObEro261kJ9TLYAqLPtUDvasEXj5j0wE9zMfPCJq4g2lJKFew k7QKyzEUpCHgu1zxCutt8PuVS2b5u+NvUt1xzvY3WZhF13QXPdDC3Jnh7iIE1OhBDJkU tEvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7xUJxXJNOY/V+bNNhx2eGFF3srY9dumkoYq1cCK0JKY=; b=Lt6HgbQ/qjP3JPKVWSzC07qoAl0c2rv3/rHgM2sAkvbSYM9QbjjCJNX184e2JZDBBY U2kjrMJn6/U4j945iuaIpfkyGFee+R4JYh913kc/rcAsqrdA5YC1pQKwf8zMi5etXVjf AUqmV1vSI36gisX2sfy7NXjO4zsxdDwEZ5nWKeDPmZpJMRlx0/s7duclZTQLpLfi/7qw adszBsxxLOowmK6tfPN976mArwF8IcgUj8UGi99iaeF3FPsw8Z0yq2JNYnAjSz2tGH7r 4Bk9Oa/y9MKv3RNglkQNYjWtSUuujsgUdoACAHm6xaa5jgc3f4bpKkJ6BZu0yMAYwqwh Bjlg== X-Gm-Message-State: AIVw110SJjPeheJEmAyiD1Ul0F0jJgMThEcdOyLXrvz1rHBJwEr533Z8 9xrSCa6dJksnyg== X-Received: by 10.98.64.129 with SMTP id f1mr19304273pfd.225.1500303690457; Mon, 17 Jul 2017 08:01:30 -0700 (PDT) Received: from gmail.com ([59.94.201.251]) by smtp.gmail.com with ESMTPSA id q88sm41147385pfa.10.2017.07.17.08.01.26 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 17 Jul 2017 08:01:29 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 17 Jul 2017 20:31:23 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] ixgbe: declare ixgbe_mac_operations structures as const Date: Mon, 17 Jul 2017 20:31:18 +0530 Message-Id: <1500303678-5403-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Declare ixgbe_mac_operations structures as const as they are only stored in the mac_ops field of ixgbe_info structure. This field is of type const and therefore ixgbe_mac_operations structure can be made const too. Signed-off-by: Bhumika Goyal --- drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c index 72d84a0..b290a0d 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c @@ -3858,7 +3858,7 @@ static s32 ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr, .write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550, }; -static struct ixgbe_mac_operations mac_ops_x550em_a = { +static const struct ixgbe_mac_operations mac_ops_x550em_a = { X550_COMMON_MAC .led_on = ixgbe_led_on_t_x550em, .led_off = ixgbe_led_off_t_x550em, @@ -3879,7 +3879,7 @@ static s32 ixgbe_write_phy_reg_x550a(struct ixgbe_hw *hw, u32 reg_addr, .write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550a, }; -static struct ixgbe_mac_operations mac_ops_x550em_a_fw = { +static const struct ixgbe_mac_operations mac_ops_x550em_a_fw = { X550_COMMON_MAC .led_on = ixgbe_led_on_generic, .led_off = ixgbe_led_off_generic,