Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp227306pxu; Fri, 4 Dec 2020 01:34:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt9Ma7lKSjmk3pZPmGqmPBeMC0j5yqBwpP2Bgouxlq3vsGHToBP1ngrZ99sYM9sbvevKYQ X-Received: by 2002:a17:906:1450:: with SMTP id q16mr6303091ejc.524.1607074494469; Fri, 04 Dec 2020 01:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607074494; cv=none; d=google.com; s=arc-20160816; b=CEtYbbBIzk/+HlCsmMN/KuYo08dvY9tT3wNulkAB7VFQ8b8zk9iEBPWkHlbQlZ0NpY /kbJ0c/v6Xq7sKrgG8GIekbxkMeFl4JenVNTQTHZGrS8wdH2TpriDzCh+HealfKP30Hf 7GAlRevgNgbDrALKOOvfQmZaZnCjB1INqcsVFTWHdSouH3BHg4D5s7Q1SZ55ns2mcF0Z 5LZMDkHOQqooYRPaAbyoyPwSC0iMR6RkpHzzpzbMJ+NE6Q/pENwy1qNhehTgoqO1M+9A 3U00QxjqlWGp9intg9jaxtx67HSRjvqcdTOZqD1FgLIt4n8jURFreBG4WKy6aDvmpsmY ZHUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=FJ+B3zIcBgxljhfRxX4OruLMUsDxRsFDGdDKk1UNK/I=; b=It30/itQhESRpBYBSK4S+yMGwmk4PitYnvrjrTUKqxiWFezMcYAs4LuxXPh1w26Kgw e8ulMaxUYc8iqRODcKrNWvGbPfVcVDR9M7qHxptUit4Ns5oL8kCgMK/xWz3R32eHEK3P 6KVMT4MN8xvzLLL3OkBA6lPpasxURIm2s2rUgva1PkXIyeXfyeM8PPrMw5MqZ5E2pwpD jPb8SIXssYsLKn3JOuh62ph1LVBe8eq8sgZE5I2HsBVcP2M6CvB3Lv0u1HjuGO7Nn1+V b0aoJFAaDyMAmEZMhc738gvxw0GC5ziC6qRKhjU3E/SjOJk0Ipim+jErxS2pXhZcGFND 57Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mHQxwmNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si1000077ejx.433.2020.12.04.01.34.31; Fri, 04 Dec 2020 01:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mHQxwmNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbgLDJbh (ORCPT + 99 others); Fri, 4 Dec 2020 04:31:37 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:16093 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbgLDJbg (ORCPT ); Fri, 4 Dec 2020 04:31:36 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201204093054epoutp014c53b9c9e45c5c5d3ecf9a781ed477aa~NeYUQdtmi0745107451epoutp01c for ; Fri, 4 Dec 2020 09:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201204093054epoutp014c53b9c9e45c5c5d3ecf9a781ed477aa~NeYUQdtmi0745107451epoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1607074254; bh=FJ+B3zIcBgxljhfRxX4OruLMUsDxRsFDGdDKk1UNK/I=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=mHQxwmNmcUoCsZOcrxaQHZubI+O7QJqgfhHOyxapvndS2ACqHgT3UIG/GZH9y4Q1E lyYSy+B7IgDjZvj2K9tM9+S4ULW00hR5jQtBkBmYG4GXRdhhdiNFvY3gFI1zLQ/gce +j3W/yxzPCRa60FreehCZ6QHrp+vhwb5oN87uYn4= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20201204093053epcas1p39c6745c23d1f4d7a8464710e3f870336~NeYTzQdSP1217112171epcas1p3E; Fri, 4 Dec 2020 09:30:53 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.40.153]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4CnSB34Q3Wz4x9Pp; Fri, 4 Dec 2020 09:30:51 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 2C.BD.09577.BC10ACF5; Fri, 4 Dec 2020 18:30:51 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20201204093051epcas1p39bbc7d2bf9ebdc1811a284774cc6e254~NeYRJgUAv1209212092epcas1p3B; Fri, 4 Dec 2020 09:30:51 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201204093051epsmtrp12c46f11ae6900145943f2141621b1e8a~NeYRDUnUQ1305413054epsmtrp1r; Fri, 4 Dec 2020 09:30:51 +0000 (GMT) X-AuditID: b6c32a39-c13ff70000002569-86-5fca01cbdcd6 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id CD.F3.08745.AC10ACF5; Fri, 4 Dec 2020 18:30:50 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201204093050epsmtip26710b06ca99820b6db330da2e21ad794~NeYQxrKMc2677726777epsmtip24; Fri, 4 Dec 2020 09:30:50 +0000 (GMT) Subject: Re: [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused To: Arnd Bergmann , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski Cc: Arnd Bergmann , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Fri, 4 Dec 2020 18:45:35 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20201204091616.4128366-1-arnd@kernel.org> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOJsWRmVeSWpSXmKPExsWy7bCmvu5pxlPxBmt7FC3+TjrGbrFtyyZW i/PnN7BbbHp8jdXiY889VovLu+awWcw4v4/J4uIpV4vDb9pZLf5d28hisWrXH0YHbo/fvyYx ery/0crusXPWXXaPTas62Tw2L6n36NuyitHj8ya5APaobJuM1MSU1CKF1Lzk/JTMvHRbJe/g eOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoBOVFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnF JbZKqQUpOQWWBXrFibnFpXnpesn5uVaGBgZGpkCFCdkZ685dZitoFahYf7CFtYFxCW8XIyeH hICJROP7RtYuRi4OIYEdjBJnV81jhnA+MUpsuvaTEcL5zCjxdNIMVpiWQze+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esu+wem1Z1snlsXlLv0bdlFaPH501yAexRXDYpqTmZZalF+nYJXBnrzl1mK2gV qFh/sIW1gXEJbxcjJ4eEgInEoRvfmbsYuTiEBHYwShy5dZwZIiEpMe3iUSCbA8gWljh8uBii 5i2jxKx3z5hAaoQFvCU+3r8P1iwi8IlR4sXEGUwgDrPAckaJpisdTBAtXYwSHdc+sYC0sAlo Sex/cYMNxOYXUJS4+uMxI4jNK2An8bp7LiuIzSKgIvFyz2WwuKhAmMTOJY+ZIGoEJU7OfAI2 h1PAXOLahHVgcWYBdYk/8y4xQ9jiEreezIeKy0tsfzuHeQKj8Cwk7bOQtMxC0jILScsCRpZV jJKpBcW56bnFhgVGeanlesWJucWleel6yfm5mxjBsailtYNxz6oPeocYmTgYDzFKcDArifDG qp6MF+JNSaysSi3Kjy8qzUktPsQozcGiJM57oQsoJZCeWJKanZpakFoEk2Xi4JRqYIoSm1rQ P8dWlW1NYKBe8wWJ5/6qKzZc0H70Ztec2HPSpwM3OT1hFPHfvv7mA6fMkpDVGl2q/fWPzse7 r2Pd7JI9/6rnxpy07ZvezU1ayVdy4NatLiE3n1ONCxOX9l1/ZGRUPHtZdt0dh8Ay901LEzRe RUs1/tGuNbr99AWrVPovdc9LLWahCi4slaUShhVMh5vsZM/aKskHTBKe1fxdZ2ftf227T4v7 VPc2cyfyPY5a/PiCtrOkGb9b4P2Uq34FTieXtwtvOPAynvvqdbZOt98LlKQnhMU6lR69euCV nZiW6u1LmnEt1kmp8f5f408EHlp3slNX8T2b7V2z7o8lF8x0NQ4LzbF0rJ25bv8kJZbijERD Leai4kQAvxybBTQDAAA= X-CMS-MailID: 20201204093051epcas1p39bbc7d2bf9ebdc1811a284774cc6e254 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201204091801epcas1p2a67474fad16d0c71f6b9a36cc72241ab References: <20201204091616.4128366-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/4/20 6:16 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The use of SIMPLE_DEV_PM_OPS() means that the suspend/resume > functions are now unused when CONFIG_PM is disabled: > > drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: 'exynos_clkout_resume' defined but not used [-Werror=unused-function] > 219 | static int exynos_clkout_resume(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~~ > drivers/clk/samsung/clk-exynos-clkout.c:210:12: error: 'exynos_clkout_suspend' defined but not used [-Werror=unused-function] > 210 | static int exynos_clkout_suspend(struct device *dev) > | ^~~~~~~~~~~~~~~~~~~~~ > > Mark them as __maybe_unused to shut up the otherwise harmless warning. > > Fixes: 9484f2cb8332 ("clk: samsung: exynos-clkout: convert to module driver") > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: Arnd Bergmann > --- > v2: add proper changelog text > --- > drivers/clk/samsung/clk-exynos-clkout.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/samsung/clk-exynos-clkout.c b/drivers/clk/samsung/clk-exynos-clkout.c > index 9ec2f40cc400..e6d6cbf8c4e6 100644 > --- a/drivers/clk/samsung/clk-exynos-clkout.c > +++ b/drivers/clk/samsung/clk-exynos-clkout.c > @@ -207,7 +207,7 @@ static int exynos_clkout_remove(struct platform_device *pdev) > return 0; > } > > -static int exynos_clkout_suspend(struct device *dev) > +static int __maybe_unused exynos_clkout_suspend(struct device *dev) > { > struct exynos_clkout *clkout = dev_get_drvdata(dev); > > @@ -216,7 +216,7 @@ static int exynos_clkout_suspend(struct device *dev) > return 0; > } > > -static int exynos_clkout_resume(struct device *dev) > +static int __maybe_unused exynos_clkout_resume(struct device *dev) > { > struct exynos_clkout *clkout = dev_get_drvdata(dev); > > Acked-by: Chanwoo Choi Best Regards, Chanwoo Choi Samsung Electronics