Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp440820rdb; Fri, 8 Sep 2023 05:48:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbz44Ch2Ni9WlYYM4DnDq1ICIG87fFhX8ziC1aCekUbWB6fi+Fm7gur/hgWtbWGI3IJhHA X-Received: by 2002:a17:90b:395:b0:26d:43f9:11dd with SMTP id ga21-20020a17090b039500b0026d43f911ddmr2454360pjb.0.1694177294302; Fri, 08 Sep 2023 05:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694177294; cv=none; d=google.com; s=arc-20160816; b=utE5iKCrBJ7gTMI6y+AUnPTJGQ/7G3TZ8HFOmSAocsCuKcyhAmdx/D0YDFTcmXB3HQ 8bctK2/GDOQSHp8r+DokeNjkizxI0/gImVCb3sL/myvPGAx5YZMQbujaC36JHlMIOjto a9DnYADhbHZwKnVnMEL0DJhubpvskx9878jVSHWZpDlVa1DqS2OMY/TbQwEM2YORGwO9 vA0C4Yvbxsjc6UrpI0U0Mlwh95nTTjmQIFYCrCAeeWX4tlxlfoKISNOyawGL82gWclYH NcoFDejFi5WDJH/E2z41J+YPjbXUW2eowDyp2peq1crQYAQrQI0uY6tj7cvs+MoQ+AZR gqZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=K1eyw/Go8fNNDXk8pzV5RemiJSLKPyl8vBEBru5UmC4=; fh=cA7eXZhW4Z8PoNyrpjCe3wgbXWJ+icwFilBOCWqXzvk=; b=EZs9NsEXSDAwYU6XZxzzN5ZT3I7NXhSFvm8Q7yBckht9v+lks96nzTsp37GGQda13u JMUGClZcrq3iEIC8x24NNusufz/A7Qno5lPZesSY0amF8on3yMsWXzM4b929OHu0nqNn nmmwhDsJdRJiUUbUH6okwlPIK3TyjXTXBRYDzCExff5/DpTDLQItK4qICWK8Oxc9UsCq lWRivv0gSSqBWIXbBaaUVpk5GV0Ab1yQFUxMtwASKpKBdU3GtznJckNTE6Zhjno3m1Q6 9742QWwVPPmURN6D1ANNAX7aVaRz7yyuZCs8wLnDDkHgdx+WfZmsNL+BHYJcSUz7f0Il wDRw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a17090a7bcb00b0026f75d932a8si1424818pjl.185.2023.09.08.05.47.58; Fri, 08 Sep 2023 05:48:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243082AbjIHKXx convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Sep 2023 06:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243145AbjIHKXu (ORCPT ); Fri, 8 Sep 2023 06:23:50 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2BE1FC0; Fri, 8 Sep 2023 03:23:09 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qeYcR-000mZf-Ob; Fri, 08 Sep 2023 12:21:43 +0200 Received: from p5b13a40a.dip0.t-ipconnect.de ([91.19.164.10] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qeYcR-00250o-HD; Fri, 08 Sep 2023 12:21:43 +0200 Message-ID: <456ea951a34b3c599d990eddd15fee490fbaee37.camel@physik.fu-berlin.de> Subject: Re: [PATCH 4/4] sh: machvec: remove custom ioport_{un,}map() From: John Paul Adrian Glaubitz To: Geert Uytterhoeven Cc: Arnd Bergmann , linux-sh@vger.kernel.org, Rich Felker , Yoshinori Sato , linux-kernel@vger.kernel.org, Arnd Bergmann Date: Fri, 08 Sep 2023 12:21:42 +0200 In-Reply-To: References: <20230802184849.1019466-1-arnd@kernel.org> <20230802184849.1019466-4-arnd@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.164.10 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 Hi Geert! On Fri, 2023-09-08 at 12:20 +0200, Geert Uytterhoeven wrote: > > Why aren't you removing the function ioport_unmap(void __iomem *addr) completely > > and just turn it into stub? Is it still referenced somewhere? > > Because architectures are supposed to implement it (there is no > __weak default). > > An alternative would be to provide a dummy static inline, like > e.g. m68k does: > > arch/m68k/include/asm/kmap.h:#define ioport_unmap ioport_unmap > arch/m68k/include/asm/kmap.h:static inline void ioport_unmap(void __iomem *p) > arch/m68k/include/asm/kmap.h-{ > arch/m68k/include/asm/kmap.h-} OK, that explains it. Thanks! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913