From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751140AbdHCFes (ORCPT ); Thu, 3 Aug 2017 01:34:48 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34703 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbdHCFeq (ORCPT ); Thu, 3 Aug 2017 01:34:46 -0400 Subject: Re: [PATCH 0/3] constify char attribute_group structures To: "Gross, Mark" , "arnd@arndb.de" , "gregkh@linuxfoundation.org" References: <1501672745-2951-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: "linux-kernel@vger.kernel.org" From: Arvind Yadav Message-ID: <24f4fc72-47d9-ce26-18cf-abd8f5af4bcf@gmail.com> Date: Thu, 3 Aug 2017 11:04:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Wednesday 02 August 2017 11:26 PM, Gross, Mark wrote: > Why stop at these 3 users of attribute_group? I am doing for all. This changes is only for char user. Few patch are under review and few are merged. Rest all I will send. ~arvind > --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 >