Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755303AbdIGMEs (ORCPT ); Thu, 7 Sep 2017 08:04:48 -0400 Received: from foss.arm.com ([217.140.101.70]:59148 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755153AbdIGMEp (ORCPT ); Thu, 7 Sep 2017 08:04:45 -0400 Subject: Re: [PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position To: Masahiro Yamada , Thomas Gleixner , Linus Walleij , linux-gpio@vger.kernel.org, Rob Herring Cc: Jassi Brar , devicetree@vger.kernel.org, Jason Cooper , Masami Hiramatsu , David Daney , linux-kernel@vger.kernel.org References: <1504784522-26841-1-git-send-email-yamada.masahiro@socionext.com> <1504784522-26841-4-git-send-email-yamada.masahiro@socionext.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <92500143-814b-b255-bb7b-c36d5eca5457@arm.com> Date: Thu, 7 Sep 2017 13:04:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1504784522-26841-4-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 45 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 > --- > > 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. M. -- Jazz is not dead. It just smells funny...