Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5069323img; Wed, 27 Mar 2019 01:12:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFZeOHjwFqCcj+Pr2baboi8VRKdqg84pFVeJmHdewhXqGZv4xfAIQzHBauE6pPdOBtG0xP X-Received: by 2002:a17:902:2f43:: with SMTP id s61mr35972398plb.158.1553674373243; Wed, 27 Mar 2019 01:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553674373; cv=none; d=google.com; s=arc-20160816; b=c3Hv4eS3/JR2OWyI9EI/MlI5qvKulwWJXajMWA6VZZq39U5s9rNpItpytYOz3AaVSN fuCsNthuE/VDfPSk88xl7XGVCVIVQqrkbT7sPWSKQZvk3JY03mxZBb4bhNOfzMo0xjrq pG3lUIFp1awT9hdNU9yE7WW+5InI+GGtzIgg8LXqkpgJWRtgc9TGwF4NVEBMt+aXuejB RQpmx0roAEn3w5IlnBIrnxQpkeP8YMb4a2dzsAHEnBs9b1dXD7b5Y6V7rOBQF2y2CJmu qXosHx5H60qwvV6OlWH3blnQxPDVF8fjOc8YJYk6SGkUowMfGlhypF0ry4Y9tzUme1yS fcuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+ucDbARknKl8AfbJx3VHgAikmidO6SGj/bbhk0xfc2o=; b=vcWErdarGOKSUGi+eZdGPNMDHEXb4DC5EKxcbGGOAV0g6GHVrRwPMiKcGSPvDUJoMA mFsy2+wX43b4zenNGhzlPNXv08QTK+UTR/vL5JOaJw5zfcDA+2wbnJVF7oDdrl/JybQf pQ79meje4zDTqaI7ltDfrLyxtqI35hrVd6NgInN5PTWSFucZh+fgI6v2niAvb9d6sN/9 vcDWgsFKVfuS/9y31J2Q9ZK5Nv05/t7EKA9TL81T+Ui3s1XoZCf4jn8knt6pGIy/IBat z3hhruDdKCj06vu4BI0ob0dSxervBzLs0DWF+o7RlltOEpm2VJMmCkeLrFCyUSCv5EET 9Mww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 139si17703311pga.219.2019.03.27.01.12.38; Wed, 27 Mar 2019 01:12:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbfC0ILq (ORCPT + 99 others); Wed, 27 Mar 2019 04:11:46 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:54744 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfC0ILq (ORCPT ); Wed, 27 Mar 2019 04:11:46 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990411AbfC0ILnRRv0d (ORCPT ); Wed, 27 Mar 2019 09:11:43 +0100 Date: Wed, 27 Mar 2019 09:11:42 +0100 From: Ladislav Michl To: Nathan Chancellor Cc: Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, Tony Lindgren , YueHaibing Subject: Re: [PATCH] clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start Message-ID: <20190327081142.GA11034@lenoch> References: <20190327050126.12064-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190327050126.12064-1-natechancellor@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Nathan, On Tue, Mar 26, 2019 at 10:01:27PM -0700, Nathan Chancellor wrote: > 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. Alternatively you might want to look at "clocksource: timer-ti-dm: Add event capture": https://patchwork.kernel.org/patch/10237217/ (it makes use of function being removed here). It is a part of an attempt to add event capture for OMAP. Of course I would like this functionality to be implemented, but as I do not have a time to continue, I cannot really object removing this function. Just in case you'd be interested in finishing this task ;-) ladis > 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, >