Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1709515pxb; Mon, 8 Mar 2021 04:36:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGE9hr3Du53lXJ4UvVwJmJYWfvbZNQGc5cg46r8Gtbt3yZZNjSVTblihTXAAxPLsLdvGfk X-Received: by 2002:a05:6402:30a5:: with SMTP id df5mr22363782edb.24.1615207012787; Mon, 08 Mar 2021 04:36:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615207012; cv=none; d=google.com; s=arc-20160816; b=xj0xSiRvnjBvhAse9rN6ITAIOdFRCth57LmKJ7qR0jGHOfmhnS6t0uxOtChBGqvvU/ p/vkVHzdWvvaU53bIGurTKRqWEIAdL4A+JkZhFMaJF7Js9ec1+S6typQGYvmIViAR7u7 zly9yREne8QYBwI+Xm435g51VNuipiMMQRQU+bHOv9TpPZj/aWku3F34KhnEK3oKGoSB vUo08uCPxkXNe2peyGyww3Cn1I7IIvH0N65pshBpUOMFdwQwgzClkiBpdDsbBnsf4Qe7 MxOrvlt2mBNO16wmlG741IXIwnjr7hWr0dJwEsJoIWM8KzcnT+KoNFuCCy9L/Fo/fc0D 6zZA== 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=bVuV99UDH0Uc6Fajpn3FL5ACcGlrbDmP9zEkdQLatMM=; b=sSx+cnd+7PsaVCTYH57BsBI/yxGIAXMepQCSoOAWGtvoTKP/9F588SMi77xNkgw72w +UcHDyV2JzQiNigW37yRNij8ZjFv6huvVhsvfUeWMR6diwJB9cSO+jUz2J05ZGLpsXDW 4/XjMmp/vYtQ03h5LZYuY2zKwplX9/tA8mD5+MAwhX0iXM2SSrmoqtF5y8x+K1QYb5Ta G3FiZstsEdfjeFob37jkCqiLjU6Xr3YpTTRUxbZ3pWlOrEjVHl8xHWM3aMWdCleYBknP p2iyGTIfkR6J5R26gt+kdEyfR4QCAhvvDm3XxNTRCVLPPtvZUVWEaXu2yFUiFrrns9DB 0ozA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oYCZkk0I; 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 kk8si6917195ejc.404.2021.03.08.04.36.29; Mon, 08 Mar 2021 04:36:52 -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=oYCZkk0I; 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 S231520AbhCHMfS (ORCPT + 99 others); Mon, 8 Mar 2021 07:35:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:43756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbhCHMes (ORCPT ); Mon, 8 Mar 2021 07:34:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D9D5D651C9; Mon, 8 Mar 2021 12:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615206887; bh=ym8wd/Ubr9g/GbZG3aJ84RYjH82G13HigPDID7JJF6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oYCZkk0Iefqrm74tNw0WNV+NkgMGWHjWsJXnKMR1pPCIgcBlbmLxKsNVpg2Cb036G Bc1pOn+rWE70wk9TBJ7fNdajyA+zrh6Vf5WhEYvol3x25KMF8fUVzcmZSmNndrq8vg kuIFWMaI3StGiKKd/W9X7Qmjp/T/UUKtC0gXmMPs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Catalin Marinas , Jing Xiangfeng Subject: [PATCH 5.10 40/42] of: unittest: Fix build on architectures without CONFIG_OF_ADDRESS Date: Mon, 8 Mar 2021 13:31:06 +0100 Message-Id: <20210308122720.062508474@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308122718.120213856@linuxfoundation.org> References: <20210308122718.120213856@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: Catalin Marinas commit aed5041ef9a3f594ed9dc0bb5ee7e1bbccfd3366 upstream. of_dma_get_max_cpu_address() is not defined if !CONFIG_OF_ADDRESS, so return early in of_unittest_dma_get_max_cpu_address(). Fixes: 07d13a1d6120 ("of: unittest: Add test for of_dma_get_max_cpu_address()") Reported-by: kernel test robot Signed-off-by: Catalin Marinas Cc: Jing Xiangfeng Signed-off-by: Greg Kroah-Hartman --- drivers/of/unittest.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -874,6 +874,9 @@ static void __init of_unittest_dma_get_m struct device_node *np; phys_addr_t cpu_addr; + if (!IS_ENABLED(CONFIG_OF_ADDRESS)) + return; + np = of_find_node_by_path("/testcase-data/address-tests"); if (!np) { pr_err("missing testcase data\n");