Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2671650lqo; Tue, 14 May 2024 06:09:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZf7lAL3UJTKAR7MiDizuFL687OcBExbfcPpXQq9rB+IK15ISeRYC6WMkIT+vt1mcK9j+IHTXWb1i0dI1WhEOEhHogGiqULQmCuLmLOw== X-Google-Smtp-Source: AGHT+IF2nO7jLAoL8ODQZx7T5cIM+ivyjnumqwU0QeppPlMogFAhXqkhwUKew4yD40uKF0N58Mbz X-Received: by 2002:a17:906:ca4d:b0:a59:bdb7:73e8 with SMTP id a640c23a62f3a-a5a2d665db5mr825944266b.53.1715692185875; Tue, 14 May 2024 06:09:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715692185; cv=pass; d=google.com; s=arc-20160816; b=tjWX8PGBTSZTztu41wAeDvInhWFf/D6+XUHSawoykVGDerwtl4XlOHf4o2YBQuuyGO 9ZhQQPu2HA/Aa0AKKGomfc60JFyI/QWh+pyqNmfENzmXlBumJQB0OH/WEfCEkcsbyZSo iAZCjvxrgR6IGFJckMv2W3ug0mpPQlDgQcu3PsM37bk19lYb28lzgfcPSEKlePbmEdQ+ k1nSOJTxyeldLi6uCFFhXHFYpYYNJODRLoJwfwTnntK0Hrholvua0vSi7GONXmn+sSWH Ux7Zvs0wLMsgpqYEcIS0q58E0Jtz20fCaIVT45x0x+VktUUMPTHufnqjfvU4hswOYNYm xzaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=I17vbZiH4iZTzoMc8v6V70YjIxKVGmNtw1dSKswROtA=; fh=lASQWquiLL135C5Zx3WzG9wxRdI0xTcxrQTNIVYZ/04=; b=VLb+Pjkla0uhUrcu4TEZS1tGSlHErCkAR/rxeu5b6URQEFQMBhD+OywaLjw+olcY0Z A5b7AnEyh6MJTVrNg6SHm/yhgL70C0A7GEtu07w6M7KfR/O5QlpPIp1AG3EKpksdA1q8 197oSQiq4IGWj/FE+r40KPcVnP6n7rhEv7OJi9VlMeEMq9cg/ZCttqKVHJu1Ks6lxSRJ ITUJFj1MUQnFSIqn5DRhv73hjv/zjhIVZ7Q258l9ME0iUJY3sjEKPfJLFVFcoXFrzAjw 0dYcwbElGjWp60o27e5T61A7iVnAlkVdtXk0ubzIQJLzRpjF4PxxMaaze/ryn6mCvqRa laRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=nRZq4ENh; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-178696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21c0fsi615528266b.379.2024.05.14.06.09.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:09:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=nRZq4ENh; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-178696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9BD6D1F22778 for ; Tue, 14 May 2024 13:09:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 418F31411EB; Tue, 14 May 2024 13:09:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="nRZq4ENh" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 635BC13FD8D; Tue, 14 May 2024 13:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692153; cv=none; b=dw/GFeo+NOIRgCzwEGqREDYLjf/gV9EIYVyeqz93rFk0PgGN6/XQAROSUzySjgQRVSNRMVLxIb6GzjkKsqHZBL/NZFCeyMWr1H51qXdEaatZzR0oxIIbVGhuaWDcpI3+EnFIKWUBwm52ep/aVpk8TK6tiHUNyrBZa4WXtgOQz7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692153; c=relaxed/simple; bh=c7p08TmeWGdJ7F5vTrKlh4woXOixn8qwNLoKd8sqpWA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YYAcwh4dZlLsjN0rLDdggEvzlmTgoizGiKCyz45AOBk+TqShVWj1CdJ/dxPY/H/6ioopiHUKds++NiBXuwC1HigO50vjki1BavG9bq1JPEA6erPGQbpbKngXyD6IgIxGmYmByuX7gTIlzd6KeRU7DjQoAfjWcmQh9q8w0HR/Jl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=nRZq4ENh; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44EBUDW3009717; Tue, 14 May 2024 13:09:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=I17vbZiH4iZTzoMc8v6V70YjIxKVGmNtw1dSKswROtA=; b=nRZq4ENhHTnEPXpKw9DWDZV5Dti5eZ7Z2kt/z/vTSZonTbA0a7SaC+VeuENJmXv3LWva SqASApuVQ7h6DfMSt4hwXeOcSQ4MJxNyt4HFMs2DYAiLB4J/K4UrdA7cFC58EvJ5v/XU r08+yy0Q9lS77Ynjoa83UcOf8axMOPjrYyDSK7fz8QoRWVsacNm7gB1L2SWlnDxkrhaY ZtIcuM/1LdxnG5Smter+9GpBskInnpnzdgTaXrUCvlZK54UPPDpBLkb3dmFFyESOWSZN CmWOvtow3RjQBTAXAAr5IeVCGgMDkIo/QK5eI0jd4F2mw6e6lthySIXQrffd2NU0umyO Lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y474u07m4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:09:05 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 44ED94nS030706; Tue, 14 May 2024 13:09:04 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y474u07m2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:09:04 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44EB4ohd020388; Tue, 14 May 2024 13:09:04 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3y2kcywnmy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 13:09:04 +0000 Received: from smtpav05.wdc07v.mail.ibm.com (smtpav05.wdc07v.mail.ibm.com [10.39.53.232]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44ED90Ba42795386 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 May 2024 13:09:02 GMT Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C61FE58053; Tue, 14 May 2024 13:09:00 +0000 (GMT) Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 658F458061; Tue, 14 May 2024 13:08:59 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav05.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 14 May 2024 13:08:59 +0000 (GMT) From: Niklas Schnelle To: Helge Deller Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , Heiko Carstens , linux-kernel@vger.kernel.org, Niklas Schnelle Subject: [PATCH v2 0/1] video: Handle HAS_IOPORT dependencies Date: Tue, 14 May 2024 15:08:57 +0200 Message-Id: <20240514130858.3048650-1-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.40.1 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: QykJcn6P0RM7EhaMWuoj5CLTQ0u91Zv4 X-Proofpoint-GUID: JNmgGelJt1xlrLlfze0rHv1rqWBc4L-F Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-14_06,2024-05-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405140093 Hi, This is a follow up in my ongoing effort of making inb()/outb() and similar I/O port accessors compile-time optional. Previously I sent this as a treewide series titled "treewide: Remove I/O port accessors for HAS_IOPORT=n" with the latest being its 5th version[0]. With a significant subset of patches merged I've changed over to per-subsystem series. These series are stand alone and should be merged via the relevant tree such that with all subsystems complete we can follow this up with the final patch that will make the I/O port accessors compile-time optional. The current state of the full series with changes to the remaining subsystems and the aforementioned final patch can be found for your convenience on my git.kernel.org tree in the has_ioport branch[1]. As for compile-time vs runtime see Linus' reply to my first attempt[2]. Changes since v1: - Moved vga_mm_r(), vga_mm_w(), vga_mm_w_fast() above #ifdef CONFIG_HAS_IOPORT to use them in with or without I/O port variants. - Duplicated vga_r(), vga_w(), vga_w_fast() functions as non-I/O port variants to get rid of in-code #ifdef (Arnd) - Got rid of if (regbase) logic inversion needed for in-code #ifdef Thanks, Niklas [0] https://lore.kernel.org/all/20230522105049.1467313-1-schnelle@linux.ibm.com/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/log/?h=has_ioport [2] https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/ Niklas Schnelle (1): video: Handle HAS_IOPORT dependencies include/video/vga.h | 58 ++++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 16 deletions(-) -- 2.40.1