Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1628421yba; Sun, 5 May 2019 10:19:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeMFZnzLutgKqEWJRCJR/qElGqhwlWvIqcrruX5OBwCG+WKiW4icjPzQN5BEfPiQf86IGI X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr26457614plb.269.1557076771692; Sun, 05 May 2019 10:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557076771; cv=none; d=google.com; s=arc-20160816; b=Wx/AQ+zSAIDUkXSe7Gd9gWirSvLGVsLYNWybUKlBKJgnYC11Bqa143I0GJx6mzjTvS scP2oDo+7/Q3/DYGI0704sAMv/zq/CKx/z/V/Xitry76t5TbNyoa2F0Q9dHA0NIkE8b0 ULl8U5ysiG5W5iJpWATAZ/bfGq7Vr1pnq9bE+mY+8Z+z7moiG9Yh3DcEQhz9pt/eI79h rlm/qGby5PDOqk8yO+i1s4Z3eFzvSrnQIMhlProopiB83xZir+8lw0qk3IKg7DGVqTyd LEl5KIKJtpYgOk9fjuMTAB5iLpScDD+FuctAKW3aGtBsJ1Tcr7eGuwR6cNkO67spQVAu KejA== 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=H5zTqT8loGRtEX/OVjP4zSmuaIW4JAWx1Y0vEpEQazo=; b=GHbH7Vy+XCY5+l/fjj44SXcnLx8CFFGZeM4ftVyttW6zpE/TR7EgNJOIVucYMQQ0cN oIbzgPJBt1huR1RZLP/ncQOVZQ3UjRrz9q+1LLLJbuu1jud90skH/uw58VMqbXeh3wce bCQDSrs9E1dUmbAWQHnyb4BWlbreqka5GxxYPpoehuyTPQVJnm+EqPfi9LbaAK2fYjRe S5Ly5wNtVOZ1MW/RlRuKmHJXwGT6z9JAzqadcaypqcx0NYkv04DVhcNGorbRRcuHj5vb CfkMzfsSj/6IfNKl0w3+/wa1i10hsJ+2MbAJzx0lu4IOyX+9HIoZ5sP/5/mTpTBzS+XU 5d1g== 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 a15si12265490pgd.166.2019.05.05.10.18.56; Sun, 05 May 2019 10:19:31 -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 S1727657AbfEEQAd (ORCPT + 99 others); Sun, 5 May 2019 12:00:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44737 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfEEQAc (ORCPT ); Sun, 5 May 2019 12:00:32 -0400 X-Originating-IP: 90.66.53.80 Received: from localhost (lfbn-1-3034-80.w90-66.abo.wanadoo.fr [90.66.53.80]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id EACCAE0002; Sun, 5 May 2019 16:00:29 +0000 (UTC) Date: Sun, 5 May 2019 18:00:29 +0200 From: Alexandre Belloni To: Anson Huang Cc: "a.zummo@towertech.it" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH V2] rtc: snvs: Use __maybe_unused instead of #if CONFIG_PM_SLEEP Message-ID: <20190505160029.GJ22550@piout.net> References: <1556586144-7070-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556586144-7070-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/04/2019 01:07:08+0000, Anson Huang wrote: > Use __maybe_unused for power management related functions > instead of #if CONFIG_PM_SLEEP to simply the code. > > Signed-off-by: Anson Huang > Reviewed-by: Dong Aisheng > --- > Changes since V1: > - use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() to make sure snvs_rtc_pm_ops is empty when PM is off. > --- > drivers/rtc/rtc-snvs.c | 19 ++++--------------- > 1 file changed, 4 insertions(+), 15 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com