From patchwork Tue Mar 14 12:12:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Schnelle X-Patchwork-Id: 69586 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1724883wrd; Tue, 14 Mar 2023 05:24:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+pWg7W3Vh6xPXc4JEiHbwNZI7Xi9ajJGnTkxffGfXM7m53rUsjk8dpgaxCsclpV6ENUhvf X-Received: by 2002:a05:6a20:7343:b0:cc:fbdc:886 with SMTP id v3-20020a056a20734300b000ccfbdc0886mr41566130pzc.18.1678796698610; Tue, 14 Mar 2023 05:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678796698; cv=none; d=google.com; s=arc-20160816; b=Hl0H48A+bOiHa1+huwDhtkFx8G7JLt61KIe0f4dR2qgzIoJP4f3M4lRf6JWHdI0hJA M1a8EQQJ6cQEcX59Wwm+qT97fWXxD+UQV+4jozDStypjjj77RQuGmL3uIxR1JvvVfobM WeVB+IK2VDSkwj13pQwz22G4UE+fnq6D0V1e9ZJrU2jwXP/NfO3bKIBfT+PW3aGTUJfc Mq1b+xHa2i6+mZKcy/ohPaxhuxJwwcC/25wlQVebm1Tf9zCUQnaLXQEenJDx9BgjmWOB l+pfYxO/KrEglbKbsjCCLRnoPQLGzPuLY2f7CjNVLRTxa0El85xhYCxQhQC0swFRwvv+ XPcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t4xAkC24llmes4Men43blPfsB9/nCEwMzKvazK246Bw=; b=UmIogBqR+RycjiCS6XATdALsWUB+XDwWfrpmBn2kzIdy7JM6eU9y2YEm55thDp3oqp 1Prv3g0/DsZdxax4KfjkbXYNDXv4IPdkkZDzDwr40r8l1dkpWJE46A0ZcE3/aqac4B9q OrWtaXZDAl7i20n/hW8gXopvUtSQo+V5FNXPsfjslGViGJZmdFFmjIVZvx2x1YZmP+3Q vMwhurrdcyUCmjIlKHOaUKyqYf+51Az+DDDjOX3iPpYEbz3byPJEr57MTdQi/tqu0SkZ ay/syFCvGe3X3HrwFcrAGKxUJ7jOtK8qRqaS6TRUOjAF/kil3rFzCh9Be5nbxgmQp8m1 Spgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sKHZ3tIq; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020aa7972b000000b005925dd0beaesi1996590pfg.282.2023.03.14.05.24.45; Tue, 14 Mar 2023 05:24:58 -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=@ibm.com header.s=pp1 header.b=sKHZ3tIq; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232009AbjCNMQc (ORCPT + 99 others); Tue, 14 Mar 2023 08:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231935AbjCNMOu (ORCPT ); Tue, 14 Mar 2023 08:14:50 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A13A0B3A; Tue, 14 Mar 2023 05:13:42 -0700 (PDT) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32EC52cm026405; Tue, 14 Mar 2023 12:12:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : mime-version; s=pp1; bh=t4xAkC24llmes4Men43blPfsB9/nCEwMzKvazK246Bw=; b=sKHZ3tIqZrGhg9lnvwnDfXa/k9oYqEgzvHcjECu2+pyr18Y7HU+/1C6v655wf6C+P9TW hq0Aurvh6bJw3Us+O62xaJKRxEuMa4+tqh0sA4tMnUA7XfpZAOP4DMxPuQfEGFYk0Ry0 He+z2KCe7njB5hnU6en7ZVxUhIY3u9aLEJ4rahS2xOO16GKmgAzPRtp5tuBNyrDr1ubD JILlWEu5WTu8iYozbJKRIpvpWZT3FdHMej+VFsZg9xC7yOhE5yZQNrmYUbCLuZ+BVkq2 dgZ0kFDyKWD4hoi2C5Zkl64ebHOtZDSyY4jpEp+bgWC8RiAGy4qk+2har4M+qy6xqTvC rg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3paptr3cbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Mar 2023 12:12:49 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32EBaumI006498; Tue, 14 Mar 2023 12:12:49 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3paptr3cah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Mar 2023 12:12:49 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32E6rYTU028663; Tue, 14 Mar 2023 12:12:46 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3p8h96msmw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Mar 2023 12:12:46 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32ECCiWG27460176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Mar 2023 12:12:44 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55B122007B; Tue, 14 Mar 2023 12:12:44 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C9B752007A; Tue, 14 Mar 2023 12:12:43 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 14 Mar 2023 12:12:43 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Jaroslav Kysela , "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Bjorn Helgaas , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , linux-acpi@vger.kernel.org Subject: [PATCH v3 26/38] pnp: add HAS_IOPORT dependencies Date: Tue, 14 Mar 2023 13:12:04 +0100 Message-Id: <20230314121216.413434-27-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314121216.413434-1-schnelle@linux.ibm.com> References: <20230314121216.413434-1-schnelle@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: S6GtI0gXmieBBlAOfRsudwPzk0yz7qOj X-Proofpoint-ORIG-GUID: TF2ZQu8DPDFO3qvB7KJHXWps4-qQ-q_q X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-14_04,2023-03-14_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 clxscore=1011 malwarescore=0 suspectscore=0 adultscore=0 mlxlogscore=993 mlxscore=0 spamscore=0 bulkscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303140103 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760345926823673838?= X-GMAIL-MSGID: =?utf-8?q?1760345926823673838?= In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to depend on HAS_IOPORT even when compile testing only. Co-developed-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/pnp/isapnp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pnp/isapnp/Kconfig b/drivers/pnp/isapnp/Kconfig index d0479a563123..79bd48f1dd94 100644 --- a/drivers/pnp/isapnp/Kconfig +++ b/drivers/pnp/isapnp/Kconfig @@ -4,7 +4,7 @@ # config ISAPNP bool "ISA Plug and Play support" - depends on ISA || COMPILE_TEST + depends on ISA || (HAS_IOPORT && COMPILE_TEST) help Say Y here if you would like support for ISA Plug and Play devices. Some information is in .