From patchwork Thu May 3 13:54:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10382419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2502560159 for ; Sat, 5 May 2018 20:16:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155EC28FE1 for ; Sat, 5 May 2018 20:16:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09B872900A; Sat, 5 May 2018 20:16:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 96ECB28FE1 for ; Sat, 5 May 2018 20:16:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EED1E6E2CA; Sat, 5 May 2018 20:09:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C52F6E17C for ; Thu, 3 May 2018 13:54:29 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id j16-v6so26109515lfb.7 for ; Thu, 03 May 2018 06:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ac0EWkj7/ZP5bO6BEr4P6aAF1kj3SYkrhFoBZNxEwY4=; b=OdbUrlObWXHtNHpBnvvo6mLFcrTImGYsbYZnEtzMWs5cJSGTrt4pNgi5qWgk1a6Z7G N5Psbsh726ywHGPP0JJSXGsCzfE/omLVWdbuDXpH16KH2WFIZUQWcObyNtX4HWrpU4fG FLcgnYwD2AOLj31ifnyoT/+dA+NMMZzIZBhkk= 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:date:message-id:mime-version :content-transfer-encoding; bh=Ac0EWkj7/ZP5bO6BEr4P6aAF1kj3SYkrhFoBZNxEwY4=; b=ZRc7oSoxmaaZzXHC4BnkRWK4l7a7zniOr8wFcnGKvsY38RfUbbPzinZr/kpfw3rkMY TUQ+CG9mJVsM5e137pVqxWE7EbLLWxKjZyIXwJrdRq4QerzuMtbNwXo8ex+3nO3Xfk1m ROt2sKHclNuFG0SBWw4NV+FqgYZkfNY3WJey5+EqrgSvKfk91BCueWqwWRmNgVg1qNy+ ZxugvKlLEhBoX0DCiXdVS4ofBzPAO20IGdb5FWQz6uSSGENBJX9LSzPjdtlMcVJI8ceT 74I7WRvoNm/HwX5Ln9FAbWs6q+dSl4YJe5BKnsfzgigTnmxvn0lYK4XR4bC+Wz6fVUq4 0nzA== X-Gm-Message-State: ALQs6tCaH24JQDlziyR3ypi0XImKRhCvrnqxVx7xTLS6ckj4F3uoirks qN8unDvf/+DnbHa8Z2f9mpEpuiQelEM= X-Google-Smtp-Source: AB8JxZr2GUtRXXH5kNop9aCNBUA0oZ5J6QIrvLx6lTOmtQAC799mcnAX9l1Emb3Vvt/iLnvn5yfYtg== X-Received: by 2002:a2e:4949:: with SMTP id b9-v6mr11983023ljd.116.1525355667804; Thu, 03 May 2018 06:54:27 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id c26-v6sm2877493lfh.25.2018.05.03.06.54.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 06:54:26 -0700 (PDT) From: Anders Roxell To: architt@codeaurora.org, a.hajda@samsung.com, airlied@linux.ie, Laurent.pinchart@ideasonboard.com Subject: [PATCH] drm/bridge: cdns-dsi: mark PM functions as __maybe_unused Date: Thu, 3 May 2018 15:54:21 +0200 Message-Id: <20180503135421.2294-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 05 May 2018 20:07:53 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anders Roxell , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The suspend/resume callbacks are now optional, leading to a warning when they are unused: drivers/gpu/drm/bridge/cdns-dsi.c:1353:12: warning: ‘cdns_dsi_suspend’ defined but not used [-Wunused-function] static int cdns_dsi_suspend(struct device *dev) ^~~~~~~~~~~~~~~~ drivers/gpu/drm/bridge/cdns-dsi.c:1340:12: warning: ‘cdns_dsi_resume’ defined but not used [-Wunused-function] static int cdns_dsi_resume(struct device *dev) ^~~~~~~~~~~~~~~ This marks the functions as __maybe_unused to avoid the warning. Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver") Signed-off-by: Anders Roxell --- 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);