From patchwork Thu Sep 17 21:19:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7210801 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 578E69F336 for ; Thu, 17 Sep 2015 21:22:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BABF20732 for ; Thu, 17 Sep 2015 21:22:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BFBC2062B for ; Thu, 17 Sep 2015 21:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799AbbIQVWe (ORCPT ); Thu, 17 Sep 2015 17:22:34 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:51995 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbbIQVUV (ORCPT ); Thu, 17 Sep 2015 17:20:21 -0400 Received: from wuerfel.lan. ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MUEy2-1ZBlpU1caQ-00R3gt; Thu, 17 Sep 2015 23:20:14 +0200 From: Arnd Bergmann To: linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Mauro Carvalho Chehab , linux-api@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Hans Verkuil , Arnd Bergmann Subject: [PATCH v2 2/9] [media] dvb: remove unused systime() function Date: Thu, 17 Sep 2015 23:19:33 +0200 Message-Id: <1442524780-781677-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1442524780-781677-1-git-send-email-arnd@arndb.de> References: <1442524780-781677-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:LW/hCQylHmlMUdTpBvJ+N7M9vRyKqfo/PSKybsN6Y3DZQQPx54l CLWxCFpgGtEvKkCUB7+R/OCzCTkXvGxCWPNON2w6zC/keFiSDtgzJUYrdpDB6KATXy4nrPE 9B0JUswTga4H7/aSupiuyEL/sMBFsQY41EjLpzT+SndgbW5Tm/Dpp+wdToqoY0XW6c9pc1e H4CnYiAYWTVr/nhYQUS8g== X-UI-Out-Filterresults: notjunk:1; V01:K0:koAIKcDfg+o=:Z0UgnM8SNI7qKs/Ez4xPBy BfxNWMnFNt0CGmljlzYcRorcXwx21Z9Mv4JE5yKTOvL5Zlb+m0oQRLzQsOp4WbLR1MGsCBzVO J7HnGVlylkF8qphhqojSM+WwKTtK4mHO9s4vL8B3uKp0g9WLax5f0QE3eB0eMWbVqzWOUU3X4 cuLdHkL78qIsjNTN7trITm321W7m6jXKDIXjaReUg6nVe9wm0Oc4yQAt4J4/iLkif+ML1pIC3 76nvLkYmqGbRvYfEirg+/qot1WQoL4xeOLtrDs7U9Nd1MCSF0G8uz4LLqia4TCXR2imRT1uEA CUz3EKrzmrx+/PXGClzTBO8xDyPGL1EFf0mBNZNNfYl8ypXbSZJni52ARTSxOnm7wBOoaUPUD DEk8MLqJBXfmD28XIuHDKyXZ2ZFOixEBDPey3vvSUBcZz03e4SRT8On3nNADOjl2WNUnj3yQx dTqtX1pgCEaSiwD8jK3aGL8S+fvwtGKdA8ny24KhoV/MdOwomJT4hydIrc8ZUtU4zoMWPZJoH x84Tclbp346Cls1n07/tZkTsf6hs+yPFEkoFUSmbt/Ibtxe1Z2esRXeWGCBGMAchEqqHukIkl D679u/fkHoRafqJ4yikwVM8PqXJ3/oClBuFzVPffLxU6jh1WVzKQ7eYCZnoGqGSOgvGKKuznf pnMXpW4j3Y00nESqrTjCkpP3NOS09XfzXGVbnGjzCcbAHWV5taeoaeRlRPI3hjyOrQ5U= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The systime function uses struct timespec, which we want to stop using in the kernel because it overflows in 2038. Fortunately, this use in dibx000_common is in a function that is never called, so we can just remove it. Signed-off-by: Arnd Bergmann --- drivers/media/dvb-frontends/dibx000_common.c | 10 ---------- drivers/media/dvb-frontends/dibx000_common.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/media/dvb-frontends/dibx000_common.c b/drivers/media/dvb-frontends/dibx000_common.c index 43be7238311e..79cb007b401f 100644 --- a/drivers/media/dvb-frontends/dibx000_common.c +++ b/drivers/media/dvb-frontends/dibx000_common.c @@ -500,16 +500,6 @@ void dibx000_exit_i2c_master(struct dibx000_i2c_master *mst) } EXPORT_SYMBOL(dibx000_exit_i2c_master); - -u32 systime(void) -{ - struct timespec t; - - t = current_kernel_time(); - return (t.tv_sec * 10000) + (t.tv_nsec / 100000); -} -EXPORT_SYMBOL(systime); - MODULE_AUTHOR("Patrick Boettcher "); MODULE_DESCRIPTION("Common function the DiBcom demodulator family"); MODULE_LICENSE("GPL"); diff --git a/drivers/media/dvb-frontends/dibx000_common.h b/drivers/media/dvb-frontends/dibx000_common.h index b538e0555c95..61f4152f24ee 100644 --- a/drivers/media/dvb-frontends/dibx000_common.h +++ b/drivers/media/dvb-frontends/dibx000_common.h @@ -47,8 +47,6 @@ extern void dibx000_exit_i2c_master(struct dibx000_i2c_master *mst); extern void dibx000_reset_i2c_master(struct dibx000_i2c_master *mst); extern int dibx000_i2c_set_speed(struct i2c_adapter *i2c_adap, u16 speed); -extern u32 systime(void); - #define BAND_LBAND 0x01 #define BAND_UHF 0x02 #define BAND_VHF 0x04