From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD6F7C433F5 for ; Fri, 29 Apr 2022 14:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377953AbiD2OxA (ORCPT ); Fri, 29 Apr 2022 10:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377956AbiD2Ow7 (ORCPT ); Fri, 29 Apr 2022 10:52:59 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEC06BE9C2; Fri, 29 Apr 2022 07:49:40 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23TDsVeG030881; Fri, 29 Apr 2022 14:49:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=5tJHOGwPAMt/ATr3Y92BHa7AV3I5WIGCuyqnYiNT6Qk=; b=Etb1CRZzLWe3zU63/ol6VKSzENwsvHX3p5ywcqxUqt/GA1zgx6h5idqjeKaRKF+hKXzQ ATDo5cu8/DG0e4kkUm9dNYnB/u17lOpeMoo6eQMhL1nU3Rgece0ng9w1yDCIpBN+h5di Aj3eo4UopvJXqAMUy7yhPpIvjSqoy/Ipg/JCHXxcK92LBjolRpLdqdgdd3q3Gep0wZNg bwslY/fUg4LQR0GegNjLCGGBWqrspti1t8agkKxqCkOeijVhnb/b4Bmog2NJZC3MglmO ld9Itviy+TEOmGTZM+4wZlH/wpGIhE3vKMeSmXDU9VYtjsb8C2WnsuFDYqzKxMLmqeb+ EQ== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqtqvy0er-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 14:49:36 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TEhou4017888; Fri, 29 Apr 2022 14:49:34 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma03fra.de.ibm.com with ESMTP id 3fm938yckk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 14:49:34 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TEnevp26214894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 14:49:40 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D47C2A4060; Fri, 29 Apr 2022 14:49:31 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 610AFA4054; Fri, 29 Apr 2022 14:49:31 +0000 (GMT) Received: from sig-9-145-61-57.uk.ibm.com (unknown [9.145.61.57]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 29 Apr 2022 14:49:31 +0000 (GMT) Message-ID: Subject: Re: [PATCH 37/37] asm-generic/io.h: drop inb() etc for HAS_IOPORT=n From: Niklas Schnelle To: Arnd Bergmann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann Date: Fri, 29 Apr 2022 16:49:30 +0200 In-Reply-To: <20220429135108.2781579-68-schnelle@linux.ibm.com> References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-68-schnelle@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 27q2XQcWw4TRQpBZ0jiDl_jzvcZn5unp X-Proofpoint-ORIG-GUID: 27q2XQcWw4TRQpBZ0jiDl_jzvcZn5unp Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_07,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 mlxlogscore=625 phishscore=0 malwarescore=0 adultscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290080 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, 2022-04-29 at 15:51 +0200, Niklas Schnelle wrote: > With all subsystems and drivers either declaring their dependence on > HAS_IOPORT or ifdeffing I/O port specific code sections we can finally > make inb()/outb() and friends compile-time dependent on HAS_IOPORT as > suggested by Linus in the linked mail. The main benefit of this is that > on platforms such as s390 which have no meaningful way of implementing > inb()/outb() their use without the proper HAS_IOPORT dependency will > result in easy to catch and fix compile-time errors instead of compiling > code that can never work. > > Link: https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/ > Co-developed-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle > --- Sorry everyone. I sent this as PATCH in error while preparing to sent the same series as RFC. Since e-mail has no remote delete and I lack a time machine let's just all pretend you only got the RFC.