Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29769880rwd; Wed, 5 Jul 2023 17:39:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRvU4OMb2N7BpTQotHBrIW2yjJQz3VWwDSXVLbcJoBBbH52j4krdbHJupKF1URlpWvjpch X-Received: by 2002:a05:6a20:4325:b0:117:3c00:77ea with SMTP id h37-20020a056a20432500b001173c0077eamr1177371pzk.0.1688603967062; Wed, 05 Jul 2023 17:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688603967; cv=none; d=google.com; s=arc-20160816; b=EiyYkbyL9gH/33XRYvzD8NpEuEtelu/wwywCoqJBIO7UXEfMw3QT//6BoXBCXsAlYp U/9AOmshFkP46kIGoXWgpBlrVX0/Mx3jqKEKVcWqRd239lMBikBPbBsk8TjN5/M7BUkv zsRAWK+Vl30cFNoIICNbir+hRZvoFhhssy42vounNlFoj3sA55Bsa0t1goh5tUWUbnIY wwKPp5PCQVeCq/uh2Ja6u5xnbA979tYxYuBjZbDz1Q8LBo1MvqxeqqZLl30Kd7/M8fOX ud/EpH2YKGiZ2o4ASUW8P/456EKJIgMpBJc8oKvzxwgdxGCDmJ8Dq7+PAtSDOZ2KWB5Y cInA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=F8Jhj6afcnoCn+BxeDwfU74i3bb4E3uZLGQ1h/Zplhs=; fh=7/wK99IhQI20g8otvRXl6BeZeysd6JC/zneZmsCKdSo=; b=e41/AIK/T5DchCmnBPayzGNt/KK6y5AmA8AWEGSVAFr+FxeJXdYlSJhKX9FWaKkWT0 PHeqffkLZqZdj/GJz9oVevt/ZhCTgiwxiMFqTwEs+BJWC9uOj4Tp4rDZ7+vQ9frM427l EUpB/NUFXXQMGUzTD4cB39VhYjGeOVokMqLhmaRo0HJ/VUeb19AoUgNYt88PGldXHG+n 7pPKhi2uw1g1JLi3Rvr7UqWhY+JVy+KuDaEBoRasIA/ipTb1WfJAtq8UT4kfqupKKyb0 udgOtCWNFF2+PCftY8qixrWksJz64YjSrIq7m4AzUVuppVYOMCTBtS4zRRoUhRx+Id+g GeVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XvtSueIV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a65448d000000b0054fec1eb2d6si295095pgq.737.2023.07.05.17.39.13; Wed, 05 Jul 2023 17:39:27 -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=@gmail.com header.s=20221208 header.b=XvtSueIV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232538AbjGFAaq (ORCPT + 99 others); Wed, 5 Jul 2023 20:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232305AbjGFAan (ORCPT ); Wed, 5 Jul 2023 20:30:43 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 548F519B2 for ; Wed, 5 Jul 2023 17:30:42 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1b89b75dc1cso9205795ad.1 for ; Wed, 05 Jul 2023 17:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688603441; x=1691195441; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=F8Jhj6afcnoCn+BxeDwfU74i3bb4E3uZLGQ1h/Zplhs=; b=XvtSueIVj2DbVpiQ3SULx9iOP69/r5l1+DwOc1Aq5zh5oUIFp03CoqDBLg1mIpJeq4 cVyDZLKM7wA6LBYncxTsbUvogx/hTYLcrkWfxa3+NyEa7ceelvijiUn/cVPnffbFdgiA IIqvkqTeLvnKs9FFbR+9WSerGsrZg9WStILEIqzPIN0v6dWAUabCdwLxpeoA1olUv3Qf OZ5m/7MwgdJyX+SgvNs2A6yf76jEnWDsSwJSbboXMzRJ5kP8LZ05rUrZ544MrwVFh7Bs 68gi5LNqSkvf6oBzT3XlzpJU2g6kTSe13b0/nM1dmtchJQngAje3YbanJ8I+vok80ESY b09Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688603441; x=1691195441; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F8Jhj6afcnoCn+BxeDwfU74i3bb4E3uZLGQ1h/Zplhs=; b=MEXUZRLMg2/MULTeS3EUa3tAd8QKDMwcsCdwMUpOmERhE1GT/RvRgQXsbjg8GNfATn ECVrnJwNn1A8sMcBaWbqBh8C9GSDZdQl8/yDRa2O0SveFLL14QUXNyV50MY7hgqxU1+u FFAU+dWu0IFuAl3BP9jSk+r8Esk2SVQyn0A42xo0HxwJNGS+1sD3uTfRH1r07JCIo708 r4JdOuQZseNI9aaFlq636IOpNNXScN5WpRT7WgdEYfi0MNepp3SmNVx0hvUrS7nSFD4y krhH2IloMtY2NH2tbNJ0DNfdrakWknFrs5rXxR4wqMW4QUV3MNa7Fx1j57O7bV27woi0 zvKw== X-Gm-Message-State: ABy/qLZGAXOLhlFjNnsD3JTJRgUMkhTzuJGp7lR+A35UVjfRBZTRz2PP WM3lWyeWj4KOGt8AibN40DgJRZDmwKo= X-Received: by 2002:a17:902:c94c:b0:1b5:674d:2aa5 with SMTP id i12-20020a170902c94c00b001b5674d2aa5mr988197pla.13.1688603441424; Wed, 05 Jul 2023 17:30:41 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:9fac:a99f:7f0a:397]) by smtp.gmail.com with ESMTPSA id u7-20020a170902b28700b001b89119aa30sm47889plr.289.2023.07.05.17.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 17:30:41 -0700 (PDT) Date: Wed, 5 Jul 2023 17:30:38 -0700 From: Dmitry Torokhov To: linux-kernel@vger.kernel.org Subject: [PATCH] Input: gameport - use IS_REACHABLE() instead of open-coding it Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,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 Replace an open-coded preprocessor conditional with an equivalent helper. Signed-off-by: Dmitry Torokhov --- 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 */ -- 2.41.0.255.g8b1d071c50-goog -- Dmitry