Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4955391img; Tue, 26 Mar 2019 22:05:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqza9KUCzpW+zbHX/NrZmPYZWFRRSKhtTIXcLssqmR665Q8c0CoP6vlMfMkfK4aMDGaDcsg2 X-Received: by 2002:a63:e850:: with SMTP id a16mr32439757pgk.195.1553663145815; Tue, 26 Mar 2019 22:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553663145; cv=none; d=google.com; s=arc-20160816; b=yCY7FaLlX7C2hMqF9kLfICJPD1M+GgbxHXlLa//KuL2k5FaxpH29/AsmO6ydOxaO03 8qauNLX9za+nCBHM9N2WG6VYhuZgncQqAKzc3VJvLS0t+i/7EwCtJcBYufgAjM41RqYJ q8cYvIwun7DfQEc3i5hEjrUpjYBPTfmDZe5uxBm/SrgAwOi8d6jNHnoBeVGSULa8YTb+ APas2yXMljV9ZBnXBurBA2+htCG0RY0v1WNX6S0gmb4Ur1css7mL/dggX/SZsvJMv4O5 eYzbQakrVE9LgxpqiRYW5Yaq6NgLeCjo9FMotVQ8tXHI76vzrTAU09l9A1L8LVvx+PLV 07Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nzcDs41+bF9IYKPkkrV2hJJFQfxuniuuSYIMDt/XAyc=; b=M/80Qkc49UvFBUO56avdFFfk3q7mKWOP1n3ugid7tdGgQ/jRrNMchpOwNujuPdHFgo hNkk3QtylEFNuWLC6/1Ni+G4Ja3oi4ksFnC89xU0XzTg3UXwQa++fUaw51xhnMs4gidi ibY6eBDb2xDYheWLV/qvPnJlMyLfKQ+Mhi0NCp1pZdgqVfoDSnP79ZJplMbhpO6OanR2 jB6nwU9DipWWkNEMat0Cl4ywnyYAeFuAvr46RHr5cdjWnGb+0VsTw5Ro+wzYCTG887C0 5DiJtjt7l2uvc8tOSV1AhsgWmwQSMmhREulr6WmU5zkwIVy63xjKWOYI9RBJzYFZ9d1Y yajQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i8UFD5s1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si17506237pgg.437.2019.03.26.22.05.29; Tue, 26 Mar 2019 22:05:45 -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=@gmail.com header.s=20161025 header.b=i8UFD5s1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbfC0FDW (ORCPT + 99 others); Wed, 27 Mar 2019 01:03:22 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44478 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbfC0FDW (ORCPT ); Wed, 27 Mar 2019 01:03:22 -0400 Received: by mail-ed1-f66.google.com with SMTP id x10so12761668edh.11 for ; Tue, 26 Mar 2019 22:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nzcDs41+bF9IYKPkkrV2hJJFQfxuniuuSYIMDt/XAyc=; b=i8UFD5s1IJ3QStsQ392FhCE0Cl5ffy6dMe9jqyxqj/jl+YmWA5uwdU+i3vJOjTRFvW jXGCQYYIb/4/+fcGKL0vPuAModCHhTx/gaOq8OkRtQrAMsz3FWkJEkPJ5lJZmHb5jhWD 1NLi5FLd6kKM2ONltraoPb8Dttdp+ZPmtFhCZj7gy9D41jHqnIcqN7gARLXc/OPQd9cy gyQ2QueuMmaXP3IXIAxXBTQ/UHpx00tmQ6RjC3HfYWLiKtjfjQBOHtzgDZDG8znNepJs aaQfQL3TdmS+fOYOJhx4LdRMbk2wPcaXldaBQOoCDAL2AWE6aBXe84KctcQV13Hdu4b/ 5mUw== 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:mime-version :content-transfer-encoding; bh=nzcDs41+bF9IYKPkkrV2hJJFQfxuniuuSYIMDt/XAyc=; b=f5Mb7t+FDxLRFzoTIGUIcqr5DGnEb2q27SHMuwW5co1hE7kwg/5LZSBT2D2XKifGz+ THtPH3yOVA3b0s1EOGuo5o+x4pdYLKKuPC2gl4rc80gHJe9Yqfm8m0HJerRbe9imkzJV S+04zDukTRHQyEcwXptGUJpFQvaUPKT2lYN/t0EqVR2VpL/UtLbpt+VyWrvOSuOhy6m5 6rVd7qa2G21yqScWjhpLuk30sLAuHWFLH0IpU3N74aPlPl/XDRM+qTxauu/oUuztlEpV itd6IR0nzXJbi5w+wMApCWzp89UoBp9wVZ/nFOLyZ0DzHNGNzobiJijvSOjp6cvd6fRI 6AWQ== X-Gm-Message-State: APjAAAV/FBD3FiuziZRap31coxDbSrIorDjbeP6dpK9PWsEKuRbqHbQp EE4ba8iNxhN0WVFEMS0kjgA= X-Received: by 2002:a50:91c2:: with SMTP id h2mr22782235eda.54.1553663000057; Tue, 26 Mar 2019 22:03:20 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f9:2a:1fae::2]) by smtp.gmail.com with ESMTPSA id 35sm6872287edh.43.2019.03.26.22.03.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 22:03:19 -0700 (PDT) From: Nathan Chancellor To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Ladislav Michl , Tony Lindgren , YueHaibing , Nathan Chancellor Subject: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start Date: Tue, 26 Mar 2019 22:01:27 -0700 Message-Id: <20190327050126.12064-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 008258d995a6 ("clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static") made omap_dm_time_set_load_start static because its prototype was not defined in a header. Unfortunately, this causes a build warning on multi_v7_defconfig because this function is not used anywhere in this translation unit: drivers/clocksource/timer-ti-dm.c:589:12: error: unused function 'omap_dm_timer_set_load_start' [-Werror,-Wunused-function] In fact, omap_dm_timer_set_load_start hasn't been used anywhere since commit f190be7f39a5 ("staging: tidspbridge: remove driver") and the prototype was removed in commit 592ea6bd1fad ("clocksource: timer-ti-dm: Make unexported functions static"), which is probably where this should have happened. Fixes: 592ea6bd1fad ("clocksource: timer-ti-dm: Make unexported functions static") Fixes: 008258d995a6 ("clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static") Signed-off-by: Nathan Chancellor --- My apologies if this has already been sent, I didn't see anything in tip or on LKML. drivers/clocksource/timer-ti-dm.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 3352da6ed61f..ee8ec5a8cb16 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -585,34 +585,6 @@ static int omap_dm_timer_set_load(struct omap_dm_timer *timer, int autoreload, return 0; } -/* Optimized set_load which removes costly spin wait in timer_start */ -static int omap_dm_timer_set_load_start(struct omap_dm_timer *timer, - int autoreload, unsigned int load) -{ - u32 l; - - if (unlikely(!timer)) - return -EINVAL; - - omap_dm_timer_enable(timer); - - l = omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG); - if (autoreload) { - l |= OMAP_TIMER_CTRL_AR; - omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, load); - } else { - l &= ~OMAP_TIMER_CTRL_AR; - } - l |= OMAP_TIMER_CTRL_ST; - - __omap_dm_timer_load_start(timer, l, load, timer->posted); - - /* Save the context */ - timer->context.tclr = l; - timer->context.tldr = load; - timer->context.tcrr = load; - return 0; -} static int omap_dm_timer_set_match(struct omap_dm_timer *timer, int enable, unsigned int match) { -- 2.21.0