Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1766927ybe; Sat, 7 Sep 2019 02:28:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8MTaM/wI5Idgpg+7BAyDiZtXl3TzWByaMHXfhl3HisCiN7PyGy4NOsyrSQsQatKKGYG77 X-Received: by 2002:a17:90a:9105:: with SMTP id k5mr14669411pjo.9.1567848518215; Sat, 07 Sep 2019 02:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567848518; cv=none; d=google.com; s=arc-20160816; b=ZIyEWKNc2BZ9iwNJxaKT9m+aWDcTvn1tETJjXUDyehwIe/OFFiv2fdF6MdLjpVY+6X it7Fzmqy58pv7llyStqmwXgFj94zhOSKgYQeBB5q0Ph3qQclhKQW2HBCWHx0tNYW8IuK I1MR0EZGZFFBAwXtVgXUuneWwU2Kvw11aCQeyCk54GwGTz3gIDcvINzJtBP2qp19rhFp gbb2BewF73RZD20b0GTWM/COblxXIDVqkMbGd0XCDDrQeCe2d3MJ+921A4mDfyj0vOwc gQq1UmwWsdpI2MpRBj7cpFFRWxylpTh9sAg/F+zrZRBef7W/7FAp4/D38/snaW4aP1xw gPAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=khSISmDs8BJQ4FTYTxZnbVWIBB1FiQsVmFwhUOKpZSM=; b=ZNtf41wwsvSYKrpSRtQGdMyQt5vTqjciEUBZ9Jsm6tT9Fhbs1l8MxXQHdqWXDM+kOy 99E1Vw8rUbsSlci0WFvzTKT1o1AYao0GBqHkN3sHOGRQzvnNYdO45S0i6yCp7jMYhI5m h1bb/AXJ149MX2ROVLpWYtQXgB4/5eholxz4OtM7C6gKRzxr/TNDPKTzzVjFM6qFA95+ rv5ZtriFJxFseZt5uWZeXwAgWDWSnExoMqxs4oJFWzd3VjRUhijrYEgPy3jKzR2uRfDV euL1hmYnG8YFVoonIBIl105UwRqS6QywZTN95LmuwkjMS1Up6BEGNAjOjqBqNgTKJV8j GPvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fC8CMseB; 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 f1si6881536plf.410.2019.09.07.02.28.23; Sat, 07 Sep 2019 02:28:38 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fC8CMseB; 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 S2392387AbfIFQ4O (ORCPT + 99 others); Fri, 6 Sep 2019 12:56:14 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45388 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727770AbfIFQ4N (ORCPT ); Fri, 6 Sep 2019 12:56:13 -0400 Received: by mail-pf1-f193.google.com with SMTP id y72so4862126pfb.12 for ; Fri, 06 Sep 2019 09:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=khSISmDs8BJQ4FTYTxZnbVWIBB1FiQsVmFwhUOKpZSM=; b=fC8CMseB6BVuogyR2ZnoGXAzlmprqs0RnjlaUVhsO9bmGmb0nKhxhAVrn3gPPV/PYP 56oRNaUcfjBU9HpWd/dakx4VbHzqZv8e6jsppXkCTh11JRPQsPZftZeTXfdktv60CR2T hyNO9VdPrZg6YjEphv1OthPcXOxKq00gdUin3fAbqosi206DNtuJIgb3OT6fqRDndBBq jeU/i7O5wrfUA7KmFi+CCNTJ3jkO2CFsoK/yN03UvvBtuzXSj68uz913/WegIDkpk+FU pc8OjttkDKFRwHI+dapGTtDmQlAieCTqq4rpwUgC+m5it3R1fLYRf1pPJ0sLGir4KMI8 D4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=khSISmDs8BJQ4FTYTxZnbVWIBB1FiQsVmFwhUOKpZSM=; b=ojs0NJjynW6m5djKUYQBK+f/ADCDy2ZImi1j5XKE5NhxyvF6h7teQyi4chQRCAMdU8 C9O6wPII5pGMP+itDBMvWPcUgav+Dpbrh/pY/+tppk0JUACRqHALDL/YXxd6rNKYSyBP 0UdOVV73dob+qoBm9UKocwSFOPSbiTtxqJ19bpT/UhDuEhE5DVPfYRQofAVhmMKT801R /nU2TV6gfaqFlNfdW2rI7AA1bnYqVRqNFNGBcMMGnDQJhXhHTsIxhKv/gMxy8lkdHLoH ilWxInlEkEeK3393sQuNdcvCxdFxbSSi5JxMCDJbPSi7TZa9fGHNL0PRz6EHBH/p6b2U 1F4w== X-Gm-Message-State: APjAAAX5HJIPhSepAvp/Yut1JEhFTsMVBritP3HUaOGyWG+2hJNWQJx5 aZJ3fXw2D0062LschW7XU+2g0g== X-Received: by 2002:a62:524a:: with SMTP id g71mr11734144pfb.154.1567788972891; Fri, 06 Sep 2019 09:56:12 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id u9sm6435931pfn.29.2019.09.06.09.56.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Sep 2019 09:56:12 -0700 (PDT) From: Kevin Hilman To: Arnd Bergmann , Alessandro Zummo , Alexandre Belloni Cc: Arnd Bergmann , 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 In-Reply-To: <20190906152438.1533833-1-arnd@arndb.de> References: <20190906152438.1533833-1-arnd@arndb.de> Date: Fri, 06 Sep 2019 09:56:11 -0700 Message-ID: <7h1rwtict0.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > 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 Reviewed-by: Kevin Hilman