From patchwork Tue Jul 31 21:24:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 143220 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp69129ljj; Tue, 31 Jul 2018 14:24:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfT1n2RrQRL1JknGDSW1p1n5J9qntYKNjDbb0sDonCfRcwr5ZPwORgvr5D3kGcJt8jkF3PU X-Received: by 2002:a62:df82:: with SMTP id d2-v6mr23918892pfl.189.1533072266818; Tue, 31 Jul 2018 14:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533072266; cv=none; d=google.com; s=arc-20160816; b=BN7qx19Ll3P27n6EYnXgX/W2jiB5XnR8+XWlaJblAaUoYyeo9c2GJFGzgsVM7V6RwG efpWcwBfMChpMLVFY7T8EnLqG2W6O35cZlGRoFbnwVs7CfYN1mjS2YFRgfLMdbQ49Ret P3e3LpIi0kPsEzmyqWH19wPZAgmovy65ce8IohxHxiDdb7Vo1TBZx6sJaQjSJycy063K fa49lTt5UX+0seeEMuGsB6UqQ1kf+CSSzRaY1iqTrOw+zB7GzwpPn+KINKpxdUC9G62H RHO3WClmtRkbgKS9iEu4RWtnlIbUq86jsUfRSpTe21dD46vqghft72F5DSN7JGUA6VTX qSPQ== 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=QMiIm0es48vjsLdQKXum+qUegu2/ApORRqOztXnCZ5c=; b=aJrB6b9GNZ687GgqQzl9qwUnez8bjBSr3VrXT2fpGFstK/6V7dUBDna9lS0pfSyZdp TUjvSw17jlVOfUC5NGfqKqUAGU7Sv6xdg2y3evHbN7sdA4ugbGTe+REo0Km/ZljhyLfK Af25MG4eOFeQzpKzDnpFwtH55AbGwqiFT15jyDiJZ74n9WKeBuq7Y0dXP18ZDWCYJrDS qGcVCWziDRbW2GYfh1yhQYVdMP3uDv9+tkRzRJeJqLGiTe0hf9EULzgMUXNv/vvcSbIX gWDb11sK1p154D/ULySgm08CLu+OOnehtrLGm42giYLzXSL2ZZj3ADMJmfTiYoiWi0dX q+/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ln+2YZdI; 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 a18-v6si14181748plm.122.2018.07.31.14.24.23; Tue, 31 Jul 2018 14:24:26 -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=Ln+2YZdI; 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 S1732528AbeGaXGg (ORCPT + 31 others); Tue, 31 Jul 2018 19:06:36 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38439 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731192AbeGaXGg (ORCPT ); Tue, 31 Jul 2018 19:06:36 -0400 Received: by mail-lj1-f194.google.com with SMTP id p6-v6so14977462ljc.5 for ; Tue, 31 Jul 2018 14:24:19 -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=QMiIm0es48vjsLdQKXum+qUegu2/ApORRqOztXnCZ5c=; b=Ln+2YZdINtn/p58tGqZjatxrViCwjmv7SDLrDlCI6tHevBifEas+UskREftD2BFsBE tyq2D/OSBKlJfkrztYBMM3kCZaP0PQml1qrfyJmgtW0eh4T9LWzRFlBsZK/9183jlc/+ 03x/sXgBLwIDUDH4KHVU7BWpVwJUueQUoJPj4= 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=QMiIm0es48vjsLdQKXum+qUegu2/ApORRqOztXnCZ5c=; b=XSapziTSybeXZH9KZc2xGCyjGEMZLEdnSYDbSgzvSVhfXYbsEjl0fQ7S2Y3taiWfyc XxgM6VxfckQdmRm4X82K61uxRN9F3or4BwBD03WC+kXZeVjtFghCg30kNSxbk6OeLSAj mXCP7B0sfwfADYcuNMTiaPDbl6KVqt6AAYHdK/DB99WzGRU3PzTXbEw9NRG23v7Tdqt/ Yh1PmhtvGF7SNUn0YhAn3/c0pVbSkJNS7Q5afjTPV9N5naM1v8C6/35GlikwY7Hvp2tY bL4KgA/lLo0ZVkY2fVuRR2Sdg5RQN0YiDe5JqE5Gv8H+fiEMsTcn68mMVGBRflOU0u20 wO6g== X-Gm-Message-State: AOUpUlF8WCe4PJA4uciPkvZ5rPp48W11PY0Ru5K77H159Kqs4OM5cxmY 2LXPeP/bO5QdEJ2vx5ro2D5m4g== X-Received: by 2002:a2e:712:: with SMTP id 18-v6mr18580340ljh.101.1533072258601; Tue, 31 Jul 2018 14:24:18 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id h4-v6sm2076910lfj.69.2018.07.31.14.24.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jul 2018 14:24:18 -0700 (PDT) From: Anders Roxell To: balbi@kernel.org, gregkh@linuxfoundation.org, enric.balletbo@collabora.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] usb: dwc3: of-simple: mark PM functions as __maybe_unused Date: Tue, 31 Jul 2018 23:24:05 +0200 Message-Id: <20180731212405.27572-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.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 functions are not referenced when power messagement is enabled: CC drivers/video/fbdev/matrox/matroxfb_DAC1064.o drivers/usb/dwc3/dwc3-of-simple.c:223:12: warning: ‘dwc3_of_simple_resume’ defined but not used [-Wunused-function] static int dwc3_of_simple_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~ drivers/usb/dwc3/dwc3-of-simple.c:213:12: warning: ‘dwc3_of_simple_suspend’ defined but not used [-Wunused-function] static int dwc3_of_simple_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~ This marks them as __maybe_unused to let the compiler drop the function without complaining. Fixes: 76251db86561 ("usb: dwc3: of-simple: reset host controller at suspend/resume") Signed-off-by: Anders Roxell --- drivers/usb/dwc3/dwc3-of-simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0 diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 40bf9e0bbc59..8f6d39463e99 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -210,7 +210,7 @@ static int dwc3_of_simple_runtime_resume(struct device *dev) return 0; } -static int dwc3_of_simple_suspend(struct device *dev) +static int __maybe_unused dwc3_of_simple_suspend(struct device *dev) { struct dwc3_of_simple *simple = dev_get_drvdata(dev); @@ -220,7 +220,7 @@ static int dwc3_of_simple_suspend(struct device *dev) return 0; } -static int dwc3_of_simple_resume(struct device *dev) +static int __maybe_unused dwc3_of_simple_resume(struct device *dev) { struct dwc3_of_simple *simple = dev_get_drvdata(dev);