Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp701321ybt; Wed, 1 Jul 2020 08:06:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIepifYI3TExj+pSDTR5ojqpgnTvytBqEq8ugzKYngmjvRz58lPKCtZmV+bBmqH76LVzeF X-Received: by 2002:a17:906:48d3:: with SMTP id d19mr22685178ejt.180.1593615986672; Wed, 01 Jul 2020 08:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593615986; cv=none; d=google.com; s=arc-20160816; b=q3HK0GYljRYZAFpaPLA2+bNzJmLoPlclitkG9VGmN+pjeRrpjeyXWXa+YQmJSXaQC5 XBOjr1Yoj9llgdZuXg0mZ5leDfQG/8J0CN5e0EIS+kSwW1dg7Bc0j8uaRQb8LxdPHXV0 RQjRkNyvxO21ut8jmKUwGRgZt+peRKP9kS8T57toOnICqznGJpY+kdYzJechvdIWr0mU rEEEGon7KQvCMykJBbvhhcw8lVF7aAJQ+jHVOShHgfEuLx9dFERSgoN084PIH8O1T4Nb qlM6M+M6v1OBhFC3AcujIxQ7LjqO0a8PEByNrjWvoSwt7q8dSBxuOxy3M6esscEXYdCu u0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KxUrE7L9y+9TqDiddew/tgejsQoBv/bygpOeGcCZN50=; b=my/q2VP32CiLEnu1PGF12ACNzX5UtjsPpKXHSIfjnYP4g5Rh8qFq2o1nfbq+R6GEU3 AevU+wbO0YKsFwnxcRL8N2NJkoUnQjTCu565UMdbv2FKb7PWmYuR3R2NeZcs4w7vW1lN EldVHoDh5LMGcZC/rUI/eKl4idbVGUqrAhETd5+EfgHTUOC1f1FBw6N3NcrXkpi3WCb1 XdCLjuC9ikU8pC2+qHB5WNX6SSKMuxdOQI9BIqN0UKjp/wdW/aAE1QK4YfKF5j6obxv5 L3Ebvyf+yaoyB4F2+AxLuL6MSE5QeAzSYamYo3Uk49orPMBBM435k394giokBjOuv9zE cgoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NrfFfeEZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si4090880ejf.344.2020.07.01.08.06.03; Wed, 01 Jul 2020 08:06:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NrfFfeEZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731681AbgGAPFy (ORCPT + 99 others); Wed, 1 Jul 2020 11:05:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:47730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731039AbgGAPFy (ORCPT ); Wed, 1 Jul 2020 11:05:54 -0400 Received: from localhost (unknown [122.182.251.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 19FE7206C3; Wed, 1 Jul 2020 15:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593615953; bh=eYeQqWGzvCIGM96lU2UmvLU+iTPFUjr0pWA5ecLh5Dc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NrfFfeEZwoHPLjLeCiy9QEFPl1uu6H55aZuMpTH1Q7rlZpzsriJxiOGqo4GkhoOmR ZEM22GOtrqf/RpFKhJd98IlSHq4gI3gMfszNEeUU3XSkQfiAznYmluQ5qzv/GAGRdT naCNvGjlPLNCNdW/KKKbPYZpppp5hW0ih/JzyBcs= Date: Wed, 1 Jul 2020 20:35:50 +0530 From: Vinod Koul To: Tobias Klauser Cc: Anurag Kumar Vulisha , Laurent Pinchart , Kishon Vijay Abraham I , Michal Simek , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] phy: zynqmp: Fix unused-function compiler warning Message-ID: <20200701150550.GD2599@vkoul-mobl> References: <20200701090438.21224-1-tklauser@distanz.ch> <20200701141017.26931-1-tklauser@distanz.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701141017.26931-1-tklauser@distanz.ch> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-07-20, 16:10, Tobias Klauser wrote: > Mark xpsgtr_suspend and xpsgtr_resume as __maybe_unused to fix the > following compiler warning when building with !CONFIG_PM_SLEEP: > > drivers/phy/xilinx/phy-zynqmp.c:830:12: warning: ‘xpsgtr_resume’ defined but not used [-Wunused-function] > 830 | static int xpsgtr_resume(struct device *dev) > | ^~~~~~~~~~~~~ > drivers/phy/xilinx/phy-zynqmp.c:819:12: warning: ‘xpsgtr_suspend’ defined but not used [-Wunused-function] > 819 | static int xpsgtr_suspend(struct device *dev) > | ^~~~~~~~~~~~~~ > > Also drop the existing #ifdef CONFIG_PM so the functions are always > compile-checked regardless of CONFIG_PM and/or CONFIG_PM_SLEEP being > set. Applied, thanks -- ~Vinod