Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29815951rwd; Wed, 5 Jul 2023 18:35:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlG24skALNrooQgRSElB0WJx9ueVzEbX2JdpNoNL9ZVL8buZNst5uYGIV3cGvHOfgXZqPM6T X-Received: by 2002:a05:6a20:72a8:b0:12e:caac:f260 with SMTP id o40-20020a056a2072a800b0012ecaacf260mr576914pzk.2.1688607302874; Wed, 05 Jul 2023 18:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688607302; cv=none; d=google.com; s=arc-20160816; b=ll6O0ZwdyhXNNKDxMslA+GBoXgjIFEKBZ+gUoeOJrukg2vIqalrf/39V7Ocw52xOt/ dQlnvqwzgoRDLxiA8YBB7J4Iee7IvJJ81UEa+GxtsKUhHuJ+OquTrglFxk/7MADcCmb3 O8SHV125QdCl2BAHzcHA+X2KfJqKbNuQOejs3KJTEDddkHqnc7AlPzqBULSpuZ9y7IZa FZWuBX6wQRPPIH5QG8YdOs1qe4Pq9VVoj9O3sojAZnB4P064nQAdEVgIGTCcunAMIf/e HMPsJ+DnVDxU3I6CzJbp3qiO1a4e2hL6oxFOWKWf8L+VX8XFQ8l55aPYD5hjzZH8HySa Hxaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=iQqo5x5ASxaDOXphmezbHNaxmBUaEyFkfXvLc83mOGo=; fh=xivGjd7S5lbpyRhaKEGYE5xqfBP3rnJGQ7Yj1x3iy6c=; b=W9CwPzSHRvMbP7G5ZXAOBJ1+g6KGdAd5KQe2hBoeSh0D5qb5xDl8iA1O1HaXUTG6/a J8hIAApi8v/B9CIczEjYa+rzYhUVRJg/C8OwtM6Qpb8CMJbuwB7/rC3pXkb+VCDQiwhr D006/Gdlf6Smbtzqj60ooXovtH3xFvq+FHw5IL9cqgme4xGi8oJi5laLFNriUlvEXnON QUH+pfetnTevoiPzSqmMhibeh/ADsZihlWMUATQ8oNqvXQoRH5TtHcqHggdbwpaSrE04 Y7EJG3FCuSSl8GVRnKBMyIC+GMfgCezqfTeV7c65GTFH9MYjqXOpuC+4LJiwVVqb9a3C XDQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zRDoN3qE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a170903018d00b001b8a2483cc8si297885plg.292.2023.07.05.18.34.50; Wed, 05 Jul 2023 18:35:02 -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=@infradead.org header.s=bombadil.20210309 header.b=zRDoN3qE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbjGFBH4 (ORCPT + 99 others); Wed, 5 Jul 2023 21:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232185AbjGFBHz (ORCPT ); Wed, 5 Jul 2023 21:07:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8CB319B6 for ; Wed, 5 Jul 2023 18:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=iQqo5x5ASxaDOXphmezbHNaxmBUaEyFkfXvLc83mOGo=; b=zRDoN3qEUjHuy7RTXPwxyb0INc dD6LQK1IxCTYDbLUHuJhcaQJRKQt/y+50rm94fHw1qhEVprzVIROEAV8+EgcBdPMcakpRnLj5FhuQ nwINYIfskDdQaWhxLni7a+gh0N50kRR4ooq6yLTc4nVFPdSogY5Itdj2GHBgvNwpYJ8yuZtIuy3ER DLKadYAx5Mm0Ee0xbGFiHUljJH2f5yh10LPLQPcU5t0cfK2/X54MU2+jERJz7PVuqok6ULpt6PjTS TMTAjJ1Kf5B0L5MD1LW38FkWCOnsbA0emlxZars03ss4O3Ywf1Rrn8LDE7881EQEXzD9+KnSacJrZ +L2bJEAg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qHDTF-00HX3a-26; Thu, 06 Jul 2023 01:07:45 +0000 Message-ID: <1a970ae7-73fd-71e4-770e-120295454753@infradead.org> Date: Wed, 5 Jul 2023 18:07:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] Input: gameport - use IS_REACHABLE() instead of open-coding it Content-Language: en-US To: Dmitry Torokhov , linux-kernel@vger.kernel.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 7/5/23 17:30, Dmitry Torokhov wrote: > Replace an open-coded preprocessor conditional with an equivalent helper. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Randy Dunlap Thanks. > --- > include/linux/gameport.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/gameport.h b/include/linux/gameport.h > index 0a221e768ea4..07e370113b2b 100644 > --- a/include/linux/gameport.h > +++ b/include/linux/gameport.h > @@ -63,7 +63,7 @@ struct gameport_driver { > int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode); > void gameport_close(struct gameport *gameport); > > -#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE)) > +#if IS_REACHABLE(CONFIG_GAMEPORT) > > void __gameport_register_port(struct gameport *gameport, struct module *owner); > /* use a define to avoid include chaining to get THIS_MODULE */ -- ~Randy