From patchwork Mon Mar 11 13:45:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 2248871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 8C3EADF5B1 for ; Mon, 11 Mar 2013 13:50:30 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UF346-000694-Ck; Mon, 11 Mar 2013 13:46:58 +0000 Received: from mail-oa0-f52.google.com ([209.85.219.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UF33F-0005n5-KQ for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2013 13:46:06 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so4398050oag.39 for ; Mon, 11 Mar 2013 06:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=qXTtHuw7g9i5Llssvr9K3bJwIdmxYsD8GN74I9Yu28Y=; b=nEVlKN0FMoZ15YofCyWt65xyGvosYCOIsct27QOyd88B9AYAFy0z+c7ccKFZxaGbRz IAFioCFhdTZmmX8VtVyumQN708n2orF7qOQ3eCSrrYGMaph7XkvVjs5b4yw1o6Q6Ses1 Fevp2ftVddUVXOlRj5JorsVJbmiKsXnQvaXE6PDmDhXqeTPJHEChbGB+7Z74FRZ9nkWU pcSaNkjo7kME8s+PsJAK/EJM1kvxLmQXwnM3vdxA9kYkeiHiR1bz8i5uVBahtzXKu05y 8NbN80kHKR5AbzCDwOtRab8kld15lE+EVaL5xMRS6v8QIuChCS/Of1xv/8oDuF9G3NeA cIxA== X-Received: by 10.60.23.195 with SMTP id o3mr8713185oef.73.1363009564322; Mon, 11 Mar 2013 06:46:04 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPS id qk4sm17204039obc.5.2013.03.11.06.46.02 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 06:46:03 -0700 (PDT) From: Rob Herring To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org Subject: [PATCH] clocksource: add empty version of clocksource_of_init Date: Mon, 11 Mar 2013 08:45:51 -0500 Message-Id: <1363009551-8978-1-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130311_094605_800488_A3A45C4D X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.219.52 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robherring2[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Thomas Gleixner , John Stultz , Rob Herring X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Rob Herring Add an empty clocksource_of_init when !CLKSRC_OF. This is needed for builds where no timer has selected CLKSRC_OF. Signed-off-by: Rob Herring Cc: John Stultz Cc: Thomas Gleixner --- This is part of my CLKSRC_OF init rework. It is also needed for Arnd's default machine patch. I plan to send a pull request to arm-soc for all this shortly. Rob include/linux/clocksource.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 27cfda4..08ed5e1 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -340,6 +340,7 @@ extern void clocksource_of_init(void); __used __section(__clksrc_of_table) \ = { .compatible = compat, .data = fn }; #else +static inline void clocksource_of_init(void) {} #define CLOCKSOURCE_OF_DECLARE(name, compat, fn) #endif