Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp779499rwd; Thu, 25 May 2023 04:00:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WGhc4+T/6r/83K3+8gB3mUQ8ZXurVbfSflnK5Jfmww+pgB2O/n5xVRjaKjQ9VhmV80lHV X-Received: by 2002:a17:90b:33c7:b0:247:26da:5de2 with SMTP id lk7-20020a17090b33c700b0024726da5de2mr1261591pjb.20.1685012406236; Thu, 25 May 2023 04:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685012406; cv=none; d=google.com; s=arc-20160816; b=wvr8BKBc93VutXKBKwn7dtAGTO+9jwGZZWFzJw3S8PRWRtSVASqSrTQ99PewrfKRRj g2WKyCAeSgXRqF3DiKK4dMyUBjQ7UPzUmXBziYuayZv4k8xAQn/TPgP937ATd4ZwZlqU 4TYs736hOLScF3b9MJFv9IbIEPX/Y322+3IE9iUYlKkKuEBhrc/pNOqUP2h78Zcf5+j+ EKZR+9uilWMlKIiueLTfPMiocakJH+4ljVW5B7qVrAGyTDW51Tj2TZ2a2Hr0CLaO6BgV 9g97bC/f3LOm8wmSFEHStmJ2+anwHhl0A7AFCFMwIsIFVMFSC39D2UHkpXM90jDVHxo7 51Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NQq5ZTLn5W9ddoIyGL+NWuwNXFUyM+dfklJ2JJisKRE=; b=QLBT1H6tqDXYEej7jVQTpRmAjWfZY/1c9zxHRp2AXQNfooJQw3bG55rlXppjEZ1b4+ Wbe6eqNv8pb+nVAdLrS458p7zp/zVu9XULlRhGxORWljPTPNuZzMuSvBbcrGmB2i2ZW6 /UaXhOKOySdg5qKCgsVJANfdmZ5lpdpkHfCMFCqze2KvJ33RJbEwzuwTGlORIdQtbAgK DSm+7LUZgWa9xiRqW3TSyVKVQbkZj8/YJFRnuUYMXE7ZRyqjh1WIAeqgRWEg8APn2a2Y dgrGENxAozHi5VLSZ4Mr31GsjcyRkUgFgI08KJP0fMSXUWAVi0hisYEhMaJL3D6/YEiv SlGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRvIcAkU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a17090ad50a00b00255f01e5aefsi2168407pju.56.2023.05.25.03.59.50; Thu, 25 May 2023 04:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRvIcAkU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241011AbjEYKbl (ORCPT + 99 others); Thu, 25 May 2023 06:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240892AbjEYKbd (ORCPT ); Thu, 25 May 2023 06:31:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E477519A for ; Thu, 25 May 2023 03:31:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 712EE644A6 for ; Thu, 25 May 2023 10:31:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC022C433D2; Thu, 25 May 2023 10:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685010688; bh=OD8rD59I+wawmCfnEFxirBa5h36zblMiNcRYE5vjeQg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YRvIcAkU7Uueiqs1B7ZV6VDl03Z9J4dX8YREtKZd4CBOK60HjllzeiniqXy2FyvTJ 68yqBxLksU3q4rqR4CFoJp2vWpFGv46OZXwfqIih/v477xOrIncorGDLUuB68i6P9j 7Jj8IyhZh7L+xGFnbR4DuXmtL2zC2Htrc47CfcDsFUsR0za95Y1DFbbQD4BXPqJsQW MCcr/8WLcHQgaRqjbvI87NxLC9lI44w6MobFOUQPX/VM8rk+iV0b5IA5h7GZWS3bth ZWNahiTWZy5lrqOeFuAPb+xNjrj9S//QCR15IkxXQykELydN57STMv9UPz/kEZGnom pafy++vNoH4Fw== Date: Thu, 25 May 2023 11:31:24 +0100 From: Lee Jones To: Arnd Bergmann Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: intel-lpss: hide suspend/resume functions in #ifdef Message-ID: <20230525103124.GC9691@google.com> References: <20230516202746.561111-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230516202746.561111-1-arnd@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 May 2023, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_PM is disabled, the prototypes for these two functions > are not visible: > > drivers/mfd/intel-lpss.c:482:5: error: no previous prototype for 'intel_lpss_suspend' [-Werror=missing-prototypes] > 482 | int intel_lpss_suspend(struct device *dev) > | ^~~~~~~~~~~~~~~~~~ > drivers/mfd/intel-lpss.c:503:5: error: no previous prototype for 'intel_lpss_resume' [-Werror=missing-prototypes] > 503 | int intel_lpss_resume(struct device *dev) > > Add the same #ifdef around the definition of the unused functions, > which avoids the warning and slightly reduces the code size. > > Signed-off-by: Arnd Bergmann > --- > drivers/mfd/intel-lpss.c | 2 ++ > 1 file changed, 2 insertions(+) Applied, thanks -- Lee Jones [李琼斯]