Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4336737rwd; Tue, 30 May 2023 04:08:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aFK23BZr2YRaq2EEzzWhUId/ZHfKjLdCdcSRMmhpoVc9LkXHUhOvfR3ygsEaVTpDWdMfO X-Received: by 2002:a05:6a20:1447:b0:10a:e9ff:808d with SMTP id a7-20020a056a20144700b0010ae9ff808dmr2427248pzi.0.1685444895874; Tue, 30 May 2023 04:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685444895; cv=none; d=google.com; s=arc-20160816; b=Y0LrOKpUcGBekVWIUA2h5q10xkTsQAX0FwifZfXPAhdlhSd8lxtgFMmmsjnaCPn0iT Rd8NPPh3Mqcpb1G2kDJglEc2VF+Fm1QVHFR46xphgcWapLRsrRMzivtz8Mibvga/CZvr eMEjtCoZ7n21kxDfF1OZBx+6lTdCwFeX/1Q1H2hyI8/uCNj5D/nTHheCErqPSEhZCzw8 dIJiIGGJcoIHU9akleg2UZqm+dh7Yvn7Ipp6Enzql9oQWLr2Pl5Q+2ApqjDZyEkMOQBz mYpvgjSrwmha1idwuTdSpG4X/f35Pp6jHrKT6qwaR+RV6Z4RizAlSdPJyRSGsGs6zjpb ZWew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=THRnt9AJ3Z/k7LObgtlyRuQ+Yi7zniK6vpjvvGTLQ+w=; b=dLoLwPYPuSwO6aixMnbX27QOOf/6rWwMrldPrmJqDnRqqM0bKlrL8UVjrHAgmAzZr3 Xv7Z0qSdBOdg4KFXV7tCktepHoc2Gjk7H1Jbbh3zBg/2PKm1z/9hh5n9yasKG+NOje10 6APz/cVs8NJvfO2DvE1LDqUMN0QpC4R6SFRT42matB+svH2I9TK8XcZTG6/ZTjwEsOGf uqrCRg3USZsp4StE2pCyj4dSLHNdUmDH+tUmU/bDst0CO+tBPqxZXCJtaRXCbh1ONaBh nT1+1SNfuXiHUm9cNj0ZzCMV+pM8ubXRjp8/bMo9DSlg1eZJw6yM0CssufDtM1Zx1i6O bE3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ghnJmwg8; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a655c43000000b00513af3211cfsi6112515pgr.453.2023.05.30.04.08.01; Tue, 30 May 2023 04:08:15 -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=@linuxfoundation.org header.s=korg header.b=ghnJmwg8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbjE3Ksw (ORCPT + 99 others); Tue, 30 May 2023 06:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbjE3KsU (ORCPT ); Tue, 30 May 2023 06:48:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782DAF3; Tue, 30 May 2023 03:48:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 06A7562D99; Tue, 30 May 2023 10:48:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEA8C433EF; Tue, 30 May 2023 10:48:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685443697; bh=5BJct49nufUgpK5E0nq6xb69TeZ85NsUtXyny1OILQk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ghnJmwg8gzre1flGL6i+xKaSs738kaFL3FhVf6qRw7S00RAof0EdqzsswjMTmNBPW PtR9VBDBxdtktXObLlvxZb2UlvCfrbAh51gswdZ3WaQOEkn+lxTJVwwrHLRv07Co94 DGOUnQTzYz78GGCsXrl2975B0G1WgU6j6//P9j9o= Date: Tue, 30 May 2023 11:48:14 +0100 From: Greg Kroah-Hartman To: Niklas Schnelle Cc: Arnd Bergmann , Jiri Slaby , Bjorn Helgaas , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , 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-serial@vger.kernel.org Subject: Re: [PATCH v4 33/41] tty: serial: handle HAS_IOPORT dependencies Message-ID: <2023053059-self-mangle-30b6@gregkh> References: <20230516110038.2413224-1-schnelle@linux.ibm.com> <20230516110038.2413224-34-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516110038.2413224-34-schnelle@linux.ibm.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 16, 2023 at 01:00:29PM +0200, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them unconditionally. For 8250 based drivers some > support MMIO only use so fence only the parts requiring I/O ports. Why can't you have dummy inb()/outb() so we don't need these #ifdefs all over the place in .c files? Was that documented somewhere? We do that for other driver/hardware apis, why are these so special they don't deserve that? Otherwise this makes old drivers really messy with these additional #ifdefs, something we never wanted to do in .c files. thanks, greg k-h