Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3123673pxb; Mon, 18 Oct 2021 08:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGPYjHADxEzGZ8j5G3cGBMeEYL5k5LfRIfbjtXhGnXL5bvgqe4bE30v99FbRJS+vUggnIE X-Received: by 2002:a17:907:7fa8:: with SMTP id qk40mr29794219ejc.445.1634571556185; Mon, 18 Oct 2021 08:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634571556; cv=none; d=google.com; s=arc-20160816; b=CN5R34wQX5d2YiA3vYIyETddp/PLBKXW7E+iJrCwAaITSR5H9HK//fMN9x5hxLL4Yt U74Orlue8Z1ysUfQbf8Vz71ePnJljfLa2m2vtZdedWSQP44ecIQJXFipZdkBVMQjM7Zf wSKNuTxC2J8FucRKANJ8Yth31KPpBoBJa0FMFNlEKNSm5uaKrMW6Iit9MrT2P6c9rb54 Mk+p3faSWMAqU/2WoHJ/Rr+gDbspEwybIgKvB7h8LEikVYenhpDpEa22JWturuQUL+Jo MeZQSk4riBxEG4VbWgiKcndyyU9xDY9q6IWTnKlamYiQPbFl1Q8Kpj2pLTS9UOSQ1AR5 j8Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Q8xPLV9MqNlFmA/QoYi/NcoIV8w8d+1qVympxurC06w=; b=heeDIbRq0ZQxhLIp7qD++QLDoshb+8OeA/A6qQItz3LGig9Ix66kjswN8rZtcqy38T kYFGdfiUKUevPOkcMfDzXMNktRqFqgWSWPGQjtyW/0RdVo3Pw8c4ZpPygnqDG27sENmV Wg5cSelMLuPZYWI41TfUerde96AkrUO5bBBdXHA0pRpSiQnLZki5/KOz/bYNJUFa1Mrl 9I4saVWAVt7xwRlttCwFpZU7+aVsPBxaNwOwa9mhsNv/MqL8V8NQ90BSQSeJjLnAiCDT 0ZX4QpkLdcIbJJCqCa3kkfckGkPNI+3nJaTS/ANWaOmCy8evb0vFSTWKhLj+rRio7qKa R2Ag== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si20275039edj.372.2021.10.18.08.38.51; Mon, 18 Oct 2021 08:39:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232105AbhJRPjN (ORCPT + 99 others); Mon, 18 Oct 2021 11:39:13 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:57371 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231741AbhJRPjM (ORCPT ); Mon, 18 Oct 2021 11:39:12 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 5459D24000B; Mon, 18 Oct 2021 15:36:55 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] rtc: pcf8523: always compile pcf8523_rtc_ioctl Date: Mon, 18 Oct 2021 17:36:47 +0200 Message-Id: <20211018153651.82069-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018153651.82069-1-alexandre.belloni@bootlin.com> References: <20211018153651.82069-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compiling out pcf8523_rtc_ioctl saves about 5% of the generated machine code. However, it certainly never happens as the RTC character device interface is the most useful one and is probably always compiled in. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf8523.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index c5d31c525997..103557f48409 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -237,7 +237,6 @@ static int pcf8523_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *tm) return 0; } -#ifdef CONFIG_RTC_INTF_DEV static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) { @@ -268,9 +267,6 @@ static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd, return -ENOIOCTLCMD; } } -#else -#define pcf8523_rtc_ioctl NULL -#endif static int pcf8523_rtc_read_offset(struct device *dev, long *offset) { -- 2.31.1