From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbdHBR70 convert rfc822-to-8bit (ORCPT ); Wed, 2 Aug 2017 13:59:26 -0400 Received: from mga11.intel.com ([192.55.52.93]:56776 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbdHBR7Z (ORCPT ); Wed, 2 Aug 2017 13:59:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,312,1498546800"; d="scan'208";a="294819815" From: "Gross, Mark" To: Arvind Yadav , "arnd@arndb.de" , "gregkh@linuxfoundation.org" CC: "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/3] constify char attribute_group structures Thread-Topic: [PATCH 0/3] constify char attribute_group structures Thread-Index: AQHTC4FAKoNBWaCb5kqsAcNT4YyEFaJxWiZw Date: Wed, 2 Aug 2017 17:56:25 +0000 Message-ID: References: <1501672745-2951-1-git-send-email-arvind.yadav.cs@gmail.com> In-Reply-To: <1501672745-2951-1-git-send-email-arvind.yadav.cs@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Why stop at these 3 users of attribute_group? --mark -----Original Message----- From: Arvind Yadav [mailto:arvind.yadav.cs@gmail.com] Sent: Wednesday, August 2, 2017 4:19 AM To: arnd@arndb.de; gregkh@linuxfoundation.org; Gross, Mark Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/3] constify char attribute_group structures attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] char: tlclk: constify attribute_group structures. [PATCH 2/3] char: tpm: constify attribute_group structures. [PATCH 3/3] char: virtio: constify attribute_group structures. drivers/char/tlclk.c | 2 +- drivers/char/tpm/tpm_ppi.c | 2 +- drivers/char/virtio_console.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1