From patchwork Wed Jul 5 05:49:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9825871 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 AC5CB60317 for ; Wed, 5 Jul 2017 05:50:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 979CA2656B for ; Wed, 5 Jul 2017 05:50:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8822826E16; Wed, 5 Jul 2017 05:50:10 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85E1D2656B for ; Wed, 5 Jul 2017 05:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ghQMDR1SKjWbWqX/lpo+65VRNUmrTqhJV2vGT6I1dio=; b=cMx rPhIjdkVn0UTbPrdQLc36LmXPo5zRL51lSfO/COrrbP5+n/at0nx8mqnkZKPb2WQS3XngmlfmSx69 CEa4UfT17sxmv3xVY9KYBkUQeNMV8uVmFroTRPZHtj+lfHdiwVmvJCAxm7ACB+oXVqnmEh+pRBrOn ewG4tWyM+Q6PqsSaXUjqwJQqf7KQJwq4pl3Us+bc8D76k+Wz9CIaN+fibicjwK7jLTAONZaBYejPD LPzr7AdR7ksAPg7CiOIu6CHmfeCQR62qzffqmom2HYdMQnwkUJmD033sOoNJ2AELBDjTLyJWyTXjC mDKrdLaf3JlPZKBCyBzAeVE5ve4E8FQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dSdCP-0006z3-TI; Wed, 05 Jul 2017 05:50:05 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dSdCM-0006B0-WE for linux-arm-kernel@lists.infradead.org; Wed, 05 Jul 2017 05:50:04 +0000 Received: by mail-pg0-x243.google.com with SMTP id j186so29985200pge.1 for ; Tue, 04 Jul 2017 22:49:42 -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=/DDFfDJvi+jK6plm80VZKSbfCkgiQDJER8yxj9L1bB0=; b=kDZbfePV5Llwsm1YW1nq4j27FhlXJAToWrmOw4+a6EuFDJAyF5D7it73z6JQ8fWv+s CiENKeYwA+pvEcbOWYV6a4L9kitm5QASO3e+oRC2kfWCLgvKa/b5zrmPQxcWA4Vap+8P ww68txewuwfS9H1LPV16pMt6ULszTlwWwgDDcGsw6vBi/eSix9dp+Mpq9/h0+6f+Pjua hDUJqCSoXCYNkLicAZSMyCAArCbYzqb2x0YJHnkvBixEoKZvI0BdSI14p55wqmF54Cq/ e/ejz8ytHiKN4oj8T1PptO/B5WLng4Jv8m7XlarU56oDEk6veMK8gMWDQR8US3NKIbU0 AJgQ== 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=/DDFfDJvi+jK6plm80VZKSbfCkgiQDJER8yxj9L1bB0=; b=B3zDgOrWVcOxtXtE43FzsZi+IOWqz7WRkMTCTGwubnKypkVPG3m8EHW6jM0Maobe3N BbBJud3UCvLbMA/NpQ5mFLQ1Mbxo/APAM/ffKXoMRI1aDzlajPsrU/Ic2jm/VWMc6iqS hx9u1QreJClVYFcb0Fl/IYrdtQGgjSgXJPn/DO4VcnV06vsjJXxE5OtkY5lOQpIAYa1+ aE7uWxhR+gVzruJy4/eg3L5dulDz1zE/h2KVxvkj5Q4cfojQ9w899U+jiUDYri9PIg8l OvItdQEOXd9nbajTYyLhw4IwNmNMrxjPpjBeU8hVevqbUGjcYf3jSM6x65BqSP4kjgcF hg3w== X-Gm-Message-State: AIVw111nNXaNC5nA1ni/fvIEYz3fNbWUkkJJk5ZU2u/53aP2DPhsz7vV CEvWEk0YiPjRWw== X-Received: by 10.99.135.73 with SMTP id i70mr19482247pge.74.1499233781595; Tue, 04 Jul 2017 22:49:41 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id x65sm17408716pfa.107.2017.07.04.22.49.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Jul 2017 22:49:40 -0700 (PDT) From: Arvind Yadav To: gregkh@linuxfoundation.org, mathieu.poirier@linaro.org Subject: [PATCH] hwtracing: coresight: constify attribute_group structures. Date: Wed, 5 Jul 2017 11:19:24 +0530 Message-Id: <97ff1c3f7145b0e4326fbbb246579cd5382880b3.1499233557.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170704_225003_069575_ED31924D X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: text data bss dec hex filename 2573 288 296 3157 c55 coresight-etm-perf.o File size After adding 'const': text data bss dec hex filename 2613 224 296 3133 c3d coresight-etm-perf.o Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 288a423..e97775d 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -60,7 +60,7 @@ struct etm_event_data { NULL, }; -static struct attribute_group etm_pmu_format_group = { +static const struct attribute_group etm_pmu_format_group = { .name = "format", .attrs = etm_config_formats_attr, };