From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54046C10F29 for ; Tue, 17 Mar 2020 13:15:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1614A20724 for ; Tue, 17 Mar 2020 13:15:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pa7oSIUq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1614A20724 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TVmMw9vbAcg3vl+Fhm010ErFo5h666zuzFCGHacJ6hE=; b=pa7oSIUqQMuPNu 8zn8XlFi1nMD5h5FsD+pN0Xf0TvPOwwZxkmYlP62BS9X7texEQqq+lq+k6Yt0IjNZXQOu8FdvMX2i aEzr/Zog7h4QIktFsB6Cu0rrhOcjPcb6+spn99V1uNv8nUIW8hJSYC+om+n9hy4bytaOnVZ0auLiG RjtztOPMGH+je88FQKvGNS2NXX+zLhHeTqq90pj+fyuL/xjukr7MiAbDVvEj194AuK9yWpAshMnHc PHVEQxjONHEsfw7h02x4XmXJW9dAiWXBxYq8Uw4BBvAvtbekh/AkzUpmCqxtMPYHl9nYWoX2h/Y01 Nl3zeVKTg8xBkDGc9+kw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEC43-0005iN-8Y; Tue, 17 Mar 2020 13:15:23 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEC3t-0005So-1f; Tue, 17 Mar 2020 13:15:15 +0000 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 0231E10001E; Tue, 17 Mar 2020 13:14:46 +0000 (UTC) Date: Tue, 17 Mar 2020 14:14:45 +0100 From: Alexandre Belloni To: Geert Uytterhoeven Subject: Re: [PATCH 1/2] rtc: mt2712: fix build without PM_SLEEP Message-ID: <20200317131445.GC3448@piout.net> References: <20200316104701.209293-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200317_061513_226253_8758FAD0 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Alessandro Zummo , Sean Wang , Linux Kernel Mailing List , linux-mediatek@lists.infradead.org, Eddie Huang , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On 17/03/2020 13:30:10+0100, Geert Uytterhoeven wrote: > > static SIMPLE_DEV_PM_OPS(mt2712_pm_ops, mt2712_rtc_suspend, > > mt2712_rtc_resume); > > That's 23 more unused pointers in your kernel image. > This is true but, of the about 900 drivers setting pm callbacks, there are only 39 doing that conditionally depending on CONFIG_PM or CONFIG_PM_SLEEP. Interestingly, 9 of them are mediatek related. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93228C18E5B for ; Tue, 17 Mar 2020 13:15:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C48620754 for ; Tue, 17 Mar 2020 13:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbgCQNPK (ORCPT ); Tue, 17 Mar 2020 09:15:10 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:38307 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgCQNPK (ORCPT ); Tue, 17 Mar 2020 09:15:10 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 0231E10001E; Tue, 17 Mar 2020 13:14:46 +0000 (UTC) Date: Tue, 17 Mar 2020 14:14:45 +0100 From: Alexandre Belloni To: Geert Uytterhoeven Cc: Eddie Huang , Sean Wang , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-mediatek@lists.infradead.org, Linux Kernel Mailing List , Linux ARM Subject: Re: [PATCH 1/2] rtc: mt2712: fix build without PM_SLEEP Message-ID: <20200317131445.GC3448@piout.net> References: <20200316104701.209293-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On 17/03/2020 13:30:10+0100, Geert Uytterhoeven wrote: > > static SIMPLE_DEV_PM_OPS(mt2712_pm_ops, mt2712_rtc_suspend, > > mt2712_rtc_resume); > > That's 23 more unused pointers in your kernel image. > This is true but, of the about 900 drivers setting pm callbacks, there are only 39 doing that conditionally depending on CONFIG_PM or CONFIG_PM_SLEEP. Interestingly, 9 of them are mediatek related. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A2ACC18E5B for ; Tue, 17 Mar 2020 13:15:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DA8D20767 for ; Tue, 17 Mar 2020 13:15:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OsmZ4KF1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DA8D20767 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L6RMWdUjQudNEMyW2Xa2aORf00ndV8y50uhncCZMX1M=; b=OsmZ4KF1Qp+KxV qHcDZIFmYq3vv9yl6PS2ISNAhZPH+qcGPNOQ7t81vIdosGIoKnuaeEBW3F4Rb0BHWdOVT8BbOLLTA 83WCgKmH3a12YUkAlYsEkLUXsXjfO6qdW0xEhy+uIW5v6yNmMTfcKWqC1JN0f7MjLonihZGW4z9D9 vxAdWY0z3rwQIXF6r5tS1jZqX1jj8zHimY5IIpyV9vc2e1mJkohqF8uH2ow1aW0Or68QlQSee1QAA wL+uycsM12A28M4TQaToZPgCvVkjzIat6K9F9SCanefoK3hLIRptLMaf+vpaAeoZDuqc5OV+S27MR EI9XqmUL9s8KeCglqLDA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEC3w-0005aZ-Fr; Tue, 17 Mar 2020 13:15:16 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEC3t-0005So-1f; Tue, 17 Mar 2020 13:15:15 +0000 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 0231E10001E; Tue, 17 Mar 2020 13:14:46 +0000 (UTC) Date: Tue, 17 Mar 2020 14:14:45 +0100 From: Alexandre Belloni To: Geert Uytterhoeven Subject: Re: [PATCH 1/2] rtc: mt2712: fix build without PM_SLEEP Message-ID: <20200317131445.GC3448@piout.net> References: <20200316104701.209293-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200317_061513_226253_8758FAD0 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Alessandro Zummo , Sean Wang , Linux Kernel Mailing List , linux-mediatek@lists.infradead.org, Eddie Huang , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 17/03/2020 13:30:10+0100, Geert Uytterhoeven wrote: > > static SIMPLE_DEV_PM_OPS(mt2712_pm_ops, mt2712_rtc_suspend, > > mt2712_rtc_resume); > > That's 23 more unused pointers in your kernel image. > This is true but, of the about 900 drivers setting pm callbacks, there are only 39 doing that conditionally depending on CONFIG_PM or CONFIG_PM_SLEEP. Interestingly, 9 of them are mediatek related. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel