Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1729017
| Path | csiph.com!goblin3!goblin.stu.neva.ru!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position |
| Date | Fri, 08 Sep 2017 17:20:02 +0200 |
| Message-ID | <untey-nf-19@gated-at.bofh.it> (permalink) |
| References | <un3tM-7Qh-5@gated-at.bofh.it> <un3tM-7Qh-25@gated-at.bofh.it> <un3N8-8dO-17@gated-at.bofh.it> |
| Dkim-Filter | OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com v88FBHU1018069 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1504883478; bh=smEkTAHZgttVdH6rWdOFkVw+dv334g/SHM86rwWfrws=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=kPu9Ge4ra97UASHLMZ63aM1mOmlrPbSuXRyS9C7SFfsXIiZqC5/+AIxWZLiSgyQT7 5cW78oCS7dHSnaQmdTPPvQYdh88/3W3AROnPgliQMlDEu4Qkxxh6j+1XAt+n4uXebY 4w1fdqNhYBVH7HpwpMNhmm7kBUkkn1R9JSYa22poJ8cECnSBIXhQUOJ0JThStqqRrs jJDbBVyJ9fAoh/iZd+F2J4n0vEAymrinplen9Le2FmGcA3Uz1j4SnNTmK2J8D2GOZ6 /ju2yl1GUIRuUIakN0WfUHRo74ijBLElMfxd1COMTqlZhyOq5qyFsUt3FsO+cPruoR Kb+akjebN5LSA== |
| X-Nifty-Srcip | [209.85.161.172] |
| X-Gm-Message-State | AHPjjUhzutZiRYwmFg+6HCcKvOlYeYXwGy9Lg2H5787d3pMWxULumwLm /ltzyhTlSChd3/1MsexQqF2VA6Lb6Q== |
| X-Google-SMTP-Source | ADKCNb7woqtIKImEZUX/LE6V9U4b8Ahusflh4QpBv2/ldhv0BOhRgRVoTeaYWPoNdb1zK0JKBmdFQyzSySwkMeariTQ= |
| X-Received | by 10.129.121.4 with SMTP id u4mr2871647ywc.71.1504883476759; Fri, 08 Sep 2017 08:11:16 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Gmail-Original-Message-ID | <CAK7LNASbNE9RvMucma=48CDFGQ2L4i=ktqs-fMzgZwWJvdUMMA@mail.gmail.com> |
| 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 | 60 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Thomas Gleixner <tglx@linutronix.de>, Linus Walleij <linus.walleij@linaro.org>, linux-gpio@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Jassi Brar <jaswinder.singh@linaro.org>, devicetree@vger.kernel.org, Jason Cooper <jason@lakedaemon.net>, Masami Hiramatsu <mhiramat@kernel.org>, David Daney <david.daney@cavium.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org> |
| X-Original-Date | Sat, 9 Sep 2017 00:10:36 +0900 |
| X-Original-Message-ID | <CAK7LNASbNE9RvMucma=48CDFGQ2L4i=ktqs-fMzgZwWJvdUMMA@mail.gmail.com> |
| X-Original-References | <1504784522-26841-1-git-send-email-yamada.masahiro@socionext.com> <1504784522-26841-4-git-send-email-yamada.masahiro@socionext.com> <92500143-814b-b255-bb7b-c36d5eca5457@arm.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1729017 |
Show key headers only | View raw
2017-09-07 21:04 GMT+09:00 Marc Zyngier <marc.zyngier@arm.com>:
> On 07/09/17 12:41, Masahiro Yamada wrote:
>> Commit 6a6544e520ab ("genirq/irqdomain: Remove auto-recursive hierarchy
>> support") not only deleted IRQ_DOMAIN_FLAG_AUTO_RECURSIVE, but also
>> moved IRQ_DOMAIN_NAME_ALLOCATED up.
>>
>> Get it back to the original position to sort the enum by the bit shift.
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>
>> Changes in v4:
>> - Newly added
>>
>>
>> include/linux/irqdomain.h | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
>> index 81e4889..31be32d 100644
>> --- a/include/linux/irqdomain.h
>> +++ b/include/linux/irqdomain.h
>> @@ -180,9 +180,6 @@ enum {
>> /* Irq domain is hierarchical */
>> IRQ_DOMAIN_FLAG_HIERARCHY = (1 << 0),
>>
>> - /* Irq domain name was allocated in __irq_domain_add() */
>> - IRQ_DOMAIN_NAME_ALLOCATED = (1 << 6),
>> -
>> /* Irq domain is an IPI domain with virq per cpu */
>> IRQ_DOMAIN_FLAG_IPI_PER_CPU = (1 << 2),
>>
>> @@ -195,6 +192,9 @@ enum {
>> /* Irq domain implements MSI remapping */
>> IRQ_DOMAIN_FLAG_MSI_REMAP = (1 << 5),
>>
>> + /* Irq domain name was allocated in __irq_domain_add() */
>> + IRQ_DOMAIN_NAME_ALLOCATED = (1 << 6),
>> +
>
> The right fix would be to leave it where it is, but to actually fix the
> shift, which is what I should have done the first place.
You are definitely right.
At first, I missed the fact that (1 << 6) was already used,
then I assigned the same value to my new flag.
So, I tried to fix the list before adding my new one.
Without 5/6, I do not have a good reason to
push this cosmetic patch only.
--
Best Regards
Masahiro Yamada
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-07 13:50 +0200
Re: [PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position Marc Zyngier <marc.zyngier@arm.com> - 2017-09-07 14:10 +0200
Re: [PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-08 17:20 +0200
csiph-web