Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935233AbdGTLbU (ORCPT ); Thu, 20 Jul 2017 07:31:20 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33171 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933882AbdGTLbT (ORCPT ); Thu, 20 Jul 2017 07:31:19 -0400 From: Arvind Yadav To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, bp@alien8.de, tony.luck@intel.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/7] constify x86 attribute_group structures. Date: Thu, 20 Jul 2017 17:00:31 +0530 Message-Id: <1500550238-15655-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 24 attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by and 'uncore.h' work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (7): [PATCH v2 1/7] perf: x86: intel: uncore: constify attribute_group structures. [PATCH v2 2/7] perf: x86: intel: uncore: constify attribute_group structures. [PATCH v2 3/7] perf: x86: intel: uncore: constify attribute_group structures. [PATCH v2 4/7] perf: x86: intel: uncore: constify attribute_group structures. [PATCH v2 5/7] x86: ksysfs: constify attribute_group structures. [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures. [PATCH v2 7/7] x86: microcode: constify attribute_group structures. arch/x86/events/intel/uncore.c | 2 +- arch/x86/events/intel/uncore_nhmex.c | 12 ++++----- arch/x86/events/intel/uncore_snb.c | 6 ++--- arch/x86/events/intel/uncore_snbep.c | 42 ++++++++++++++++---------------- arch/x86/kernel/cpu/mcheck/therm_throt.c | 2 +- arch/x86/kernel/cpu/microcode/core.c | 4 +-- arch/x86/kernel/ksysfs.c | 4 +-- 7 files changed, 36 insertions(+), 36 deletions(-) -- 1.9.1