Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp534908rwd; Tue, 16 May 2023 04:46:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CtCovktiYFkktGbh78PQnKSGYMI0ce1VDAfiQFB8wm15WpOatYRrpTBeJOoCFDGlOSd3U X-Received: by 2002:a05:6a00:1741:b0:646:421f:500b with SMTP id j1-20020a056a00174100b00646421f500bmr44603398pfc.10.1684237594228; Tue, 16 May 2023 04:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684237594; cv=none; d=google.com; s=arc-20160816; b=guyY/tugE+KyLg2SzK/N86NJDYuwRLY6jsnWhSpYnB7NCh6TqLK+dEH+MIa8Omof4i BPLx5ahcJYIo8OX/3MHwRmUTwub3240GJpCtEHEMTfFkKrLVe6Xh0rmfVHUftdPjAGQp 2+xedbjnlvbRIRUREoLKkvF5QN5w6uCLla/x6qQYlUdj8Kfiil32f44x+CT4uT6zKjd3 6n5C1Z1Ba9Ahp7IXT5/wR9xqqZORiQlUq6WGetLAr7amHbp7+PPMnIn3/7noDq2kQMeS nkKXEzUk88otYngtawa3x+OSWFIPbZmn3QqCzIZAwRW1cboAaq7OJLO2Tl3tiLTQpZ6p w3/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=08TNaRdG1Vl1yvHS751zz45+nGdH+jL8rwyvx7E6BVo=; b=ECM8NxoTxoVZFKe/eSJ3otumCULl1WWtJxgAZxq77wublwjYWoC3bVzUQLrdqCnnA9 sB6al7BAvlk0Cw8hnE5saaGvAj8IGypElJMesB8xElgoKIOnmANoay3BatT/JH26/MTD WUcVW6lRipzce5w/aBnxN9yI0MPV824wJXHSF96T1Xgmps4hCl7CvmL2be3K18W4105b fac0desqoMNVVtIvgiXabmNDZ/1uf0H7hRUkmteCZPgJKZqBNNRK2xtPj5YvTj8V2Zf9 FUh1Pk9zKsu2DPlMpKJUy2+C6q+gPH7DEsE1gv556hDPkk9GEepmDQJaDuGn2XCnFjZ4 u6sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=I6WjRhQf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y29-20020aa79e1d000000b0063b8b7dd46asi18808877pfq.34.2023.05.16.04.46.22; Tue, 16 May 2023 04:46:34 -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=I6WjRhQf; 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 S232716AbjEPLCt (ORCPT + 99 others); Tue, 16 May 2023 07:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbjEPLCH (ORCPT ); Tue, 16 May 2023 07:02:07 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE426658E; Tue, 16 May 2023 04:01:17 -0700 (PDT) Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GAeDk2032196; Tue, 16 May 2023 11:01:05 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 : mime-version : content-transfer-encoding; s=pp1; bh=08TNaRdG1Vl1yvHS751zz45+nGdH+jL8rwyvx7E6BVo=; b=I6WjRhQflYPUfxzipKlf7L39Gz/LoWHwOGL4qeZ7RoP190qsr6BcjN86chUl8A99Qx4R tnX8Uf8ZOnTH5cstRGjLV30NgTQkkMavD/rOGfQ1ZwbDGD+7tZn3gEWn453e+6SSZHZq XWg1YJIVNDts2PdE+QlOkk+yLIiPAiBCw6hW8Ke+C2i3+FEbUKBLnYB8nwVLD4R6GeSf LIzC+n05ujhhf30Qs1lz6N5KJc325ncBHZ1shJ9wTYNSydv9/QRWtbW5PR31sYUVutl1 Zsch3CnTBCaAMS3ErYp9ouC+8ILbisj1EOROHd8ZI/mGNuxGtAEzR2iAFo2LGtCoxBPD Qg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm7fba2v8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:04 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34GAvMuc030285; Tue, 16 May 2023 11:01:03 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm7fba2ua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:03 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34G0aEWS027597; Tue, 16 May 2023 11:01:01 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3qj1tdsjrb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:00 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34GB0wnT14877408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 11:00:58 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8BFCD20043; Tue, 16 May 2023 11:00:58 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D8EA20040; Tue, 16 May 2023 11:00:58 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 16 May 2023 11:00:58 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Sudip Mukherjee Cc: Greg Kroah-Hartman , Bjorn Helgaas , =?UTF-8?q?Uwe=20Kleine-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 Subject: [PATCH v4 21/41] parport: PC style parport depends on HAS_IOPORT Date: Tue, 16 May 2023 13:00:17 +0200 Message-Id: <20230516110038.2413224-22-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516110038.2413224-1-schnelle@linux.ibm.com> References: <20230516110038.2413224-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 37xuHrvFAS7k_9joKwpWBKeBSyXONFlA X-Proofpoint-ORIG-GUID: PUpyluCu-8dncy6tceHVzXlnHa3nrf28 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-16_04,2023-05-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 mlxlogscore=741 suspectscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160089 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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 In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. As PC style parport uses these functions we need to handle this dependency. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so per-subsystem patches may be applied independently drivers/parport/Kconfig | 3 ++- include/linux/parport.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig index 5561362224e2..631c193fe42c 100644 --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig @@ -42,7 +42,8 @@ if PARPORT config PARPORT_PC tristate "PC-style hardware" - depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390) + depends on ARCH_MIGHT_HAVE_PC_PARPORT || PCI + depends on HAS_IOPORT help You should say Y here if you have a PC-style parallel port. All IBM PC compatible computers and some Alphas have PC-style diff --git a/include/linux/parport.h b/include/linux/parport.h index a0bc9e0267b7..fff39bc30629 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -514,7 +514,7 @@ extern int parport_device_proc_register(struct pardevice *device); extern int parport_device_proc_unregister(struct pardevice *device); /* If PC hardware is the only type supported, we can optimise a bit. */ -#if !defined(CONFIG_PARPORT_NOT_PC) +#if !defined(CONFIG_PARPORT_NOT_PC) && defined(CONFIG_PARPORT_PC) #include #define parport_write_data(p,x) parport_pc_write_data(p,x) -- 2.39.2