Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp485886pxb; Wed, 3 Mar 2021 08:04:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN0+Lv9/N6Da1VMx0LAkP9RfGu9x64NmscAIvJhA4SJ7SpCoS6YKe5MyxTePlrSjHb/uih X-Received: by 2002:a05:6402:5255:: with SMTP id t21mr11858764edd.91.1614787452666; Wed, 03 Mar 2021 08:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614787452; cv=none; d=google.com; s=arc-20160816; b=pK0pm9eNaMnayTWgAWcjfJ5TPsSmBaG3AvZSkjCte6UodXLtyi+Gt8HrmL0yIUuLeE Pt5ZffmUhATZPTTzJtTiDhvLjuAz4M0PS9xKoGRGSW7s/e1wGGNABVdW8Sfw8AJitgX0 l/SJAprcIqPmbpjiH+TNScMl+XuxHGSkNpjErXiD6BFn0ZgM+MMFPbwFfuI+xXeIZhAj DOzf2FiS+krgew6+u1mQwgyx0zfyzU2u7T2H1FNYzDmFD70pTah3Emw7ZhDHFdt9CniX xADMkWLTrWhk5Pm1PgkvUcdliU5WNrRRYLjpH+5BB9ls/lhp/ZnkpF5B/qkSDYtlidZR EIdQ== 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=+YS8+An8dL5e2XpzlDZeUupowzQbI8eS2kkWF++9bK8=; b=GyTnesc2Y7qHUE3vI4YEtkHmmT2Pqf4Agj3lGYk9GqZdKoqHMIaT9uaPxxwPFpP3yW BblbeoLE/Qpkey9zc2sc3Hz1oMKBSixAxExMNgBXqJHg+cewtHoIReWwiVWP68OrYaa7 CaUXfMigygBrBYsTVq45MgPNH3aL6AVad25uUj86p6sAPEE7sevtrioyp6CByRsr2Kon d0M/8YVxKds8vHkXq5T2NGZ4Y7cHtCJ0PhAU0joR1oboHOEH+7MrlOZiX3zXCNQbBPim 3iJfYltvhlazi4SrzwleoTjfcHeVIh51PHFmSTKEwrDdFtomt6ce46uarlmULBudI2Nf rOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pIqoRImQ; 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 bt17si3978003edb.424.2021.03.03.08.02.48; Wed, 03 Mar 2021 08:04:12 -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=pIqoRImQ; 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 S1345552AbhCAX0Q (ORCPT + 99 others); Mon, 1 Mar 2021 18:26:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:54730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238966AbhCASCr (ORCPT ); Mon, 1 Mar 2021 13:02:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E39E261606; Mon, 1 Mar 2021 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619091; bh=8ysRydVB+Fvs7XeczcltzEX7NERG7ew4ks+DPrt78Jg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pIqoRImQMp2RcrJGbkVqRloZ6C2JO1UDf+tfMtKmoV+0XqWE4N5bN9nmzb+NyF894 1O3PFL0ztx4mCdcsuoLJTi99W39fIqOPIULy/LU4tcOWJXCw6ZtgVvRZw7gaDchWqB NtyTnJpkcVUaGy+Im4herulY9+dWkT4ZV4nGsWNw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Linus Walleij , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.10 298/663] clocksource/drivers/ixp4xx: Select TIMER_OF when needed Date: Mon, 1 Mar 2021 17:09:06 +0100 Message-Id: <20210301161156.578140381@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@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: Arnd Bergmann [ Upstream commit 7a3b8758bd6e45f7b671723b5c9fa2b69d0787ae ] Compile-testing the ixp4xx timer with CONFIG_OF enabled but CONFIG_TIMER_OF disabled leads to a harmless warning: arm-linux-gnueabi-ld: warning: orphan section `__timer_of_table' from `drivers/clocksource/timer-ixp4xx.o' being placed in section `__timer_of_table' Move the select statement from the platform code into the driver so it always gets enabled in configurations that rely on it. Fixes: 40df14cc5cc0 ("clocksource/drivers/ixp4xx: Add OF initialization support") Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210103135955.3808976-1-arnd@kernel.org Signed-off-by: Sasha Levin --- arch/arm/mach-ixp4xx/Kconfig | 1 - drivers/clocksource/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig index f7211b57b1e78..165c184801e19 100644 --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig @@ -13,7 +13,6 @@ config MACH_IXP4XX_OF select I2C select I2C_IOP3XX select PCI - select TIMER_OF select USE_OF help Say 'Y' here to support Device Tree-based IXP4xx platforms. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 2be849bb794ac..39f4d88662002 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -79,6 +79,7 @@ config IXP4XX_TIMER bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST depends on HAS_IOMEM select CLKSRC_MMIO + select TIMER_OF if OF help Enables support for the Intel XScale IXP4xx SoC timer. -- 2.27.0