Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5697358ybe; Tue, 10 Sep 2019 07:34:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAh0R1L16ehXRd/d7j8f3o4Ew+Qq5jAtUF3UCz9qSVvbgT6ooUxkFJqTK/5qzZVmCXD0No X-Received: by 2002:aa7:d95a:: with SMTP id l26mr31094408eds.297.1568126062845; Tue, 10 Sep 2019 07:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568126062; cv=none; d=google.com; s=arc-20160816; b=P3tQ+guIWYSNKpS27rfkxfHmBADojsAi03xirbxFBz+3CxpsrMYgMCZ7ExRsSTVq3Z eC2vBU4odRZlzirgTXID8pZtIwnRNHs+37QrueutCajXPmudF/ng/NEo8ssOwfjb5DV8 KPaxY2HRmsXn277Sm0RRaHudFqfNKl8ixAg6EQDLsUdB6uNMmsfbszEeftJTqj/3BDKV 0M6obctLmu0BB64wwg7hX0jC+VAVcuuyfeVtUySr04Ykkk+Hi6/LqdBbwX8cBB/FqyKI QocOBUMNYK4LsUQ15at/UoLFUHy+EX+o1VXzU9J9FkFgzE+ualrgtoAcAprwe0R7QqVs vHxg== 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=D2VdNQwgWHzVyjg1OQdeDRi34DjxuS/D+4GUIMws4wk=; b=wxYMdmmNhuPunyVp7zOflzBfBGb4TUIKwtVnJ9XlZg+ABKp32d4u7UxuR6T5R3grzx 48+HNh/XD4ZsO2f7YtYY5Yas7phs6jBSgaMH/T8gWpcFkRs5INdt+XXDVTbn2vxqcUYJ UtNPcwjD2WvMdBHwmaClIHDQSJPJdA0CSqu3s8wu+hVhbR0LlDJPE4TqzHkaK/e9AI5d YN63jVeAa0MmM/1nIcWYXDgTXW9ttB7eAUJbDGCvetvcUQP84Nreq3peGLMpQ4ct9mh9 luZnt9xU+r/47e1zBiWxldbpdPLv0Mp1sp9WugKVlM1JLNwTCsewpVbjAvKMyGvRG/T7 QfEA== 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 53si10806085edz.275.2019.09.10.07.33.57; Tue, 10 Sep 2019 07:34:22 -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 S2388220AbfIJOQD (ORCPT + 99 others); Tue, 10 Sep 2019 10:16:03 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:48755 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbfIJOQD (ORCPT ); Tue, 10 Sep 2019 10:16:03 -0400 Received: from localhost (unknown [148.69.85.38]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 9604424001D; Tue, 10 Sep 2019 14:16:00 +0000 (UTC) Date: Tue, 10 Sep 2019 16:15:57 +0200 From: Alexandre Belloni To: Arnd Bergmann Cc: Alessandro Zummo , Kevin Hilman , Neil Armstrong , linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: meson: mark PM functions as __maybe_unused Message-ID: <20190910141557.GU21254@piout.net> References: <20190906152438.1533833-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906152438.1533833-1-arnd@arndb.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/09/2019 17:24:29+0200, Arnd Bergmann wrote: > The meson_vrtc_set_wakeup_time() function is only used by > the PM functions and causes a warning when they are disabled: > > drivers/rtc/rtc-meson-vrtc.c:32:13: error: unused function 'meson_vrtc_set_wakeup_time' [-Werror,-Wunused-function] > > Remove the #ifdef around the callers and add a __maybe_unused > annotation as a more reliable way to avoid these warnings. > > Signed-off-by: Arnd Bergmann > --- > drivers/rtc/rtc-meson-vrtc.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com