From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41540 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbdJEJQc (ORCPT ); Thu, 5 Oct 2017 05:16:32 -0400 Subject: Patch "[media] imx-media-of: avoid uninitialized variable warning" has been added to the 4.13-stable tree To: arnd@arndb.de, gregkh@linuxfoundation.org, hans.verkuil@cisco.com, mchehab@kernel.org, mchehab@s-opensource.com, p.zabel@pengutronix.de, rmk+kernel@armlinux.org.uk, slongerbeam@gmail.com, steve_longerbeam@mentor.com Cc: , From: Date: Thu, 05 Oct 2017 11:16:40 +0200 In-Reply-To: <20171004133507.3539072-1-arnd@arndb.de> Message-ID: <150719500014764@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled [media] imx-media-of: avoid uninitialized variable warning to the 4.13-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: imx-media-of-avoid-uninitialized-variable-warning.patch and it can be found in the queue-4.13 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From arnd@arndb.de Thu Oct 5 11:08:57 2017 From: Arnd Bergmann Date: Wed, 4 Oct 2017 15:34:55 +0200 Subject: [media] imx-media-of: avoid uninitialized variable warning To: Greg Kroah-Hartman Cc: Arnd Bergmann , stable@vger.kernel.org, Philipp Zabel , Steve Longerbeam , Hans Verkuil , Mauro Carvalho Chehab , Steve Longerbeam , Mauro Carvalho Chehab , Russell King , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Message-ID: <20171004133507.3539072-1-arnd@arndb.de> From: Arnd Bergmann Replaces upstream commit 0b2e9e7947e7 ("media: staging/imx: remove confusing IS_ERR_OR_NULL usage") We get a harmless warning about a potential uninitialized variable use in the driver: drivers/staging/media/imx/imx-media-of.c: In function 'of_parse_subdev': drivers/staging/media/imx/imx-media-of.c:216:4: warning: 'remote_np' may be used uninitialized in this function [-Wmaybe-uninitialized] I reworked that code to be easier to understand by gcc in mainline, but that commit is too large to backport. This is a much simpler workaround, avoiding the warning by adding a fake initialization to the variable. The driver was only introduced in linux-4.13, so the workaround is not needed for earlier stable kernels. Fixes: e130291212df ("[media] media: Add i.MX media core driver") Cc: stable@vger.kernel.org Cc: Philipp Zabel Cc: Steve Longerbeam Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/imx/imx-media-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/media/imx/imx-media-of.c +++ b/drivers/staging/media/imx/imx-media-of.c @@ -167,7 +167,7 @@ of_parse_subdev(struct imx_media_dev *im of_parse_sensor(imxmd, imxsd, sd_np); for (i = 0; i < num_pads; i++) { - struct device_node *epnode = NULL, *port, *remote_np; + struct device_node *epnode = NULL, *port, *remote_np = NULL; struct imx_media_subdev *remote_imxsd; struct imx_media_pad *pad; int remote_pad; Patches currently in stable-queue which might be from arnd@arndb.de are queue-4.13/imx-media-of-avoid-uninitialized-variable-warning.patch