Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp324863rdb; Tue, 5 Dec 2023 06:34:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/CK+Q4Eub40iiqz5BlobSuvuz525kM5R5IpY6z7Pqt9zyZc8Bu6UEY0+hf/Hnonu2kkzN X-Received: by 2002:a05:6a00:a90:b0:6ce:2732:28c with SMTP id b16-20020a056a000a9000b006ce2732028cmr1293791pfl.59.1701786877563; Tue, 05 Dec 2023 06:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701786877; cv=none; d=google.com; s=arc-20160816; b=HUX1jyCEvmvwE6RPOFe/SOzktHrn0pZygNA3y6WZoM2Zfw6hSD1XXtNUEnRGlp/AY2 deKW1UotFjJAP0DiioH+/rI0PPPczAt0cWz33VtjkgXe01uqNZ3ZKnab4RELhxRqcUey TKM/T9tCWbgLSDbcsF9+7C2LzQ9mTCnsUlBpqhk9Vro8T3zbKkbypod7fnNSI11rNj7T W8JLwWmLEekb6Hz2Ix4WnJGS73y3QM7xS4FoYQ8U2gJ4gD1IrU6X4tn+BPDGt9BGRkyh ilQp6RyUwu1LJ0OjoCnR5JYMbKsChkNYdw2JDEkr7ftixAgvvsxn0IrVvrr9LpEl3EtI ESLw== 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:dkim-signature; bh=t1oo9wYlZR3izMsicqmb+vabDeYW3Sk3a+FflIBcT0I=; fh=k/fc61heKsdUz/A6/YxyCCv30Vg+uzgtCM36XzRHaxw=; b=mOoIq5ZtESokzgl9QivEOD4SeU8B9T5SsrXnA0yZhapLozTr1vuTkUvTDqtr0LpwNx CKftvXLQneIjqeyOAafTuCpV9dnfs8cDMfaGbkeV5A6zNcnqU/kikXGE7pIQ1Rog0xyK kKj3m0f8j8S1JVPV0WmJH5ulP1wLFejl9VLL2K1pYmAC3qAnRkxle3yuq0I1fxRh1a9p 22hjOZLsVcnxghFyDrUp3ng9JjbVhc9tCRt58vVDNjxL2jFFlgXfL7wBkJhYFWQdQOn2 DrHOzgUyMn/TBJu62nlSPux+mfsBlC6wOVBby+4piSctb+b2zIE1bQG+gvPn62/I5X43 sPGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PbQ0++a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q18-20020a631f52000000b005c661efffd0si5278788pgm.754.2023.12.05.06.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PbQ0++a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 44374805AC0B; Tue, 5 Dec 2023 06:34:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345898AbjLEOe0 (ORCPT + 99 others); Tue, 5 Dec 2023 09:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbjLEOeZ (ORCPT ); Tue, 5 Dec 2023 09:34:25 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAEDB9 for ; Tue, 5 Dec 2023 06:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701786870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t1oo9wYlZR3izMsicqmb+vabDeYW3Sk3a+FflIBcT0I=; b=PbQ0++a2uYr1puxTbIyrUc2n3xNofbINDp5n145k0vVAe18pYaKugIQEwdC5J0gXI8/IuF hd+wiC3s4y30y7BOF5g+Pzhc0gieUaHeKcbrkNw3euMfIn5zf62F7lmoRJ31cDlhIZmWq9 5QetCScl3UnZvibcnHhA2tf6I72BkA8= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-247-5nlXhhBiMgqeKkjTX9ydbQ-1; Tue, 05 Dec 2023 09:34:17 -0500 X-MC-Unique: 5nlXhhBiMgqeKkjTX9ydbQ-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-40a3d918dc1so11654385e9.0 for ; Tue, 05 Dec 2023 06:34:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701786854; x=1702391654; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=t1oo9wYlZR3izMsicqmb+vabDeYW3Sk3a+FflIBcT0I=; b=ZQ6SSxyfcBG65tLCf0LCrEA/WEN9jTFLlauGgt+R2RPjUvYkgErveQw8u9a45Tsz5G N13OHDWAenrj22l/1T89Fc+7ADZt2388i8Yc/pGtbRDaMSE/JTgYfKLX93cyb8KpNKrO CFfDD+8W6wbQiZsoXW2cQcWABpob8xBMudlE3Z69XvczlLq1Ebr5uVNqM5vyzYA3rm5B ONxh+n2hoDbh0M3DxZvnHDzSqu3BqfmdGh+W3aipkFjGREgEQ11HMrqmiD0/bhqxinkb WEH7vOI+Y8KouIrEf6G3V//hBTMDj72TIQYFouTy/UAxcCT0tk+9cxsoJhX8r5LNBKR+ /R8g== X-Gm-Message-State: AOJu0Yw9nFk/oJW6iGv0MVnRO9YDsYSfjQRNiy5CahOPqArmCOmE5XQQ jSoLnoA8UXV+f7eD5/pdTSbEiYDg2uZZEeJ69e+CfIqAy2c0fEHczuG8sSKxWJN8Hhz//BVj+sj XkPw+KXhYMz5/EgJPeJr4exTf X-Received: by 2002:a05:600c:5024:b0:40a:771f:6a56 with SMTP id n36-20020a05600c502400b0040a771f6a56mr24476147wmr.4.1701786854230; Tue, 05 Dec 2023 06:34:14 -0800 (PST) X-Received: by 2002:a05:600c:5024:b0:40a:771f:6a56 with SMTP id n36-20020a05600c502400b0040a771f6a56mr24476128wmr.4.1701786853892; Tue, 05 Dec 2023 06:34:13 -0800 (PST) Received: from pstanner-thinkpadt14sgen1.remote.csb (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id t17-20020a05600c451100b0040b379e8526sm22411354wmo.25.2023.12.05.06.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:34:13 -0800 (PST) Message-ID: <8ec1ae92206c090c79a9ab9586bd17349798b08f.camel@redhat.com> Subject: Re: [PATCH v3 5/5] lib, pci: unify generic pci_iounmap() From: Philipp Stanner To: kernel test robot , Bjorn Helgaas , Arnd Bergmann , Hanjun Guo , NeilBrown , Kent Overstreet , Jakub Kicinski , Niklas Schnelle , Uladzislau Koshchanka , John Sanpe , Dave Jiang , "Masami Hiramatsu (Google)" , Kees Cook , David Gow , Herbert Xu , Shuah Khan , "wuqiang.matt" , Yury Norov , Jason Baron , Andrew Morton , Ben Dooks , dakr@redhat.com Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org Date: Tue, 05 Dec 2023 15:34:12 +0100 In-Reply-To: <202312051813.09WbvusW-lkp@intel.com> References: <20231204123834.29247-6-pstanner@redhat.com> <202312051813.09WbvusW-lkp@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:34:36 -0800 (PST) Alright, so it seems that not all architectures provide ioport_unmap(). So I'll provide yet another preprocessor guard in v4. Wohooo, we love them... P. On Tue, 2023-12-05 at 18:44 +0800, kernel test robot wrote: > Hi Philipp, >=20 > kernel test robot noticed the following build errors: >=20 > [auto build test ERROR on pci/next] > [also build test ERROR on pci/for-linus arnd-asm-generic/master > kees/for-next/pstore kees/for-next/kspp linus/master v6.7-rc4 next- > 20231205] > [If your patch is applied to the wrong git tree, kindly drop us a > note. > And when submitting patch, we suggest to use '--base' as documented > in > https://git-scm.com/docs/git-format-patch#_base_tree_information] >=20 > url:=C2=A0=C2=A0=C2=A0 > https://github.com/intel-lab-lkp/linux/commits/Philipp-Stanner/lib-pci_io= map-c-fix-cleanup-bugs-in-pci_iounmap/20231204-204128 > base:=C2=A0=C2=A0 > https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git=C2=A0next > patch link:=C2=A0=C2=A0=C2=A0 > https://lore.kernel.org/r/20231204123834.29247-6-pstanner%40redhat.com > patch subject: [PATCH v3 5/5] lib, pci: unify generic pci_iounmap() > config: openrisc-virt_defconfig > (https://download.01.org/0day-ci/archive/20231205/202312051813.09Wbvu > sW-lkp@intel.com/config) > compiler: or1k-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=3D1 build): > (https://download.01.org/0day-ci/archive/20231205/202312051813.09Wbvu > sW-lkp@intel.com/reproduce) >=20 > If you fix the issue in a separate patch/commit (i.e. not just a new > version of > the same patch/commit), kindly add following tags > > Reported-by: kernel test robot > > Closes: > > https://lore.kernel.org/oe-kbuild-all/202312051813.09WbvusW-lkp@intel.c= om/ >=20 > All errors (new ones prefixed by >>): >=20 > =C2=A0=C2=A0 drivers/pci/iomap.c: In function 'pci_iounmap': > > > drivers/pci/iomap.c:155:17: error: implicit declaration of > > > function 'ioport_unmap'; did you mean 'devm_ioport_unmap'? [- > > > Werror=3Dimplicit-function-declaration] > =C2=A0=C2=A0=C2=A0=C2=A0 155 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ioport_unmap(addr); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ^~~~~~~~~~~~ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= devm_ioport_unmap > =C2=A0=C2=A0 cc1: some warnings being treated as errors >=20 >=20 > vim +155 drivers/pci/iomap.c >=20 > =C2=A0=C2=A0 144=C2=A0=C2=A0 > =C2=A0=C2=A0 145=C2=A0=C2=A0/** > =C2=A0=C2=A0 146=C2=A0=C2=A0 * pci_iounmap - Unmapp a mapping > =C2=A0=C2=A0 147=C2=A0=C2=A0 * @dev: PCI device the mapping belongs to > =C2=A0=C2=A0 148=C2=A0=C2=A0 * @addr: start address of the mapping > =C2=A0=C2=A0 149=C2=A0=C2=A0 * > =C2=A0=C2=A0 150=C2=A0=C2=A0 * Unmapp a PIO or MMIO mapping. > =C2=A0=C2=A0 151=C2=A0=C2=A0 */ > =C2=A0=C2=A0 152=C2=A0=C2=A0void pci_iounmap(struct pci_dev *dev, void __= iomem *addr) > =C2=A0=C2=A0 153=C2=A0=C2=A0{ > =C2=A0=C2=A0 154=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0if (iomem_is_ioport(addr)) { > =C2=A0> 155=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ioport_unmap(addr); > =C2=A0=C2=A0 156=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return; > =C2=A0=C2=A0 157=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0} > =C2=A0=C2=A0 158=C2=A0=C2=A0 > =C2=A0=C2=A0 159=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0iounmap(addr); > =C2=A0=C2=A0 160=C2=A0=C2=A0} > =C2=A0=C2=A0 161=C2=A0=C2=A0EXPORT_SYMBOL(pci_iounmap); > =C2=A0=C2=A0 162=C2=A0=C2=A0 >=20