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: <1440236441-10815-1-git-send-email-linux@roeck-us.net>
Date:	Sat, 22 Aug 2015 02:40:41 -0700
From:	Guenter Roeck <linux@...ck-us.net>
To:	Ralf Baechle <ralf@...ux-mips.org>
Cc:	linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org,
	Guenter Roeck <linux@...ck-us.net>,
	Ezequiel Garcia <ezequiel.garcia@...tec.com>,
	Daniel Lezcano <daniel.lezcano@...aro.org>
Subject: [PATCH -next] mips: Enable common clock framework for malta and sead3

Since commit e69b3d70ac57 ("CLOCKSOURCE: mips-gic: Update clockevent
frequency on clock rate changes"), malta_defconfig and sead3_defconfig
fail to build as follows.

drivers/clocksource/mips-gic-timer.c: In function 'gic_clk_notifier':
drivers/clocksource/mips-gic-timer.c:102:16:
	error: 'POST_RATE_CHANGE' undeclared
drivers/clocksource/mips-gic-timer.c:103:48:
	error: dereferencing pointer to incomplete type
drivers/clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
drivers/clocksource/mips-gic-timer.c:209:3:
	error: implicit declaration of function 'clk_notifier_register'

Fix by enabling COMMON_CLK for both configurations. Build tested for
malta_defconfig and sead3_defconfig. Tested with qemu malta emulation.

Fixes: e69b3d70ac57 ("CLOCKSOURCE: mips-gic: Update clockevent frequency on clock rate changes")
Cc: Ezequiel Garcia <ezequiel.garcia@...tec.com>
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
 arch/mips/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 09b8fe95aeb0..7af84b4d3269 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -409,6 +409,7 @@ config MIPS_MALTA
 	select CEVT_R4K
 	select CSRC_R4K
 	select CLKSRC_MIPS_GIC
+	select COMMON_CLK
 	select DMA_MAYBE_COHERENT
 	select GENERIC_ISA_DMA
 	select HAVE_PCSPKR_PLATFORM
@@ -459,6 +460,7 @@ config MIPS_SEAD3
 	select CEVT_R4K
 	select CSRC_R4K
 	select CLKSRC_MIPS_GIC
+	select COMMON_CLK
 	select CPU_MIPSR2_IRQ_VI
 	select CPU_MIPSR2_IRQ_EI
 	select DMA_NONCOHERENT
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ