Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp457125rdh; Thu, 23 Nov 2023 08:23:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGabdF6Ep1ECsOmu0TKnL7MK8c00D88SeeUQcwDeQxhwCsG57EfsOrOL2xCvBjzUggYV5ek X-Received: by 2002:a17:90b:4c49:b0:27d:28ad:3086 with SMTP id np9-20020a17090b4c4900b0027d28ad3086mr2406pjb.2.1700756611847; Thu, 23 Nov 2023 08:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700756611; cv=none; d=google.com; s=arc-20160816; b=F+B9hEnlAsxneI+5tetiuHCRnC++jGE3FPiVHWqwWhmxhORx8fWD+dUIcaOJ87TxQd qACt97QCRYpnKW7mo7YM5oMXdYcIMgcsO8BUuoO79ZsU8n1CRfXCl+Wmm60+MxRmhbL3 sSXHtLXIMivlE3PPKRQynCI3V1KJt0eoZhbS7YJS00JUGgnW3AMDg7TofahnppZFPFfo r6JijIpFiOCnkIoUTe9A0xuGmGZpwCPQNxsy3GF2EHFaWt14s4MTFHTMXSeJdhEjwONo 7ZBr6S3OAIztOCr5Glhu4lIgYZPrdEC9AO0RswI+9Pvof43qDllMfldofeq1kAF0rPvG viSA== 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:organization:references:in-reply-to:date :cc:to:reply-to:from:subject:message-id:dkim-signature; bh=TKeMPzbK2ClbXpVq/4TaFkb6N/ZO2ffa0lKGXrj2bYg=; fh=pjjwAQr3WtNpUvdEj+LWTvXMwAjkImbSWVcEx6YpPiU=; b=l0MVU8pnl5sCCmoZMKvPG4ZvWbOQ5M9G7cEezFlb6x/7vW1+DaQo0eBmBY/J70hFpH bFlmewau/95CzTA7o+xUy3nOyXqQX8zkYV/E/XZsvu0mBcjzx4J8y6JBKHjNj4HMRnfb Flr9/THXlDKpgQ3hc9Rb+93Rih9ydjhKkaY2qUl64tpWalbdb2wNyQxsQwibvH7WVNxq ZIdt1qp2PYjy/1lT7xjpC4adSzsetySbEzqim7wJ4MVQ9F1/QIJcnXAzLmgf3rgCbevr 0mAGiv0Zm2RrAhop9KKenQh1xyKfMprV8s4esEeaLCvgTbTkwA9z+wPk05I/3H5mZ8R5 oApg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W1UNAqiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id s10-20020a17090ad48a00b002850e97e25esi1579925pju.2.2023.11.23.08.23.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:23:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W1UNAqiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4687F8029124; Thu, 23 Nov 2023 08:23:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbjKWQXO (ORCPT + 99 others); Thu, 23 Nov 2023 11:23:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjKWQXN (ORCPT ); Thu, 23 Nov 2023 11:23:13 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0651A4; Thu, 23 Nov 2023 08:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700756599; x=1732292599; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=TKeMPzbK2ClbXpVq/4TaFkb6N/ZO2ffa0lKGXrj2bYg=; b=W1UNAqiy+tl5/MZ/JaACW7z5J0LM5pdVt7oC7CdDmnmBAtXScVaW0lVN k+VtMPMqvBab1hXHfttOPIpJx6tIWDhs32OWrhQs7QYS6xsldGXNGyWez wEz8UJQ/Ff0mVbTFATTfSqGEkLv1EZKd+xbi5o8bXsEH74SQgXIch6nY9 qfDsaWP9C8wjQ6YjRRqg0Jm+2hp/57hiKFVHF5p8XdK53I7AqrbM+YnY1 9h9tMbZg/4ZgnskihZ2H34ETBng9RWJcdckg1GJ4IGugZtyH1kxeiiFm2 ZdxfiMsdRLR1Az4EMNvS6gQdZvl/6CWJMA/HDawpqWlwd0mBwTVoK9s1q g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="377320892" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="377320892" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 08:23:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="743635782" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208";a="743635782" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 08:23:19 -0800 Received: from snpatel1-mobl.amr.corp.intel.com (unknown [10.209.89.91]) by linux.intel.com (Postfix) with ESMTP id 0E1A4580CA5; Thu, 23 Nov 2023 08:23:19 -0800 (PST) Message-ID: <67d86d38c246e78589bdb703386a6d4e9961f54b.camel@linux.intel.com> Subject: Re: [PATCH V5 12/20] asm-generic/io.h: iounmap/ioport_unmap cleanup.h support From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: Ilpo =?ISO-8859-1?Q?J=E4rvinen?= Cc: LKML , platform-driver-x86@vger.kernel.org, rajvi.jingar@linux.intel.com, dave.hansen@linux.intel.com, peterz@infradead.org Date: Thu, 23 Nov 2023 08:23:18 -0800 In-Reply-To: References: <20231123040355.82139-1-david.e.box@linux.intel.com> <20231123040355.82139-13-david.e.box@linux.intel.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:23:29 -0800 (PST) On Thu, 2023-11-23 at 16:30 +0200, Ilpo J=C3=A4rvinen wrote: > On Wed, 22 Nov 2023, David E. Box wrote: >=20 > > Add auto-release cleanups for iounmap() and ioport_unmap(). > >=20 > > Signed-off-by: David E. Box > > Suggested-by: Ilpo J=C3=A4rvinen > > --- > > V2 - Move from linux/io.h to asm-generic/io.h. Adds iounmap cleanup if > > =C2=A0=C2=A0=C2=A0=C2=A0 iounmap() is defined. Adds ioport_unmap cleanu= p if CONFIG_IOPORT_MAP > > =C2=A0=C2=A0=C2=A0=C2=A0 is defined. > >=20 > > =C2=A0include/asm-generic/io.h | 6 ++++++ > > =C2=A01 file changed, 6 insertions(+) > >=20 > > diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h > > index bac63e874c7b..9ef0332490b1 100644 > > --- a/include/asm-generic/io.h > > +++ b/include/asm-generic/io.h > > @@ -8,6 +8,7 @@ > > =C2=A0#define __ASM_GENERIC_IO_H > > =C2=A0 > > =C2=A0#include /* I/O is all done through memory accesses = */ > > +#include > > =C2=A0#include /* for memset() and memcpy() */ > > =C2=A0#include > > =C2=A0#include > > @@ -1065,6 +1066,10 @@ static inline void __iomem *ioremap(phys_addr_t = addr, > > size_t size) > > =C2=A0#endif > > =C2=A0#endif /* !CONFIG_MMU || CONFIG_GENERIC_IOREMAP */ > > =C2=A0 > > +#ifdef iounmap > > +DEFINE_FREE(iounmap, void __iomem *, iounmap(_T)); > > +#endif > > + > > =C2=A0#ifndef ioremap_wc > > =C2=A0#define ioremap_wc ioremap > > =C2=A0#endif > > @@ -1127,6 +1132,7 @@ static inline void ioport_unmap(void __iomem *p) > > =C2=A0extern void __iomem *ioport_map(unsigned long port, unsigned int = nr); > > =C2=A0extern void ioport_unmap(void __iomem *p); > > =C2=A0#endif /* CONFIG_GENERIC_IOMAP */ > > +DEFINE_FREE(ioport_unmap, void __iomem *, ioport_unmap(_T)); > > =C2=A0#endif /* CONFIG_HAS_IOPORT_MAP */ > > =C2=A0 > > =C2=A0#ifndef CONFIG_GENERIC_IOMAP >=20 > Has this now built successfully with LKP? (I don't think we get success= =20 > notifications from LKP for patch submissions, only failures). I haven't received it yet and don't know when or if I will. The build instructions are provided so I can attempt to check it myself. >=20 > There were some odd errors last time but I think all they were unrelated= =20 > to this change (besides the checkpatch false positive, I mean). Indeed. I couldn't explain them either except to think maybe it was related= to the implicit declaration warning. The implicit declaration warning was one = that I did see in my build after rerunning with W=3D1 C=3D1. I usually always ru= n with this but on V4 had done so only on the modules and forgot the bzImage. David >=20