Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9088890pxu; Mon, 28 Dec 2020 06:21:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiPy3b4M/w507DJ4tFfktP4IfO9L7MGLm6MzAhkUPZKSkQf+4/GtoZczHk0u9TLLucA3k7 X-Received: by 2002:a05:6402:19b0:: with SMTP id o16mr42436415edz.270.1609165297932; Mon, 28 Dec 2020 06:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165297; cv=none; d=google.com; s=arc-20160816; b=ihbc6b9nQ+CT275FrBJQWNAO9oi8Btz2q7JVoS57uvryMpzZz2PrPAVvQw5Q0jYxTe nulHVtcjGEFZl0JwB9su+l0P4L2W6XWO3FOKqwosD0e+z+6YvCVJMyJVqW6+Bz1zii/2 Gc+N6/b0JYQIk6Y+llKov3mOfLLPMYMxFMPNrJGfDYSu6/fldhsU/DxyBz1KEGXoZdpP 4jbzjGf2VxY/wFpMAsZM6hqUiSMvMFWspUOhFX6Cl23SxjlLMx3AIOVyd9zEPfSEWeSm /aji2LNSlckeM/zgFmeWYwI+RW12l6LhxImknT0nHyz5ehvd5eJspThzT/MS/BS432ix hvew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sTfAoa/Vp0Fi8uarMHwxq/bsRlJkWeNHMFj6z1QuJGE=; b=sjNzr8bpuFklFwMl209KmKoazLB6MIS9gaxnhHz/IodSKWGXLfOxlx8wjEzwpDRoJ7 P5g1xY523tvF5zQ2nf2R1SOxhtXmnA3lK3/+e+oKNMTBtdgoLtWf0sOSdaSZD0KpWVj4 KlSmmWWBJ8R6UI5nTkCiBhO1Q9eesQNyaZkCrzhV5BL9kJ6y3YU2DowMJxxnP+iY8E9h bDG4wqRTINu36+719h7pE6U73gSG8VxhuhKdQ/x/TVZkM1mslVaKgK1thBqOA5lTDWpM bnttzU39BRm7soj9dhXf3gbMn1C7KGIE1NViFuU4Cea3Eg2smrvJ6Vegp2tlqh5fXC0c Btjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=haxPCvbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc32si18621133ejc.712.2020.12.28.06.21.13; Mon, 28 Dec 2020 06:21:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=haxPCvbR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441549AbgL1OSM (ORCPT + 99 others); Mon, 28 Dec 2020 09:18:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:52306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501901AbgL1OSF (ORCPT ); Mon, 28 Dec 2020 09:18:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 616C62063A; Mon, 28 Dec 2020 14:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165069; bh=EKJnTgmYjfQDlmE4nxLKoVdPvPPIgNciSunl03w56J8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haxPCvbR9ei4hb6H/GewiXvYyk+vgx0JqbirVBmQuBRDcOQe1pBjC32555ny91kAc fCboG6eoaX7D9IizU+Eg9wI5EU308BYMKtbi4EiVZP0k1ok/pOXI2VOr9sHZkXOnoS +PlEPZ1MVGWqlkJpcoDK8ChdN1kQqW1DxysjxI0I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Alexandre Courbot , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.10 399/717] remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF Date: Mon, 28 Dec 2020 13:46:37 +0100 Message-Id: <20201228125040.108331111@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandre Courbot [ Upstream commit e59aef4edc45133ccb10b8e962cb74dcf1e3240b ] Now that this driver can be compiled with COMPILE_TEST, we have no guarantee that CONFIG_OF will also be defined. When that happens, a warning about mtk_scp_of_match being defined but unused will be reported so make sure this variable is only defined if of_match_ptr() actually uses it. Fixes: cbd2dca74926c0e4610c40923cc786b732c9e8ef remoteproc: scp: add COMPILE_TEST dependency Reported-by: kernel test robot Signed-off-by: Alexandre Courbot Link: https://lore.kernel.org/r/20201102074007.299222-1-acourbot@chromium.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/remoteproc/mtk_scp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index 577cbd5d421ec..f74f22d4d1ffc 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -772,12 +772,14 @@ static const struct mtk_scp_of_data mt8192_of_data = { .host_to_scp_int_bit = MT8192_HOST_IPC_INT_BIT, }; +#if defined(CONFIG_OF) static const struct of_device_id mtk_scp_of_match[] = { { .compatible = "mediatek,mt8183-scp", .data = &mt8183_of_data }, { .compatible = "mediatek,mt8192-scp", .data = &mt8192_of_data }, {}, }; MODULE_DEVICE_TABLE(of, mtk_scp_of_match); +#endif static struct platform_driver mtk_scp_driver = { .probe = scp_probe, -- 2.27.0