Received: by 10.213.65.68 with SMTP id h4csp286963imn; Fri, 23 Mar 2018 04:47:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELu3cJfyrPWkh0SpPEXh7RYL4LIp5R+ghM9fDB+tCTOiZv6do4vb7ZYMT+xswVCsuxFoeUSQ X-Received: by 10.99.125.19 with SMTP id y19mr20837421pgc.125.1521805625782; Fri, 23 Mar 2018 04:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521805625; cv=none; d=google.com; s=arc-20160816; b=iVmJc1Y2U54a8KE/zCZGs0QLQUsBIYSzN1FeDlRRpeCYciE+TtX0+YiMQtbtAlJ/DL hThZry1SfDvm5aE3tLDq0GcgMpN6N1ANo+XeML6kGJpWKmveAQojj1FNGweFS6o88Iof eMjRLTeh6/R70MEW4BpBoKjpTEBqLLraT6VsDJp3qy+GpuLo2+R6O4CJtaS9Zf52wd7r lu0Tm9VM6e71M3o8FSJDs9cG+1adhDdZknX+2srRWgYs2eP7POuUxbnTMCiAHSJrQ9BK gA+DDmRj96WA1YVPkf3UdtMtwUXnyRv4jNis/hZjMAan+pIEqLUFO0PC/1dp5t4IDxX5 twEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7wK0Cr2o17Z6qIavtf2DsovNR/TjPON+qETuFGm5wGQ=; b=hm0FED3rfVTvZKNlVssAMh3+o8/0XXXjS7SvWntJWjhrlXcPtQEzLnzHbMaJ5y5XvF pOcl8Muu/YlOWbMdqAlYwXfGbVKm90n8vvh68Ko3UldqSJV0HVSChWzfXCyHUfP79bpT Ycnd6ckZvZBnIHqf4cFT33G9GU5vw3ra7yPf6aFfDgUeFyALPifieNbrk1/sG7UMS+eS 44BUZEX5RKKBVJagDXyYkw44qbdVHlOeRHxv1GeulP8jANDbp0SMYYE8FKgy6I1mpuxW Yu0idF8PWv3ftXSEe28/3U1RMEetR5ehX2Lr3zJHBvFM014KwMkwte84giWu3UvaV7fD afnQ== 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 k11-v6si8118250pls.58.2018.03.23.04.46.51; Fri, 23 Mar 2018 04:47:05 -0700 (PDT) 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 S1754606AbeCWLqC (ORCPT + 99 others); Fri, 23 Mar 2018 07:46:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38576 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbeCWKC6 (ORCPT ); Fri, 23 Mar 2018 06:02:58 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A95D01312; Fri, 23 Mar 2018 10:02:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab , "Lad, Prabhakar" , Sasha Levin Subject: [PATCH 4.14 48/77] media: davinci: fix a debug printk Date: Fri, 23 Mar 2018 10:54:22 +0100 Message-Id: <20180323094145.473686063@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094142.260022880@linuxfoundation.org> References: <20180323094142.260022880@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab [ Upstream commit 4f6c11044f512356cb63d3df0f3b38db79dc6736 ] Two orthogonal changesets caused a breakage at a printk inside davinci. Commit a2d17962c9ca ("[media] davinci: Switch from V4L2 OF to V4L2 fwnode") made davinci to use struct fwnode_handle instead of struct device_node. Commit 68d9c47b1679 ("media: Convert to using %pOF instead of full_name") changed the printk to not use ->full_name, but, instead, to rely on %pOF. With both patches applied, the Kernel will do the wrong thing, as warned by smatch: drivers/media/platform/davinci/vpif_capture.c:1399 vpif_async_bound() error: '%pOF' expects argument of type 'struct device_node*', argument 5 has type 'void*' So, change the logic to actually print the device name that was obtained before the print logic. Fixes: 68d9c47b1679 ("media: Convert to using %pOF instead of full_name") Fixes: a2d17962c9ca ("[media] davinci: Switch from V4L2 OF to V4L2 fwnode") Signed-off-by: Mauro Carvalho Chehab Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/davinci/vpif_capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -1397,9 +1397,9 @@ static int vpif_async_bound(struct v4l2_ vpif_obj.config->chan_config->inputs[i].subdev_name = (char *)to_of_node(subdev->fwnode)->full_name; vpif_dbg(2, debug, - "%s: setting input %d subdev_name = %pOF\n", + "%s: setting input %d subdev_name = %s\n", __func__, i, - to_of_node(subdev->fwnode)); + vpif_obj.config->chan_config->inputs[i].subdev_name); return 0; } }