Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5988893imm; Wed, 12 Sep 2018 14:30:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaZTgvCl3no7KBzfx+dA4YFhGlNx3BtPzt5SqFrvBv9nV9GKaTbJ20XtwzO7j+cpLAmeRe5 X-Received: by 2002:a17:902:7794:: with SMTP id o20-v6mr4189842pll.116.1536787801919; Wed, 12 Sep 2018 14:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536787801; cv=none; d=google.com; s=arc-20160816; b=HTMerjTwOfGYnhZ1t+l+0oRZNZlNeDafKBPHRgu0avEBJ5Tu1SWFrb9WiTh59dNxP8 WbJe+NtpRqvoDdGX/ZUMp8J8Wqwdga0mQVdW/bsv4p4e6+uKT+Al1bOdtnPXA2tTRndT nE4rqy1dX3PD1fFtpDB3GB/2Y/aqayHz7DootwwuLAmr8t5em5t6rTqTTnsrNqpajJ5f UiuUjTxzBfC5PvttfqvuYCq9BFtIPiX+ZqhTsHsdynionZJw4mOW3DO7TWQjD71Iza20 AcOijKnw5YnGtM6SV31dTiM1JEevwG+YJhqBpKAjv8OXJ6qw1LRvZvpUjgPRVr2Jl15y yQuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=00e9lQyrk45Ak4ov8n6FolywEmLPIPuUuw1raf1csWY=; b=xSX4OgIIvUCTbm5xUBRFsrSoTFTrDFb6N+wcQ3rK+WqSKw1Muh3nHCGqB9E7pkeWYa vxcjsrWmemjmxIvdPA7hay0wn3HohG+oZz8NLC2x66w//9FkAXoU85hslBzlqx9bW0ZA MkQgAA0PftzWHgZk41qGLnDq+Mp4OYelMZjXK1LQO+O4Lo7xgqwrZ3CQdVdaYnMeyiF2 9duHa+hdoH7X1c67d9oathUhQsb03JS/LRhcVrIsMrYqpqJFOdYv/VESaikjbkmuWqX6 jRlUspk+UpmbVOTM0WFvhEVZKEg/MhfXsojDTr11CoIBrnp6lsKmPjOlfTvgcd7IRqnL R1gQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w26-v6si1441251pgl.340.2018.09.12.14.29.46; Wed, 12 Sep 2018 14:30:01 -0700 (PDT) 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; 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 S1727869AbeIMCej (ORCPT + 99 others); Wed, 12 Sep 2018 22:34:39 -0400 Received: from terminus.zytor.com ([198.137.202.136]:39483 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbeIMCei (ORCPT ); Wed, 12 Sep 2018 22:34:38 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8CLRqxX2779001 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Sep 2018 14:27:52 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8CLRpj82778998; Wed, 12 Sep 2018 14:27:51 -0700 Date: Wed, 12 Sep 2018 14:27:51 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Zubin Mithra Message-ID: Cc: torvalds@linux-foundation.org, groeck@chromium.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, zsm@chromium.org, peterz@infradead.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, groeck@chromium.org, torvalds@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, zsm@chromium.org In-Reply-To: <20180912164510.23444-1-zsm@chromium.org> References: <20180912164510.23444-1-zsm@chromium.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/x86/intel/pt: Annotate 'pt_cap_group' with __ro_after_init Git-Commit-ID: 49e73246cbe6fe0df9cae2db87f31cdc3a0b2b61 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 49e73246cbe6fe0df9cae2db87f31cdc3a0b2b61 Gitweb: https://git.kernel.org/tip/49e73246cbe6fe0df9cae2db87f31cdc3a0b2b61 Author: Zubin Mithra AuthorDate: Wed, 12 Sep 2018 09:45:10 -0700 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 21:16:16 +0200 perf/x86/intel/pt: Annotate 'pt_cap_group' with __ro_after_init 'pt_cap_group' is written to in pt_pmu_hw_init() and not modified after. This makes it a suitable candidate for annotating as __ro_after_init. Signed-off-by: Zubin Mithra Reviewed-by: Guenter Roeck Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: keescook@chromium.org Link: http://lkml.kernel.org/r/20180912164510.23444-1-zsm@chromium.org Signed-off-by: Ingo Molnar --- arch/x86/events/intel/pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 8d016ce5b80d..3a0aa83cbd07 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -95,7 +95,7 @@ static ssize_t pt_cap_show(struct device *cdev, return snprintf(buf, PAGE_SIZE, "%x\n", pt_cap_get(cap)); } -static struct attribute_group pt_cap_group = { +static struct attribute_group pt_cap_group __ro_after_init = { .name = "caps", };