From patchwork Thu Jun 22 12:12:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9804151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06BB960329 for ; Thu, 22 Jun 2017 12:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC6C528474 for ; Thu, 22 Jun 2017 12:13:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E11C928628; Thu, 22 Jun 2017 12:13:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A3028474 for ; Thu, 22 Jun 2017 12:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751806AbdFVMNY (ORCPT ); Thu, 22 Jun 2017 08:13:24 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33698 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbdFVMNW (ORCPT ); Thu, 22 Jun 2017 08:13:22 -0400 Received: by mail-pf0-f194.google.com with SMTP id w12so2658147pfk.0; Thu, 22 Jun 2017 05:13:17 -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=BKL5YRX4wAbpVolh1zjndI1vnD1jE6Ibc4b5JQPSZLw=; b=GUy1txfbz+yKjvVl1CpDyW5iAghDBbvcNxmmzG5fvirZVCgpZ4WYxX/SpqXlWEvi1w LG5Ou/J/Ps9YToAbBnzfmEso87+y0UjMOfM5pgxpN6MEOnHvHObGC7khqxDnrK6wsktv rzXR/0XtXjUSrwCE4FxiBzdNWoF7lZvLVJ9ByQJzpUvyujm2q/bgm1au93sOongY9Tls Jk4OXXRFqgP8w010+J1J5WT3qZSHH5O4qmn5b4Vgd81GGUAOPf9J/fk8fvOzCBCFfToD pmYWQDU8mUWItu4Ir+123nkbF1JtBfKV1utA1I7BBoNH8RBL4Ukx/UPYnYKHyKa7oeg2 cfBQ== 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=BKL5YRX4wAbpVolh1zjndI1vnD1jE6Ibc4b5JQPSZLw=; b=VNM0IxGpOV0zld3yRdjoHJN9GyCQeAaz5YCV5+tG9SdYni0nqthIyrQQFMekpEGtHV E1NU2DoTWeBrshp7fWOxGEPkNZlEUU7OVk2wCQrLyEAHKQMknoGl5t7lk663LkuXtE+/ EuhStPF6kmlpoERMgqQ+lyJTSe9aET5d348xlvQOGdSGwto401aKYzhEy1T21aCAS5k+ hxJ90rxIPcplwUKR8ExJ4y0sQzJTksbfi3d5LkOSE0J9e0j+V7PZTmuppiOQNRLdH79U qlLFZdvOhXpKzVhRzGkwbk7WhshW/WU4DALapWyk4x/0+cojRBkmOkGI+DUNXoUCR1av Eg6g== X-Gm-Message-State: AKS2vOwecSQWngqUEuUHwv3YvpRlJ2EIWXHM2VnqLpBJSU0KWBDm0axS 9jviPWl2T7HsEonYAIU= X-Received: by 10.84.254.78 with SMTP id a14mr2523134pln.69.1498133597082; Thu, 22 Jun 2017 05:13:17 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id b82sm3703411pfd.111.2017.06.22.05.13.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 05:13:16 -0700 (PDT) From: Arvind Yadav To: don.brace@microsemi.com, esc.storagedev@microsemi.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group Date: Thu, 22 Jun 2017 17:42:36 +0530 Message-Id: <23589a90f5c2c7b6d633f036b04edb0356284efc.1498133475.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP File size before: text data bss dec hex filename 40911 1432 304 42647 a697 drivers/block/cciss.o File size After adding 'const': text data bss dec hex filename 41039 1304 304 42647 a697 drivers/block/cciss.o Signed-off-by: Arvind Yadav --- drivers/block/cciss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index cd37550..8932cf6 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -853,7 +853,7 @@ static ssize_t cciss_show_usage_count(struct device *dev, NULL }; -static struct attribute_group cciss_host_attr_group = { +static const struct attribute_group cciss_host_attr_group = { .attrs = cciss_host_attrs, }; @@ -879,7 +879,7 @@ static ssize_t cciss_show_usage_count(struct device *dev, NULL }; -static struct attribute_group cciss_dev_attr_group = { +static const struct attribute_group cciss_dev_attr_group = { .attrs = cciss_dev_attrs, };