Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716422

Re: [PATCH 0/6] drivers: make device_attribute const

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Bhumika Goyal <bhumirks@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/6] drivers: make device_attribute const
Date Mon, 21 Aug 2017 15:00:01 +0200
Message-ID <ugUtb-4t7-1@gated-at.bofh.it> (permalink)
References <ugTnr-3Rl-5@gated-at.bofh.it> <ugU0a-4jm-23@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zcRS6LMoT2Bzk46rasXudZ2lEDS8dkQZ/l4k+cS3Jeg=; b=WQYTRDjj/DUufb8R62NMkNsssT4a+Z0gROJd8kI6po6rJeCliQcyGIGSuvpFKkY+y/ a9nHqmG06EsD1RtZg6RPY03FKVm5UMWt6jdqQN5St93huTqHMw9hlVp/3N3GP4tsQh49 67cuLPbZB8C4MG3eObyykRcdBKj1Es0H/GjMiPiTMM1cJNF0pNvLcWGIp/egMbXYoU6g 559n+Jnr5eCWQPp28UxqLItfvypbecLtTc89Zq3BNxVfVK+o+FI8YJGLZEkyOIwp543E pNlvmWo41MZb5GDh+1R18grIw/4YOQXfzM+oNwMmiFk7L3swpRu1YQ6FpDVCLvCL5zil 2sTg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zcRS6LMoT2Bzk46rasXudZ2lEDS8dkQZ/l4k+cS3Jeg=; b=Lqr4vukxy0e3ZDhZjnzeoGl88S/3Dr7cQmWWI9kKQUPkcn/D1d+XBBjOqKrRnsLvx4 ivyGfgwMFvVKuNuipWepdDch8AystX14fuq+/16A9MRY+E06tHnWkRVlQcoUKGGDqdXu Kevbyb0S0FThqgJ+ZYtNzS6xl2ZAvMlOzwxZRhP86IfhMQw6reTPFnit21qaJ+dIR38y jjmX7Dkdpnx2nuWllWmh71woj34HveBVYb2jVZ5aBmmU0HxQojr75pH07hCVRChUDQAT URUV1ytZONLl+9PrOMjCi9Xzg+JsF8u064lNDwI+CDG1TY3sIG/JksAOifaKHinvC0xH 06mA==
X-Gm-Message-State AHYfb5iHhCzxeQ1+QkRyBjKl8qmIQPZ8RThruPaNWLYAJGyiLDT96FjC Bz3cwnvpITlD8D//8lPhQsSw1ugd79K1uK4=
X-Received by 10.107.167.210 with SMTP id q201mr422137ioe.347.1503320252022; Mon, 21 Aug 2017 05:57:32 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 68
Organization linux.* mail to news gateway
X-Original-Cc Julia Lawall <julia.lawall@lip6.fr>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, jbacik@fb.com, Jiri Kosina <jikos@kernel.org>, Benjamin Tissoires <benjamin.tissoires@redhat.com>, manish.chopra@cavium.com, rahul.verma@cavium.com, Dept-GELinuxNICDev@cavium.com, harish.patil@cavium.com, cascardo@holoscopio.com, don@syst.com.br, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, Sebastian Reichel <sre@kernel.org>, ACPI Devel Maling List <linux-acpi@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-block@vger.kernel.org, nbd-general@lists.sourceforge.net, linux-input@vger.kernel.org, netdev@vger.kernel.org, Platform Driver <platform-driver-x86@vger.kernel.org>, Linux PM <linux-pm@vger.kernel.org>
X-Original-Date Mon, 21 Aug 2017 18:27:31 +0530
X-Original-Message-ID <CAOH+1jGD1XSAqTHsq_9LEQKKMTNXA63f3vbB1cY9WR39WVh9tQ@mail.gmail.com>
X-Original-References <1503315792-14837-1-git-send-email-bhumirks@gmail.com> <CAJZ5v0jo6q5mniU2HihHcOSqggZ8HFy3mtuo0vXYwuc2tLQ7=w@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1716422

Show key headers only | View raw


On Mon, Aug 21, 2017 at 5:58 PM, Rafael J. Wysocki <rafael@kernel.org> wrote:
> On Mon, Aug 21, 2017 at 1:43 PM, Bhumika Goyal <bhumirks@gmail.com> wrote:
>> Make these const. Done using Coccinelle.
>>
>> @match disable optional_qualifier@
>> identifier s;
>> @@
>> static struct device_attribute s = {...};
>>
>> @ref@
>> position p;
>> identifier match.s;
>> @@
>> s@p
>>
>> @good1@
>> identifier match.s;
>> expression e1;
>> position ref.p;
>> @@
>> device_remove_file(e1,&s@p,...)
>>
>> @good2@
>> identifier match.s;
>> expression e1;
>> position ref.p;
>> @@
>> device_create_file(e1,&s@p,...)
>>
>>
>> @bad depends on  !good1 && !good2@
>> position ref.p;
>> identifier match.s;
>> @@
>> s@p
>>
>> @depends on forall !bad disable optional_qualifier@
>> identifier match.s;
>> @@
>> static
>> + const
>> struct device_attribute s;
>>
>> Bhumika Goyal (6):
>>   ACPI: make device_attribute const
>>   nbd: make device_attribute const
>>   hid: make device_attribute const
>>   qlogic:  make device_attribute const
>>   platform/x86: make device_attribute const
>>   power: supply: make device_attribute const
>
> It would be better to send these patches separately, because they
> touch code maintained by different people and I guess no one will take
> the whole series.
>
> I'll take care of the ACPI one, but the rest needs to go in via their
> proper trees.
>

Thanks for the note. From now onwards, I will send it separately
depending on the maintainers. But is possible please consider it this
time.

Thanks,
Bhumika

> Thanks,
> Rafael

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] drivers:  make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 13:50 +0200
  [PATCH 2/6] nbd: make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 13:50 +0200
  [PATCH 3/6] hid: make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 13:50 +0200
  [PATCH 4/6] qlogic:  make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 13:50 +0200
    Re: [PATCH 4/6] qlogic: make device_attribute const David Miller <davem@davemloft.net> - 2017-08-21 19:30 +0200
      Re: [PATCH 4/6] qlogic: make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 19:30 +0200
  Re: [PATCH 0/6] drivers: make device_attribute const "Rafael J. Wysocki" <rafael@kernel.org> - 2017-08-21 14:30 +0200
    Re: [PATCH 0/6] drivers: make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 15:00 +0200
  Re: [PATCH 0/6] drivers: make device_attribute const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-21 15:00 +0200

csiph-web