From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbeBAJ4f (ORCPT ); Thu, 1 Feb 2018 04:56:35 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:47741 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751522AbeBAJ4d (ORCPT ); Thu, 1 Feb 2018 04:56:33 -0500 Date: Thu, 1 Feb 2018 10:56:13 +0100 (CET) From: Thomas Gleixner To: Geert Uytterhoeven cc: Linux Kernel Mailing List , "H. Peter Anvin" , Meelis Roos , Ingo Molnar , linux-tip-commits@vger.kernel.org, kbuild test robot , Arnd Bergmann Subject: Re: [tip:irq/urgent] genirq: Make legacy autoprobing work again In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Feb 2018, Geert Uytterhoeven wrote: > On Wed, Jan 31, 2018 at 10:54 AM, tip-bot for Thomas Gleixner > > -void irq_activate_and_startup(struct irq_desc *desc, bool resend) > > +int irq_activate_and_startup(struct irq_desc *desc, bool resend) > > { > > if (WARN_ON(irq_activate(desc))) > > return; > > As reported by 0day, this should return something. > > if CONFIG_IRQ_DOMAIN=n or CONFIG_IRQ_DOMAIN_HIERARCHY=n, > irq_activate() will never return 1, and the code path can be eliminated. > > BTW, is gcc becoming too smart, and already eliminating code before it > generates warnings for it? Recently I've seen some other cases where buggy > code was not warned about, as it was considered not having any impact. Looks like. Fixed it up. Thanks, tglx