Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp654563imm; Fri, 17 Aug 2018 04:33:51 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwNtZ6JoWRuOFTujPuyem/oInxfrBVuxjCSlUHQeeRZMmwQRMyf9fD8yGNZtPkT730GtW5e X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr33899485plt.288.1534505631716; Fri, 17 Aug 2018 04:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534505631; cv=none; d=google.com; s=arc-20160816; b=TYnqc9ICsVJBZh3ZZ6r1ayDKKBYUfhDwuKbO1PoQEqJ8uoVfsy1K0JWt1hrzoSSeMR C48ZI7vb2J6nrDsg9AbgH/Vw6Sq6dBADBqVKH96s7fbgr3NBEnqKz/XORIlTpQwJkEcs DGx14wkWTquBc2GyNjdU1vDFdrVnu5UDeTomqKPtphVvWlhSmtj4Wax9txeGM5smLLNs uTyoXWB7HajbdAWuxh1XFseVclQf5NZ1ogf/NgGENZriQvkwAtNiRceDeX+0LorLbvBs cdT2AhgUKxCU2KpnKXERQ/SLbER41jjtLPpa2Fm1txUnP12UtEmeDWUmeNmaI0RQwFdX jwfA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=8lcCqkpTQJ0wHawPeYZ/OpXbWRt7h2rAG2p4JMe7xxw=; b=cJGtLv154jZ1gBQBFSwNJErmpGVAPZH2VnpROU7al9Cax2eyOUdFUobWZJ9SewYMeq 3NbEUDTIfDIAXFuRAoVxE+svOipp2X8tN4Ot2NQDuQXPii0SzfhZRcXbmmzDnJh1iSoq FQqGzWjVie0RUoEYYSEwVVg7/ovIunJ6wElWNc7cVMWOc/sTfDFTnrsC/V3CqHLOoGZi C2SjGzEa/MpWNWq9HzS00QRoMBuOl2GLPAcgG9zp0oc5XyKyaTUrQryU/3boFoiNASGa 3wfrYrTLDggofJjYtS79jwse+8m429i3HuPadwYH6C3fjQlvH1kW1ywcvA4Vs+epy2dE iQ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WS6xtR5U; 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 n19-v6si1939310pgd.408.2018.08.17.04.33.35; Fri, 17 Aug 2018 04:33:51 -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=WS6xtR5U; 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 S1726752AbeHQOfh (ORCPT + 99 others); Fri, 17 Aug 2018 10:35:37 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39676 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeHQOfg (ORCPT ); Fri, 17 Aug 2018 10:35:36 -0400 Received: by mail-wm0-f66.google.com with SMTP id q8-v6so7121712wmq.4 for ; Fri, 17 Aug 2018 04:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8lcCqkpTQJ0wHawPeYZ/OpXbWRt7h2rAG2p4JMe7xxw=; b=WS6xtR5UsHJUERLnbvKR0KoIuXCUAHUYccw4JNR9S6/AQby0Hwy8L66XAZMNGTAstQ dTGSTBzxGlPh4hv+fl+LpcTTuHQg8Dny8vTxm485sDEiHIqyeoFnUZ7q5xjoN/enmBgm m5M/31BIxcDlFAt4Cvl+ViVPvFbX2bwW8GxlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8lcCqkpTQJ0wHawPeYZ/OpXbWRt7h2rAG2p4JMe7xxw=; b=YkZEXW7T/RtyC2rjSSrdsfGn7e+Uy+jqkIbaq5XCkIIXhucknu0K7/Huyf/L0flGMi 7jppDBkEEPWh/xTsOdf7suQ6VKRz40SPpYQOvtzbNXNXt1ugPVESGUHwpCNJShJFr0iT 9gPZvnvOR1HYOorGkSXVUE4SPfyl1+fAPzmZPSfcIJ7V0xotx6NEpoj2A9ySyuMmphHY mC85H8u48ASftGC43I2Eia4gfQItiR3rCFDy+gE+WK27lcPRDa7E+2w8AopyBCNJVzNx 5PS9h3u3IIagBM9/3aYylphKh01BDj7eLP0CToJ4SFOAzhczos620fs0CgyvbbhApF4x gOxw== X-Gm-Message-State: AOUpUlH0eyKlfGRBrH5jVCKdp+DE5oLktjqKlUkzgMZ64zOI/lIb6HfT QsPyEHZJ9BPI5ApK3Af27UOL9/Z2f9A= X-Received: by 2002:a1c:64c:: with SMTP id 73-v6mr17416206wmg.7.1534505547914; Fri, 17 Aug 2018 04:32:27 -0700 (PDT) Received: from [192.168.27.197] ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id l15-v6sm1626566wrt.67.2018.08.17.04.32.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 04:32:26 -0700 (PDT) Subject: Re: [PATCH] media: camss: mark PM functions as __maybe_unused To: Arnd Bergmann , Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180817095425.2630974-1-arnd@arndb.de> From: Todor Tomov Message-ID: <080262bf-d354-1ec4-761c-a086a7e268fb@linaro.org> Date: Fri, 17 Aug 2018 14:32:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180817095425.2630974-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you Arnd. On 17.08.2018 12:53, Arnd Bergmann wrote: > The empty suspend/resume functions cause a build warning > when they are unused: > > drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function] > drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function] > > Mark them as __maybe_unused so the compiler can silently drop them. > > Fixes: 02afa816dbbf ("media: camss: Add basic runtime PM support") > Signed-off-by: Arnd Bergmann Acked-by: Todor Tomov > --- > drivers/media/platform/qcom/camss/camss.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c > index dcc0c30ef1b1..9f19d5f5966b 100644 > --- a/drivers/media/platform/qcom/camss/camss.c > +++ b/drivers/media/platform/qcom/camss/camss.c > @@ -993,12 +993,12 @@ static const struct of_device_id camss_dt_match[] = { > > MODULE_DEVICE_TABLE(of, camss_dt_match); > > -static int camss_runtime_suspend(struct device *dev) > +static int __maybe_unused camss_runtime_suspend(struct device *dev) > { > return 0; > } > > -static int camss_runtime_resume(struct device *dev) > +static int __maybe_unused camss_runtime_resume(struct device *dev) > { > return 0; > } > -- Best regards, Todor Tomov