Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp383445ybi; Wed, 19 Jun 2019 00:56:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv0mJfEA7kNYnEkHQ7gXwqUakCorToWOCPX8sWj3nIMAhURtnr0RdbtrlEScfshkhtACvt X-Received: by 2002:a17:90a:d997:: with SMTP id d23mr9314091pjv.84.1560931017663; Wed, 19 Jun 2019 00:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560931017; cv=none; d=google.com; s=arc-20160816; b=gBql6bOE43x3vnY2Ciq9iGxtL4W0bL/hEADMV4WUrybfTPxa8LcLvyT8MxkLI4TYq0 gP8wWhQYjrkeB430bNS2iWXJZzA9NReTu8ziQDESBafodFY6sQ+ybQ9OUjmTyuAoJNkT 1B0LNe1toxgcdPaTSH+zgN6H/42xRz1tOQlZfra/5Ho3fVlr/I3SPY8XeBJFn53hN1Nk /mw7JwyVeVyuj/OIIAQc4WE958cuSvzxVbn/D4dQkt2SQ+5OOQ1lJLvnwlTYTiJJ8l0j ygw/ujTNuiVWRSsUSQ7Tl/KTHn0UPCP0vL2nlCv4lnunjHjTj02sie6esXZ1sl5W6drn 2CiQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ay8I7XJ9iCOvh0M9Fd42oOlQR4wemxkRFmtvtAGMWPE=; b=0X0oia1goyOgKoZczJlxM71dI0s12mzlD6SkUN0MHNucEnq0k4/F3Av+yuL25AKHw1 N1KzfYNbClxJOrm0igfFsQhFzdCxqjGBlN6shLBLOPuQyrAQwk4mA3CmIMWLFCmM1pZF CwM/569ODLQI5/GqWY1q6Xu+WclJBvXDDTqymQfz2CEIKq17St1tO0XxAPSEGynTknVx Tsf/TXHG7IYP/Bs+LimK5D+7XtEd7/sDb8FIgrlJx2BqaXnTneDAoF8excrLYeYtkfIn maSdCSDQtpByqRz5n4RYUCAtbC5RqyXmVgbAs0fmQUCOZYXdPc3JqElL7RfWbnZrUFVs 1wgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jF1jLJIM; 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 k193si2508406pgc.473.2019.06.19.00.56.41; Wed, 19 Jun 2019 00:56:57 -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=jF1jLJIM; 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 S1731143AbfFSH40 (ORCPT + 99 others); Wed, 19 Jun 2019 03:56:26 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46644 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfFSH4Z (ORCPT ); Wed, 19 Jun 2019 03:56:25 -0400 Received: by mail-lj1-f194.google.com with SMTP id v24so2228918ljg.13 for ; Wed, 19 Jun 2019 00:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ay8I7XJ9iCOvh0M9Fd42oOlQR4wemxkRFmtvtAGMWPE=; b=jF1jLJIMjj62N1sJ/CeWes0b/z3GjaG3HiDI20T0YQdCmP6e6VUjjIPaoanpdpYeD1 oyOKbIViVeufbYehdZ2oxsUTHxmoD6kPcKZdlyW3q04HpdT+ICakz5JZxME10w5v1MzS gN5AZJzt61T+WDruBbbUOnKO4p2HujxsPXsNvXZ1yp9K4IcCLdeZbMAPjAPw6aGLZJK6 Sr2MG72KAG9m/k6x3Bo4KAQtefacuvQbWqWzAdbdFD/+rELTYjZh39PyHkcUwnAe8lYx pTCczbloa5W3cr9OIol0bg88q0wLkTYk5Lgb8qYs5jXnZcich6NWQs7/VmcJY8Ztna4z rOtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ay8I7XJ9iCOvh0M9Fd42oOlQR4wemxkRFmtvtAGMWPE=; b=cAVaJLqFD2cdPP8TfXYR3SC8pacBMTb6X/ueJK25Di/5esl1FyYs+AXD3qD/ckBabb NwENbtYpWSVwUUvKWQ8eV4GqNZW/X7jE2RPMTZNK1WlQzTJGEt8wFemn0RLT/xQroB5r 8N409fQKR2b6V/0qeN6SqOrD7O1sEVtUeA9JQ+yIEk3aiYp8eyScEopHv36tGWRR2mNn AyX/VMkQWya2ODndlforCkfLP9y1gds0q9sHgkzs89YpZ65YavxcY0S1+Y5/U3q/w7fl ZdbzfBIRBSLNYrggPg8qnak7yhRmrUPQTIPR2uvKt/0QFFQpiYgom6e64o6SlIzXbejD DAww== X-Gm-Message-State: APjAAAUm7bWs0wb7LlQK7ixg4n3bM6YWGIcbECMH94os7zErLAWeuet6 qZsm6xXDuSD/U3BRrm2pCJsAIuOAjpznZuZ37fmWRg== X-Received: by 2002:a2e:9284:: with SMTP id d4mr66873430ljh.26.1560930983583; Wed, 19 Jun 2019 00:56:23 -0700 (PDT) MIME-Version: 1.0 References: <20190108143713.15120-1-anders.roxell@linaro.org> <20190110081615.GD5213@ulmo> In-Reply-To: <20190110081615.GD5213@ulmo> From: Anders Roxell Date: Wed, 19 Jun 2019 09:56:12 +0200 Message-ID: Subject: Re: [PATCH] mailbox: tegra-hsp: mark PM functions as __maybe_unused To: Thierry Reding Cc: jassisinghbrar@gmail.com, jonathanh@nvidia.com, Linux Kernel Mailing List , linux-tegra@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jan 2019 at 09:16, Thierry Reding wro= te: > > On Tue, Jan 08, 2019 at 03:37:13PM +0100, Anders Roxell wrote: > > Without CONFIG_PM_SLEEP, we get annoying warnings about unused > > functions: > > > > drivers/mailbox/tegra-hsp.c:782:12: warning: =E2=80=98tegra_hsp_resume= =E2=80=99 defined but not used [-Wunused-function] > > static int tegra_hsp_resume(struct device *dev) > > ^~~~~~~~~~~~~~~~ > > > > Mark them as __maybe_unused to shut up the warning and silently drop th= e > > functions without having to add ugly #ifdefs. > > > > Fixes: 9a63f0f40599 ("mailbox: tegra-hsp: Add suspend/resume support") > > Signed-off-by: Anders Roxell > > --- > > drivers/mailbox/tegra-hsp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Acked-by: Thierry Reding Will this be picked up ? Cheers, Anders