Received: by 10.213.65.68 with SMTP id h4csp303076imn; Fri, 23 Mar 2018 05:07:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELuO6csgASZ6C8XntfkL90wdq37UDK+yzpgoPkR4dD6BcXg3OuudT1W3K9PMMAlDyuRnL0Xv X-Received: by 10.98.157.199 with SMTP id a68mr23637469pfk.237.1521806866924; Fri, 23 Mar 2018 05:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521806866; cv=none; d=google.com; s=arc-20160816; b=BjO6vfI0zDV7B3Qga/GzCE5qqNDPuSv8UkrKsIlIClOp5WJhi8frw98jmGOrtdQVug 8d0ceJia8eh4Z695imFXyh8UagzQsaL3vwApOlyLdObbzd5AOeyymtC6Gh+Dj3Y01NoP fITGw+HQHibkIUijMW2BtTaY6eFeO7L0YT0sp4y2TlqbC8uN291XbyjjMqXnkwN39g9L SWCBL9nWRkDN6Lfc36qUxG3lCG9/uuGF24rrEPdCEqTyDjubdmxNoDBxk/p6KN7szecP 9jTlOgu+5TV74UULUXOQdI0pd2DTSNTPkduMHVnPhrt9FjQqWH0Cy6STl0jCuKBNHPhs 41fQ== 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=ZZPFNlA/LPQU1PIQo63GQAib4eeNznMaAe/KlQYaPnk=; b=dLpBSfk/WoTEojpJkacgXuUEkSvQ8BqX0hvZ+oJC/iZcoPX0jgBZZ1y83bBx+N52kE FWJFJf/YZjsHV4lv3lDRRWLoevnUGUSyNbLC1FsobzfjWMCz70FeVHxboBiSzXm4YcfR UsioIsI74sUmKPwlPl0qxdNiHaINzmGZiRE7LiVaGN9pyGcrxR7Kltkjxh40W6VSmtjF sa7wLl5+aTHpP3tOxnMxXgiD0fmGWqZsiTQYdjGSmY0fUZtlpx6m0C+tcsDU7z7FIlXf PG/l1/zRE/g9AUltYcIYNmND9HguPtvSHBKK4wmMR+rRX5BIIudn9YdOuj54uWyu813V 3mhw== 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 w3-v6si8177534plp.526.2018.03.23.05.07.32; Fri, 23 Mar 2018 05:07:46 -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 S1753226AbeCWJ6z (ORCPT + 99 others); Fri, 23 Mar 2018 05:58:55 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35894 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbeCWJ6x (ORCPT ); Fri, 23 Mar 2018 05:58:53 -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 472C31337; Fri, 23 Mar 2018 09:58:52 +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.15 54/84] media: davinci: fix a debug printk Date: Fri, 23 Mar 2018 10:54:08 +0100 Message-Id: <20180323095420.133273752@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323095411.913234798@linuxfoundation.org> References: <20180323095411.913234798@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.15-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; } }