From patchwork Tue Mar 28 15:13:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 96168 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1758701qgd; Tue, 28 Mar 2017 08:14:37 -0700 (PDT) X-Received: by 10.98.88.130 with SMTP id m124mr32633798pfb.76.1490714077559; Tue, 28 Mar 2017 08:14:37 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19si3194784pfk.144.2017.03.28.08.14.37; Tue, 28 Mar 2017 08:14:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753739AbdC1POh (ORCPT + 17 others); Tue, 28 Mar 2017 11:14:37 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36554 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159AbdC1POf (ORCPT ); Tue, 28 Mar 2017 11:14:35 -0400 Received: by mail-wm0-f47.google.com with SMTP id o81so1249185wmb.1 for ; Tue, 28 Mar 2017 08:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RnJl5ZIqma8pmrFFzEyfpD9x6bCX5jtMCqu3aZAbxMs=; b=Q5VVqLJnqL4lL/NnWmv1W8B5LEh2+DO4BaRO5kAW6kuqRVFek/ZpbMECo1uRFiuMlz 0XvAi2VRTJzZ/I3WmTRnNWCcgam11qTu1sICXZt25cP8UDFdmj6lGOP07c3aGkdlbwoM cQOlt6QaU2pAEtqczOCcYU92ckxG7X+q4LMUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RnJl5ZIqma8pmrFFzEyfpD9x6bCX5jtMCqu3aZAbxMs=; b=qxxv+z3rS9ji5EV6224o9NqJjtwVOHvEjd4Lzo++NbysLuIfkoPBsRwxQ5zQTOq8yU qij6FUk6wsXDSFOBb3sT7k1zcgZ4JuXXcR03bew+LGwGZ10HGo6pu5T8k2tS2or2egNR d6+kNEf6ipFo+s6t/7WRPBe9RENF9OmyyGQgdJ3C6rIuU1YuXVYjLGt8u6hjDQNucclD sWxEWeYncSx6ZaaiEhMa4KVqnPeBSNOY0shERNt6I27a/hydXxn5kJqNTXPgkWwNpoIX Ox4K6AYyjERhOVLINmQpZEp9neR8y92ZePYl1+6p56Gf27/tsg31Wx2xJW9KdXJxVCw0 T8+g== X-Gm-Message-State: AFeK/H1jX8eAwBLJd62xEQuYpq+lN5NLkHuRJQwAz34/sTSgI/R1v1UMGhgxpIx8bAv4rU4e X-Received: by 10.28.170.67 with SMTP id t64mr14895334wme.18.1490714054255; Tue, 28 Mar 2017 08:14:14 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:3e97:eff:fe5b:1402]) by smtp.gmail.com with ESMTPSA id w2sm4007089wmd.19.2017.03.28.08.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Mar 2017 08:14:13 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: al.kochet@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clockevents: Fix syntax error in clkevt-of macro Date: Tue, 28 Mar 2017 17:13:59 +0200 Message-Id: <1490714040-30474-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20170328151230.GG2123@mai> References: <20170328151230.GG2123@mai> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Kochetkov The patch fix syntax errors introduced by commit 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of"). Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") Signed-off-by: Alexander Kochetkov Signed-off-by: Daniel Lezcano --- drivers/clocksource/clkevt-probe.c | 2 +- include/linux/clockchips.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/clocksource/clkevt-probe.c b/drivers/clocksource/clkevt-probe.c index 8c30fec..eb89b50 100644 --- a/drivers/clocksource/clkevt-probe.c +++ b/drivers/clocksource/clkevt-probe.c @@ -17,7 +17,7 @@ #include #include -#include +#include extern struct of_device_id __clkevt_of_table[]; diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 5d3053c..6d7edc3 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -229,7 +229,7 @@ static inline void tick_setup_hrtimer_broadcast(void) { } #ifdef CONFIG_CLKEVT_PROBE extern int clockevent_probe(void); -#els +#else static inline int clockevent_probe(void) { return 0; } #endif From patchwork Tue Mar 28 15:14:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 96169 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1759122qgd; Tue, 28 Mar 2017 08:15:26 -0700 (PDT) X-Received: by 10.98.72.88 with SMTP id v85mr31131507pfa.99.1490714126433; Tue, 28 Mar 2017 08:15:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w33si4518967plb.53.2017.03.28.08.15.26; Tue, 28 Mar 2017 08:15:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754241AbdC1PPH (ORCPT + 17 others); Tue, 28 Mar 2017 11:15:07 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38331 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703AbdC1PPF (ORCPT ); Tue, 28 Mar 2017 11:15:05 -0400 Received: by mail-wm0-f43.google.com with SMTP id t189so1395769wmt.1 for ; Tue, 28 Mar 2017 08:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wZt9pA/bP3LcqHEH2pKXSM0luffJMtS20odhLlHaTqc=; b=LSGGWvPGgq5HPntIpF90QarJogxCK1FcQ1YwxIHsqOj2IRTRL8YfYpuUBovlVescc5 PdbXaGVHADeYEs4w5nRYxYoCTB58NbbIhBzweXktOfd1wWE45D0mQr4WZpC3GpuGP9Xu 1+DDXNla4uZYkPeIShbVF/khWwXXs1MtlUQbY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wZt9pA/bP3LcqHEH2pKXSM0luffJMtS20odhLlHaTqc=; b=cB9gst8WOpaztFzE1ZQAhZerdJDobQi9d/xI5ALHP9kUpE8TREac2OcGhdhG4ZmCwI Noo5tjK3ukeoc1gJaAWpiLQM2QXjLxjAQm0x6CwucIpLVAKlHfEqcmqJOMTAspZAkRSg k6KlJxX1qHPRgEr6gpOUAanN/UgDAPgVECNpk6AHzDppTRDoEqcauv9AbhYYrrMqBPd8 tYaRv5SdEZNGcwG0jbEbQ/xw9QqsTygUxsGMvlgdgZuT9zpQ6cyeVztursK7oJdaGKCo CJvklRGlGYXoLHrLQJYyBIF8F6cBRDcZKdWPKrapI6QUUVuToj0WcO8DPN2oVCVv+tvd RWRw== X-Gm-Message-State: AFeK/H0PMABM1YBmqvWsr40OQS5T69PXdDJ/GsCDNCQcChcboodcBsPlELCV9k/UYjyPkZx0 X-Received: by 10.28.129.212 with SMTP id c203mr14681768wmd.19.1490714055719; Tue, 28 Mar 2017 08:14:15 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:3e97:eff:fe5b:1402]) by smtp.gmail.com with ESMTPSA id w2sm4007089wmd.19.2017.03.28.08.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Mar 2017 08:14:15 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: al.kochet@gmail.com, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-arch@vger.kernel.org (open list:GENERIC INCLUDE/ASM HEADER FILES) Subject: [PATCH 2/2] vmlinux.lds: Add __clkevt_of_table to kernel Date: Tue, 28 Mar 2017 17:14:00 +0200 Message-Id: <1490714040-30474-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490714040-30474-1-git-send-email-daniel.lezcano@linaro.org> References: <20170328151230.GG2123@mai> <1490714040-30474-1-git-send-email-daniel.lezcano@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Kochetkov The code introduced by commit 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") refer to __clkevt_of_table what doesn't exist in the vmlinux. As a result kernel build failed with error: "clkevt-probe.c:63: undefined reference to `__clkevt_of_table’" Fixes: 0c8893c9095d ("clockevents: Add a clkevt-of mechanism like clksrc-of") Signed-off-by: Alexander Kochetkov Signed-off-by: Daniel Lezcano --- include/asm-generic/vmlinux.lds.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 0968d13..8c6b525 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -173,6 +173,7 @@ KEEP(*(__##name##_of_table_end)) #define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc) +#define CLKEVT_OF_TABLES() OF_TABLE(CONFIG_CLKEVT_OF, clkevt) #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip) #define CLK_OF_TABLES() OF_TABLE(CONFIG_COMMON_CLK, clk) #define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu) @@ -559,6 +560,7 @@ CLK_OF_TABLES() \ RESERVEDMEM_OF_TABLES() \ CLKSRC_OF_TABLES() \ + CLKEVT_OF_TABLES() \ IOMMU_OF_TABLES() \ CPU_METHOD_OF_TABLES() \ CPUIDLE_METHOD_OF_TABLES() \