Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2559644pxu; Mon, 14 Dec 2020 05:44:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyO0/bJhZoiJATQFhRDJhWNmU1ggkrxTmxFPsubuJDQy7f+4STwrRE2Yu7b4gNn2Ze+NvOZ X-Received: by 2002:a17:906:4d52:: with SMTP id b18mr21475797ejv.405.1607953483644; Mon, 14 Dec 2020 05:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607953483; cv=none; d=google.com; s=arc-20160816; b=Z02h6gnfKsoCmXN8hmzsRHNOKPQPy2dDLDsf9vxm65vganQnDvSqcDc6+/j0qWbMKR FW9p9hiO3wjIxVpIy9m9bvaFmyVT9MiMatWQHPEz5JCn+oCpmciDCj0qw3fv51HVYtN5 leW1nFC3L3zF45DUevhsZyYvoGlbpBBLkAlI976Iep3L3w+xywNPj5ddSRGtfkhHiS62 D6rDNckHeiP+XIdLZHgHtfkIvmL+AHy7GtscK11LC3seRA9qf1ziYnuAcGBcvqzEqJrE 2zUOuvVsvtZSdZqBSh2t3smT7h1xyW7Kn2azb5vRqyFf92zWsR61O9NPHgJlXe8S2FvH abHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=eXHSUbHUuYdNdh6eTrrSzxWBQFgcFwTnIcLbyddVGcM=; b=tq/ZsXF47mo30yyEZzSeSD3X8Az8/UnKluI/0hv4Jqx6utxxy3VP0Rszl+C3bCYZNs TXjyZWbf9T7SMlCryC1jbQTw/Pqzbaf/WEaE9H/xIhVbMXmc4IR3Xc7BIUY2NO22KIQc MsfuhhAFJpcBtcsE0ejoMbYnSgY08jCv97IoJIb/5I9lFI1r0cQ3hWjz/BlCbBYx8pLh d85sHpl3faPRwY7WR3wAunUVj/BwfGNxcefAz5R2/byGliEa5TtYp6J7VHqcjYnQp9m2 qLPPU/veVFPR41xdsKlt9whTmeiwVgYWM367ugCXYhusCAeAvzHN1Zjcogkns2xQCdS9 /7+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Xq5FbABO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si10500924edr.583.2020.12.14.05.44.20; Mon, 14 Dec 2020 05:44:43 -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=@infradead.org header.s=casper.20170209 header.b=Xq5FbABO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436989AbgLNAyf (ORCPT + 99 others); Sun, 13 Dec 2020 19:54:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgLNAye (ORCPT ); Sun, 13 Dec 2020 19:54:34 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 946B1C0613CF; Sun, 13 Dec 2020 16:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=eXHSUbHUuYdNdh6eTrrSzxWBQFgcFwTnIcLbyddVGcM=; b=Xq5FbABOhc4h8CPpAYOl5jrWkG K/8VvDrguxThk9MW0Q6cp1qWjEkIVo47hR7n3xzDnJWtukgpThX71EjRuS02fIZwKldt4qlNDqYRW oiXimXtskggcIY/mnYhHWk/C4wNLPsSHwqJBJ6EJs/L5opqiK06upHb6+260jUfVQNrrvM6qijnkM zXmcXVxjdUagu971UyF34xpHq1Fwzd5cfXpr2jRj5af9EXQt/jEso8PlVYe8E3Z8Fs3V+Fm2F3NJ3 p4rUaqCvR6++cobMFALadL5JXRKhHJa2hpxjYosFfHhI14ZOPmrIuE+byxnrkAa8tr64IAteUuXOV LW1Vhk6Q==; Received: from [2601:1c0:6280:3f0::1494] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1koc7c-0004n5-6H; Mon, 14 Dec 2020 00:53:52 +0000 Subject: Re: [PATCH -next] platform: surface: fix non-PM_SLEEP build warnings To: Andy Shevchenko Cc: Linux Kernel Mailing List , Maximilian Luz , Hans de Goede , Platform Driver References: <20201211190335.16501-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: <3d5a5c8f-4bb1-6205-ae76-354473d59a18@infradead.org> Date: Sun, 13 Dec 2020 16:53:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/12/20 11:07 AM, Andy Shevchenko wrote: > On Sat, Dec 12, 2020 at 7:05 PM Randy Dunlap wrote: >> On 12/12/20 5:24 AM, Andy Shevchenko wrote: >>> On Fri, Dec 11, 2020 at 9:20 PM Randy Dunlap wrote: > > ... > >>>> +#ifdef CONFIG_PM_SLEEP >>>> static int surface_gpe_suspend(struct device *dev) >>> >>> Perhaps __maybe_unused ? >> >> Yes, I am aware of that option. >> I don't know why it would be preferred though. > > Here [1] is the rationale behind annotation vs. ifdeffery. > > [1]: https://lore.kernel.org/patchwork/patch/732981/ > Thanks for the link. I'll send a v2. Could we add that to the Linux BKP (Best Known Practices) document? -- ~Randy