Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp589399pxb; Thu, 15 Apr 2021 01:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyJ0TZSL4oKmdnudiKAXhn4IS4j4ZQb0BYFNItl3CP3QE4B0Tg4j5MLL9PsOcf3fYFdDA+ X-Received: by 2002:a63:e552:: with SMTP id z18mr2520983pgj.100.1618475960267; Thu, 15 Apr 2021 01:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618475960; cv=none; d=google.com; s=arc-20160816; b=dMSfEQ10J1IgZ/ohcosIk/Mtj5T9sNYUQLHXdIX/0uXubzABC6MGc+3gcB9izDJcio VwXoo/d8oWZyUQYXovkHDOg5heqx0VV6XXnTFxEZEvCN96yyJCeuA8CQxUz0WofvfXPJ po+edDtPduzUHKL7F6xutI8hhmeh2BEN+5jMQYasq6Iqr+TMgrhIYUAnmIoxjIGFEnKu IQff+pf9Xp8BOqbSBJqE3h7njpt0grTy7gAEyCfIccuj8N8vfpk8gbEW1rshUGtcD8iO ZLgXFLI2Pr9Cn2XGRgnhBAV6F31IscCNB7Yghk8PKuDDjjDiJlOcjDQpDzVLnzPaN8Bv qFXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=imntEq6SYNWiz0/uBVruLL1gm+9MZ3PaX66GQIVZVz8=; b=xaFMZ5a85u7RVIsuQwLvdlFwmEWmgn+9hy1AaYO3QAcmmClQ642daHD8c1ovO3rE+I htMVfUaDO4gpLX4S/8K4ctsW9OaQ8NtC/ciAnzz64H4WWsgK7d2oiX9alijDP8l0iNtJ JR9L1IvqUCBWO8A+sLTHiUno5lVtg5p55K6LmQEqTe5trmbxUZAxBQKUMxg4zDfmVmDX /NKPByRRJimWALvp/WpYSm9hkgqKrlFZrnhf3fXYXisH/eVziHZQ3Tv1bYnIvciiVncZ zSrIf6pdureklHHLRA1d+NszCp1sb+Z1V0DjaTXPO2kQyAhrZOlMWg3aHtpoDSQjFwQZ KeXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si2633693pjo.69.2021.04.15.01.39.07; Thu, 15 Apr 2021 01:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231741AbhDOIhe (ORCPT + 99 others); Thu, 15 Apr 2021 04:37:34 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:53719 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbhDOIhe (ORCPT ); Thu, 15 Apr 2021 04:37:34 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R631e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVdGCoR_1618475824; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVdGCoR_1618475824) by smtp.aliyun-inc.com(127.0.0.1); Thu, 15 Apr 2021 16:37:09 +0800 From: Jiapeng Chong To: a.zummo@towertech.it Cc: alexandre.belloni@bootlin.com, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] rtc: remove unused function Date: Thu, 15 Apr 2021 16:37:01 +0800 Message-Id: <1618475821-102974-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/rtc/rtc-ds1511.c:108:1: warning: unused function 'rtc_write_alarm' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/rtc/rtc-ds1511.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index bda8843..1109cad 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c @@ -104,12 +104,6 @@ struct rtc_plat_data { writeb(val, ds1511_base + (reg * reg_spacing)); } -static inline void -rtc_write_alarm(uint8_t val, enum ds1511reg reg) -{ - rtc_write((val | 0x80), reg); -} - static noinline uint8_t rtc_read(enum ds1511reg reg) { -- 1.8.3.1