Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3741275iob; Mon, 2 May 2022 04:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw0qnvtAkfH0NB+xdOEY8h5CxmudDvHnq60cTA/bFnYfOsIZPvz0rmXFzDIKygDmVGOMGu X-Received: by 2002:a63:43c2:0:b0:3c1:829a:5602 with SMTP id q185-20020a6343c2000000b003c1829a5602mr9481790pga.252.1651491683797; Mon, 02 May 2022 04:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651491683; cv=none; d=google.com; s=arc-20160816; b=iknBMJfqJFFUAz7CPWBI5T7dM8dKQDafpBjip+llJmnS6BEyWFuD9l8NRl0V64c0zh 0ibSXvcc2IqUoD4RiaC6Tw9qFUx1GN0TLIBpcybERwtbhV9OOoD4bcx4TJENN7ZKI/dJ lYPR0xnZlqLIXqiA/n87QZXJm3tQKdcD/0wB/yPpYqKqJGizYhyxZhN2d9wS6DYEwOjj bbScjy4j9+EhIHLq4r05vlk7Oj8zdBeommj3E685Aw6uGgI8i+VfL1NzGbDEqv1vbJK2 Hypz3evAt5VCYfa4o6gYjrT6BuTLReYbYdkie4TEqA0D4Di8RFAYWW0ZiJapaC0fWl/z FfBA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=5tJHOGwPAMt/ATr3Y92BHa7AV3I5WIGCuyqnYiNT6Qk=; b=EJopw9F89OtEQBJ13iw4M4Eo3gHyfAEwviduh6FHJ7Bfsce0J8Pb5rwSt5CKTBk8kb YmkG7G/2Rx3KP52t9wuSf5SVXazoWADR/ZpgoYO33SJUjJsrmcB2SQ6ZOJ4eW09q0avi GWi5eXN1KkMDyBfblNNuDgRSjAw2u7ZUKMZFqfsbTUOMt+J1K+nTtv00maM27Rg6Xpdy z2vVhIDHFckT1SVENLNtkC15Ievz6VsrynhkaH/lmo7wodGL+yGwZ12o2XQjzLYjP07+ 4cc4NOn6KaZO/kP+P+vkUSQmtc8Mey6bziw/soBGNMlCwUJHsXqf8ZUzq+cEt2J2DmLx a18g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Etb1CRZz; 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=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 n12-20020a170903110c00b0015a39e94e61si10350619plh.420.2022.05.02.04.41.09; Mon, 02 May 2022 04:41:23 -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=Etb1CRZz; 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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242886AbiD2OxB (ORCPT + 99 others); Fri, 29 Apr 2022 10:53:01 -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 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 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.