Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965777AbcJYKwN (ORCPT ); Tue, 25 Oct 2016 06:52:13 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60963 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965563AbcJYKwL (ORCPT ); Tue, 25 Oct 2016 06:52:11 -0400 Date: Tue, 25 Oct 2016 12:49:33 +0200 (CEST) From: Thomas Gleixner To: Zubair Lutfullah Kakakhel cc: Marc Zyngier , monstr@monstr.eu, ralf@linux-mips.org, jason@lakedaemon.net, alistair@popple.id.au, mporter@kernel.crashing.org, soren.brinkmann@xilinx.com, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, michal.simek@xilinx.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, paulus@samba.org, benh@kernel.crashing.org Subject: Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc In-Reply-To: <581adf44-388c-f8e5-8437-59d7ace2fa8f@imgtec.com> Message-ID: References: <1476723176-39891-1-git-send-email-Zubair.Kakakhel@imgtec.com> <1476723176-39891-5-git-send-email-Zubair.Kakakhel@imgtec.com> <32f5f17d-7864-c782-7a6f-03660b7ab055@arm.com> <581adf44-388c-f8e5-8437-59d7ace2fa8f@imgtec.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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 Content-Length: 600 Lines: 20 On Tue, 25 Oct 2016, Zubair Lutfullah Kakakhel wrote: > On 10/21/2016 10:48 AM, Marc Zyngier wrote: > > Shouldn't you return an error if irq is zero? > > > > I'll add the following for the error case > > pr_err("%s: Parent exists but interrupts property not defined\n" , > __func__); Please do not use this silly __func__ stuff. It's not giving any value to the printout. Set a proper prefix for your pr_* stuff, so the string is prefixed with 'irq-xilinx:' or whatever you think is appropriate. Then the string itself is good enough to find from which place this printk comes. Thanks, tglx