lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210927131754.1587924-1-arnd@kernel.org>
Date:   Mon, 27 Sep 2021 15:17:49 +0200
From:   Arnd Bergmann <arnd@...nel.org>
To:     Daniel Lezcano <daniel.lezcano@...aro.org>,
        Thomas Gleixner <tglx@...utronix.de>
Cc:     Arnd Bergmann <arnd@...db.de>,
        Linus Walleij <linus.walleij@...aro.org>,
        Barry Song <baohua@...nel.org>,
        Andrea Merello <andrea.merello@...il.com>,
        Jiaxun Yang <jiaxun.yang@...goat.com>,
        Kefeng Wang <wangkefeng.wang@...wei.com>,
        Vineet Gupta <Vineet.Gupta1@...opsys.com>,
        Uwe Kleine-König 
        <u.kleine-koenig@...gutronix.de>, linux-kernel@...r.kernel.org
Subject: [PATCH] clocksource: ti-dmtimer: select TIMER_OF when needed

From: Arnd Bergmann <arnd@...db.de>

When CONFIG_OF is enabled but CONFIG_TIMER_OF is not, building the
dm systimer driver produces a warning:

arm-linux-gnueabi-ld: warning: orphan section `__timer_of_table' from `drivers/clocksource/timer-ti-dm-systimer.o' being placed in section `__timer_of_table'

Address this by selecting the TIMER_OF symbol in this configuration.
If CONFIG_OF is disabled, the table entry is not created, so there
is no warning, and no reason to have the infrastructure.

Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 0f5e3983951a..f006d29e50f5 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -24,6 +24,7 @@ config I8253_LOCK
 
 config OMAP_DM_TIMER
 	bool
+	select TIMER_OF if OF
 
 config CLKBLD_I8253
 	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
-- 
2.29.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ