Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2408997imm; Mon, 28 May 2018 07:34:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/6QAKOjgEkmAKtlK1brrwNO+dBZtlIyze5NKHwI0m9puqS5YZzw/iLv53asgL83VWErVn X-Received: by 2002:a17:902:a702:: with SMTP id w2-v6mr13755391plq.8.1527518095001; Mon, 28 May 2018 07:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527518094; cv=none; d=google.com; s=arc-20160816; b=vKPtEkQfNuRWE5dP7us2EL5m16hlQi0iPQWfFQ/NyFNvZCTWcOO58JD4/yeVt7//8k pwgYvk9sM8FykjtbBk9H/5OK89mru2D92bxnDZ0pWb2KQvOA/UdCWlh1kdeOSEihRPka tH4Det26r8lqI5Pr95t0CLFUZZXs0TdQtJVlQ/Y4T7758DNT/O//9VbYMONIs0u++5jb OdXAyJOf9MQ8lpUiBXO3viH855x5Ll20rPJ3ZT8Gi5ok0cR65jG1ZYd3JY7MKkmsuy03 pw7JzI5Ju4uLyfgd7ZszNu8ZbsRlEV+3YIFqFe2MsFu83J8C5KqYSjWsId/stX5Fp81o Sx+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=fsQNOH+BoTBajvt1aU9ohTzq3+GpGxQh3sUgfAIQEjE=; b=B+JvU25BBvxAL2eLeFxVYEf2126Sp6OZ0toZN6gfv51G2FpzOw2ZQBH/wcTNvZAweY hcXpBnLfF422tgGQbEw9pe11d2u7QtwtYPuYNxDukGFC8b8Y7VuxxG2+3zKD1728iRRf Ud1V3aV6suaaVpDVf2oeqOe+Vu74Vfp4VrXXcD3mXdBNhE3KRtWiRfz5QO1T7ZN4V7m+ +QZpM9G+aIR7wMoEUqp7hVeMNhPMX4NA3VGFLnVY1AW5TxIcfUp5KKBKzAtiUmqoK4lK S3qBu4FNXZv6zSAYtZEPkotkeCZKsPNuRvLGOFRbzzooijyz+fpvVbMtzBmZq8KleaU1 EFNA== 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 i15-v6si2343804pgf.220.2018.05.28.07.34.40; Mon, 28 May 2018 07:34:54 -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 S1165751AbeE1Oc6 (ORCPT + 99 others); Mon, 28 May 2018 10:32:58 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54638 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161676AbeE1Ocz (ORCPT ); Mon, 28 May 2018 10:32:55 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6C6F6207E2; Mon, 28 May 2018 16:32:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 22698207D2; Mon, 28 May 2018 16:32:44 +0200 (CEST) Date: Mon, 28 May 2018 16:32:43 +0200 From: Boris Brezillon To: Arnd Bergmann Cc: Archit Taneja , Andrzej Hajda , David Airlie , Laurent Pinchart , Eric Anholt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thierry Reding Subject: Re: [PATCH 8/8] drm/bridge: cdns: mark PM functions as __maybe_unused Message-ID: <20180528163243.538de32f@bbrezillon> In-Reply-To: <20180525155030.3667352-8-arnd@arndb.de> References: <20180525155030.3667352-1-arnd@arndb.de> <20180525155030.3667352-8-arnd@arndb.de> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Thierry Hi Arnd, On Fri, 25 May 2018 17:50:15 +0200 Arnd Bergmann wrote: > These two functions are unused in some configurations, and using __maybe_unused > is the easiest way to shut up the harmless warnings: > > drivers/gpu/drm/bridge/cdns-dsi.c:1353:12: error: 'cdns_dsi_suspend' defined but not used [-Werror=unused-function] > static int cdns_dsi_suspend(struct device *dev) > ^~~~~~~~~~~~~~~~ > drivers/gpu/drm/bridge/cdns-dsi.c:1340:12: error: 'cdns_dsi_resume' defined but not used [-Werror=unused-function] > static int cdns_dsi_resume(struct device *dev) > > Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver") > Signed-off-by: Arnd Bergmann Hm, I thought such a patch had already been applied by Thierry [1]. [1]https://www.spinics.net/lists/dri-devel/msg174363.html > --- > drivers/gpu/drm/bridge/cdns-dsi.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c > index c255fc3e1be5..f2d43f24acfb 100644 > --- a/drivers/gpu/drm/bridge/cdns-dsi.c > +++ b/drivers/gpu/drm/bridge/cdns-dsi.c > @@ -1337,7 +1337,7 @@ static const struct mipi_dsi_host_ops cdns_dsi_ops = { > .transfer = cdns_dsi_transfer, > }; > > -static int cdns_dsi_resume(struct device *dev) > +static int __maybe_unused cdns_dsi_resume(struct device *dev) > { > struct cdns_dsi *dsi = dev_get_drvdata(dev); > > @@ -1350,7 +1350,7 @@ static int cdns_dsi_resume(struct device *dev) > return 0; > } > > -static int cdns_dsi_suspend(struct device *dev) > +static int __maybe_unused cdns_dsi_suspend(struct device *dev) > { > struct cdns_dsi *dsi = dev_get_drvdata(dev); >