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: 134905 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1956203lji; Thu, 3 May 2018 06:54:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5FjI8huVu284oH9M5HYolHSMttxPwDlbtH9AjJLVEUL4RVidz4RzcTBJWtsqbbz1V0KFY X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr834409plo.329.1525355676220; Thu, 03 May 2018 06:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525355676; cv=none; d=google.com; s=arc-20160816; b=GwxGspkrnzRXCVeibIw9yzFRbuzsWG/MhDYcyvI0hf47I0H1T1s8PkqdrkoKhU2RhG nNxsn62MBeHdgHBKhIlHK/WapZRIcIU5wSDY4KPjupWwSBNx+TA+BfV5N/eIPoDreEo+ zzXu/kO5m27clGe9nqIKYHpUAjvVPH9SdkQ+AWV33t4y9M4bHHGdBnE7qeEccjGuwVRq QMe0A5Ml55CybYuFXLCmxOHMkRmoMTCrHG7gJPB5qELJSiwWDNDGr87ZgNEKW1gGeKh6 Zr27wim6csJim8kqhzls5X37S9qo6JIva1I5VUfhM1KO3JBMpCwoMfZoDcqgFBxB4xqB JJVg== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Ac0EWkj7/ZP5bO6BEr4P6aAF1kj3SYkrhFoBZNxEwY4=; b=wfDOT/pu/QY/RbuixGdamMRfU/Vsk2AO2zI75PMQ7lOqHclR17MOIxtvgAkvs4kEj8 8MLrPZSIuFGiQsYqnH8VBgjhFgIfDl5dRnKl3suupFHUtIv2FbVYKXdeRd5uYIJIqNro 93/c8MPor2Gw/7vuUaBbwo9ZPmghDtkeL16pg5ykwgnboi3dPpWPUZSilNEjKv2ArN11 32WIhu1xe5cbtFpds8FUM57lJ7ircFi7sEGhp2O2AbPGE1kIU4ybe7JJ5ZKAezWy3IFD MY04bH3LbNJ7dnAEFICkHz8sCkqSdYwJMIhCjQIa/eb+KrOqGc7XmA++J0dDFbZ1JduR 3pTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OdbUrlOb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11-v6si13855451plo.352.2018.05.03.06.54.35; Thu, 03 May 2018 06:54:36 -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=@linaro.org header.s=google header.b=OdbUrlOb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751286AbeECNye (ORCPT + 29 others); Thu, 3 May 2018 09:54:34 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34891 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbeECNy3 (ORCPT ); Thu, 3 May 2018 09:54:29 -0400 Received: by mail-lf0-f68.google.com with SMTP id y72-v6so12370045lfd.2 for ; Thu, 03 May 2018 06:54:28 -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=Qq3DBppDL3N+aPtff7YehC/KWJryGNC9awW/BoiOJc0D93M2MwFU8Jg5FK1qBXYC98 XoCaiVmJHezsHm3WjBfdTSEfboY1SWj3xLSUTzyWL4KdtjC+q8eMWmQdcsazAek2/QAK b5EyNt/Yy1cNzy4Sp1W63KhFfvWMzUyTZL3kW1bu3cyx3lXHwod7QUGpcfLQLbOam7wD p2RzlwJrGpO1bpaKwO6wkaKmeGJ24amTvzZ7fDza1m9bCIjR3tdC93GcTxXoFhlsOWLs cOjKfFUrDutwstI2L2J7WsJwKeq935zpKBIZ7Xl4hqm0vbwo5wCGugJorJ9yDHXeovKn FX2g== X-Gm-Message-State: ALQs6tANGU5/vq1qYqzNebugA7LgbBdrinhyQ72ii4tCOApgFLZCqWtK 4GaOjht8FZAFTjBKuFfmvYgUXA== 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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anders Roxell 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.0 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);