Received: by 10.223.185.116 with SMTP id b49csp5960883wrg; Wed, 7 Mar 2018 22:42:45 -0800 (PST) X-Google-Smtp-Source: AG47ELuyIJnZp5j+BFE2SWlydy0/R9IVGDat9uNWkzcO4cPab9jwq1buK7eCl8RU4TFYa5Etk6vP X-Received: by 10.99.97.87 with SMTP id v84mr5267969pgb.281.1520491364971; Wed, 07 Mar 2018 22:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520491364; cv=none; d=google.com; s=arc-20160816; b=Rd/oUAnxMWLCmwhzFvqBilPD57h1SRYzFVbwnsOMZJchgy1et+r8qFJO1aaOaOuP4f QJUWeJZFDzYlOoEnbmfEPMUzcOkm7Oju3pqANdZZ9W1ZsLm5xwJ/IHd7nKAdoVan7LvA vwfypT7usmpKcDbd73KtHP0FYLH/i/vU1zw0xU3OmrYQHLTvgr+5bxoTKs2HTdjN9yka Jp6tPQZs3Op+rW9FiKNt3WVq3l+y8rhME2bLSzep1uLmphSbwFxFDEt0jZnzaUBOjD8l lF90h8VHcqPRnY3WgOT+miZbgKOC2SAThhHmN3sgHiHOz94R929/QsD2ThdGofW8fXcQ wIAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=37ejiPjRl6rhaJja1p9bNTgB50sSbN39RoXTYEt0bGs=; b=mlQooE1I4fTtiQ656iXApSfNi4eW08+xhNYs5/Lgz6/LmbdFIiMT04TO+UCThMS31Y mOTZ3Grmfqpr2UDxMnIij1KAw1sCZpQSGOmeQrrpQPo6XwShQB8zHcMKDqL+YkqQc058 jjxSEeIoR/uwFko8nsscci0zOtzZxbM1nbhGTJxw8d6N2HyDZzaSeIg83efnjg6eeB3e zKDWLyBnja3ydN4sy6BhCC+KWV12sxQEnxA/FLc68mtAp54Mqb+PZgKc4bwhdsf1wnc1 Fjthl1QHMThv65hP4VpqJXwn0Pp485igduVPUEkYqkRjcneuUHEvC8FsvSWvJ7Z1a8+5 4NAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=XVnA7p2Y; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6-v6si2695065pll.93.2018.03.07.22.42.31; Wed, 07 Mar 2018 22:42:44 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=XVnA7p2Y; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965371AbeCHGkI (ORCPT + 99 others); Thu, 8 Mar 2018 01:40:08 -0500 Received: from mail-sn1nam01on0106.outbound.protection.outlook.com ([104.47.32.106]:14491 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935347AbeCHE7K (ORCPT ); Wed, 7 Mar 2018 23:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=37ejiPjRl6rhaJja1p9bNTgB50sSbN39RoXTYEt0bGs=; b=XVnA7p2YFReOcR6W1Lm0P4IPqFz7s3fuo5+qlx5KAYaSTu6/xavQtayNuvHGOwkq7GRSk+ny+PAgRq81XjADcEwLNVIEVpWdbhy3A7vUUQ2XlFvxaGPWkVAZ2QYGXpoubmUU7cKx5ZDuixoz6D8xhRrW7kwyDiA6ksYlIRkmhzY= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.3; Thu, 8 Mar 2018 04:59:07 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0588.008; Thu, 8 Mar 2018 04:59:07 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 49/67] media: davinci: fix a debug printk Thread-Topic: [PATCH AUTOSEL for 4.14 49/67] media: davinci: fix a debug printk Thread-Index: AQHTtpoDydgXi3p/4EKXVYh7kS7xVQ== Date: Thu, 8 Mar 2018 04:57:52 +0000 Message-ID: <20180308045641.7814-49-alexander.levin@microsoft.com> References: <20180308045641.7814-1-alexander.levin@microsoft.com> In-Reply-To: <20180308045641.7814-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;7:lDTDKkqMlzBXoyuuBg0ZvgcPDWaTUF0gsqGFdwKafFrZVb6H+uBjlSj8l69vnnE8/IAF/R4bfyKYxwvB/qBx1pvJePW/PqDAKP+umiHHcMQCBctQhTqjYHb8sQqasBefLqVg0ceQY6HFwv446lVcy40WMH9bf345d3IAZ3rvQF4f7spFV6xAgj5Ejfdp4IVq9TqT4x5olZoIhZWJd5qAgqhfK5TtHLOAcuIQ/DWY9UXQR5ipSlRduRBWaCzlIsdD;20:AKeTutrgDSbK/YUWpXSgjjMNYUYsWjMLplMTL8xX4gRIzfv0982CtrK85UZeoAzZpQw4H2ytcIKKN984KU/VcpcVPMdh+izRnM98T1gYOa7E/hwuesDo+PA8Hv4D3rR292v9kvEsfKBI6jtFLQlvMB78lPhNHX5s6P/ZM46MwQs= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 64f567f2-ec63-49ef-2f86-08d584b152ca x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231220)(944501244)(52105095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041288)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 060503E79B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(366004)(39860400002)(39380400002)(346002)(189003)(199004)(6116002)(53936002)(1076002)(107886003)(3846002)(3660700001)(10090500001)(6666003)(2950100002)(2906002)(6512007)(99286004)(8936002)(6486002)(76176011)(6506007)(68736007)(316002)(110136005)(81156014)(81166006)(8676002)(54906003)(3280700002)(2900100001)(6436002)(97736004)(72206003)(25786009)(10290500003)(86612001)(4326008)(305945005)(7736002)(66066001)(22452003)(478600001)(5660300001)(86362001)(575784001)(14454004)(106356001)(36756003)(102836004)(5250100002)(105586002)(26005)(2501003)(186003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Wrh6J+wLYa4UQKS2ON8bFCdM/+wJAxUUsdi0Dqru8Dwi3dckbxFiGLdMVuUJ/ae7KuwOKzr4e3cH0dpTI+WTUfqWEmYYFQQpn6PPs3kl/jmLxSXlPJaqhf83OHRUj6KzqD82T8v81v8AGPYURlLE1I0/EJnykmUZZ51/iyfATxcsKMBFUV9Xd46ZY15bjkKLIJ7s629OYGEOmoUdD49bFjqmEZNuyw41sLNSoVFTz4ipOsn6DE9t7FMm/YQoxrQnvctVHMqNlkEK8DQ8ERzPXl6XofzTm/xQjll1LAPPxpq+W/VG9dio8b0VJS3ojGmpXhulXqpKPIo9U4SDXqsgYw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64f567f2-ec63-49ef-2f86-08d584b152ca X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2018 04:57:52.8517 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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() erro= r: '%pOF' expects argument of type 'struct device_node*', argument 5 has ty= pe '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 --- drivers/media/platform/davinci/vpif_capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/= platform/davinci/vpif_capture.c index 0ef36cec21d1..60b8583a26f2 100644 --- 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_async_notifie= r *notifier, vpif_obj.config->chan_config->inputs[i].subdev_name =3D (char *)to_of_node(subdev->fwnode)->full_name; vpif_dbg(2, debug, - "%s: setting input %d subdev_name =3D %pOF\n", + "%s: setting input %d subdev_name =3D %s\n", __func__, i, - to_of_node(subdev->fwnode)); + vpif_obj.config->chan_config->inputs[i].subdev_name); return 0; } } --=20 2.14.1