Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2752520imb; Mon, 4 Mar 2019 13:15:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzJotuVPPeVjkJGFevpPNkG2ph0bmmok3hl5MyutUUyfr+j2z6Ml1EfkPAavLtyehfKOc/V X-Received: by 2002:a63:e410:: with SMTP id a16mr20524362pgi.28.1551734137205; Mon, 04 Mar 2019 13:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551734137; cv=none; d=google.com; s=arc-20160816; b=bF/tZIrXm/oqZ8pge+sDTfSK8ghT3495DgXaU0tKEFqhBNHgo6L1gjpBu5+4umH4Tz OY/LzDPyUx3K6FA/gDFg4QrFb11rVEdJU1iQNRx3e2YqAP9qe8wvgw9fzHgm4JPAQi8u twtZoxGBXfCXT8Dio8j9pNTqnUTI3O34qq6n6h3qs+QUNSy4bsZfwvyryFrBEBmM+qnD meq/DmJ+H2Mk4qrhxjl4LZCADtkHdXB9yxmL1X/i5uGpzqYFzGkOpA/HnBQfBgLJBCNM 0qsm8O6XAOr2HgKYgisPLo9SGPBFknTlvOw41zM0H9QFL8Ev6IRbPD5fiJhLkb1XGbCp 7eWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=ceSpOY1AbwZB2xAB23YWRGX6Sjs20/PqLhUBcbPGy8Y=; b=DFofjDdYpEvOwALIjbS4V3BdodkFF9WqwAJwqVxuDD4l+wpcekh23/gJeZm1Kb3WBJ mXWc6t53cvCsuXHLWvGmWrNU0TXRe686oh0Jb3zpGmBMjhx/KV8DG4I31/mZ8XHYQvWx 25mRXCiTWkN6oHnEzSagb9y7Epzloi4z69PkE0bhf6WgwfyUVNIuEiImXcgLg90k6VKD dOh+RzbVYvgwT2VE4lGbHP9PCTkGxQZ8gGDWUD4E+Vp23Fm/Wgtx6b3Zmicqd/qOr/k5 Ktmz/tCaFo4Nrp1fOVpbv0NZWLWzMEhFXWEt+3oNz01xdkiOSadfdZb9qexkMvUTuDJO MYeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20si6131696pll.382.2019.03.04.13.15.21; Mon, 04 Mar 2019 13:15:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726172AbfCDVO7 (ORCPT + 99 others); Mon, 4 Mar 2019 16:14:59 -0500 Received: from foss.arm.com ([217.140.101.70]:40118 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfCDVO7 (ORCPT ); Mon, 4 Mar 2019 16:14:59 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 01895EBD; Mon, 4 Mar 2019 13:14:59 -0800 (PST) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D50373F706; Mon, 4 Mar 2019 13:14:55 -0800 (PST) Date: Mon, 04 Mar 2019 21:14:52 +0000 Message-ID: <86d0n61gvn.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Arnd Bergmann Cc: Thomas Gleixner , Jason Cooper , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Aisheng Dong , Fugang Duan , , Subject: Re: [PATCH] irqchip/imx-irqsteer: fix of_property_read_u32() error handling In-Reply-To: <20190304200245.1196001-1-arnd@arndb.de> References: <20190304200245.1196001-1-arnd@arndb.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 04 Mar 2019 20:02:18 +0000, Arnd Bergmann wrote: > > gcc points out that irqs_num is not initialized when of_property_read_u32() > is an empty stub function: > > Included from drivers/irqchip/irq-imx-irqsteer.c:7: > drivers/irqchip/irq-imx-irqsteer.c: In function 'imx_irqsteer_probe': > include/uapi/linux/kernel.h:13:49: error: 'irqs_num' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > The same can actually happen with CONFIG_OF=y as well, though we don't > get a warning then. > > Add error checking here that lets the code deal with missing or > invalid properties as well as avoid the warning. > > Fixes: 28528fca4908 ("irqchip/imx-irqsteer: Add multi output interrupts support") > Signed-off-by: Arnd Bergmann > --- > drivers/irqchip/irq-imx-irqsteer.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Applied, thanks Arnd. M. -- Jazz is not dead, it just smell funny.