From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DD8CC433E0 for ; Sun, 28 Mar 2021 20:04:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04D5961950 for ; Sun, 28 Mar 2021 20:04:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231510AbhC1UDj (ORCPT ); Sun, 28 Mar 2021 16:03:39 -0400 Received: from mail-eopbgr680069.outbound.protection.outlook.com ([40.107.68.69]:35200 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231472AbhC1UDM (ORCPT ); Sun, 28 Mar 2021 16:03:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J3yRUFfxwKslS3Z3Gqx/YUOh9xy0TMXnnK42FKOHpwLRND2oOwTVIzAUUM+0pUb3/8UyejVJ9STwgQYG3W8x2bqROUz0jY6ZybjmH8kP6HqDllWvyp7Vm/3q8o+Y0CDmzrDa7wjgDQGp22f5QkkrlGhXfN4NAW91dwWjC3MWSrgeCY3DNNOwGwQLWUWE8FPFsLMXbdRNktHP+Dj4hARrwDQG4rfH780UfPGydwcaRU6JB+9pbafjtrc7dHaH49piGAztIOF0rHT1yfn4YMTeATO6KHlinIho2Ltr7iIr3Ne4QBMxMQMLXDpgIKluUL6GmxEyTGSdDco0298l5QRyxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XBSvbeO87KkJDBfgfUbGPAMpdJZUOX6r5iS42KM8ZEc=; b=WlL5o2A6G1WKlBp+dwFN4PBz1tmQ32+4fQO0nahF7tgVGh9G/55ogoXIfUqmGMnS2Qcni9u8GxSQ6hqqNXh9uVNSwq0zSgyZr1FnsiPzW7OUqSOy7GraD7FYutmd4jEhR98GP/FOvl4vU/bhYCSFT60H6AlG7jCV67PYPa3xWPN663c/ARuTq19T31Nqc0lBMVodxnygQTNHio1Ivwn3vY0m/4Fn77s4Wrmh2FsGWGg+OrOp0t76BkFXfLgrH8Zou4Mb6ofU4nk7f6G7B2uUZw/jEQNh89Ph8UrKmh7i56wZeNQyLJb5FPbsN+pR1Ooi+WMviD7o5LrQKC6qPT3gwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XBSvbeO87KkJDBfgfUbGPAMpdJZUOX6r5iS42KM8ZEc=; b=NemvfLR4sNYQ8ypD83HbOHw8zmef3zZ5uDO6EO5rccMshI+PyqN72OOIKvwSRww0s08CAwrN+Hgw4YMaMTVsrl2YMp7sJN9nuMv5DN+CQFIbW+P0+6ga65VAVk11098K/7KqX854uaKL5tlR5N0Fiq/1CYzxv5FUmKbEETummoDDpKi60XHyfYbgRPAdyYFJvz8wKhOvZrp81cRonWnXwPvhTyBAbxwblHm2iE4F5pLB/XUDe/ZaAc5NywblZazt+/rMZmRsay7Ff1QoVZe2cYK28QaPyWlEo9fAJobJuC0G93qQ4spGmAxMIFxI+yFSOeTy7RhST9oIDlNVnGwWWg== Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM5PR12MB1884.namprd12.prod.outlook.com (2603:10b6:3:10d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Sun, 28 Mar 2021 20:03:09 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87%6]) with mapi id 15.20.3977.033; Sun, 28 Mar 2021 20:03:09 +0000 Date: Sun, 28 Mar 2021 16:57:18 -0300 From: Jason Gunthorpe To: kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Alex Williamson , Eric Auger Subject: Re: drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaration of function 'mm_iommu_put' Message-ID: <20210328195718.GX2356281@nvidia.com> References: <202103280335.BK1WDXLW-lkp@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202103280335.BK1WDXLW-lkp@intel.com> X-Originating-IP: [142.162.115.133] X-ClientProxiedBy: BL0PR02CA0080.namprd02.prod.outlook.com (2603:10b6:208:51::21) To DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (142.162.115.133) by BL0PR02CA0080.namprd02.prod.outlook.com (2603:10b6:208:51::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24 via Frontend Transport; Sun, 28 Mar 2021 20:03:09 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lQbXC-004fyN-JG; Sun, 28 Mar 2021 16:57:18 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3255a74b-f322-45b3-a76f-08d8f2248241 X-MS-TrafficTypeDiagnostic: DM5PR12MB1884: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:411; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qUA5ontXEkNLxrYLv0d7YVvOTRdtS0DMErhEyzNBBZWJSeeywUhEDaJXUI/wtMpo9dgZWDjiFdnmoQ8Y2h/2V/l6rI7iGfiu7TGZkPi0F3pOCoXbDbZjsexGXLklmZH5ixi2MZVsgmB6ZtoTKxTaOVlPVCFf/zfdf/bYiSD/vxW7Vs9UOVh+Gj9WzmySlm6zJHvraciL+hhaKjsUTVq6hqth3j5DnJO4gUcXhY9Qwm0JBmIGEYX4Gyqo48kvqWycIENOu5HjuUUig17Vg3Z7X0WCvDHy/Q+tieR69+Gagi+zJ8AytXSgXIyAPu4aH/G+zFnNLL+/boD76laoHWfpDLs1iSzLH7xBvxGs5wIUDszizqfSzQwHQ7MMEnEb708svpqSsvK6wTQsxnXcx8y76ILjsDTKXLCxN9r+jPa+xQQ2XswibYyAvLyu/v6iwltzSLfG2nPONRTVpk1H71T30UKj23ArmlS43Bu43y8RntaJmoXaubw1pUVTzsILPimGdy0P9atfGM4juiGSaPr0TIDmunUOBaLc/jYcESYjzRDUgn9jYLm2UD/pYiRFRb5FMqyh16/bxFf4InTaqzHXHIOYftFUtGJI0xk/feAxNzLo4XuVsia0SzX8mEUYWQbAZTwy1qR9PYbtQo57IE5R3uNBmjcV2h2y91k+7FxpC+KsGiL5MJ8v8PdHVc6W9rS2ZiMew+sUPC26zfrDEXBMONVahm6YBXgBaVDXx4fUE65U2hQdTUOF+3mhaGiHL60j X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3834.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(366004)(346002)(136003)(376002)(39860400002)(316002)(54906003)(1076003)(5660300002)(26005)(36756003)(8676002)(66476007)(33656002)(66946007)(38100700001)(86362001)(66556008)(4326008)(966005)(2906002)(186003)(6916009)(9746002)(9786002)(2616005)(478600001)(8936002)(426003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?MUdK1z3M2/DiUT5rFOFAFwRcaLOZ+6Onp3HXr58ivyQ7SWY7tCuSiKPmksY0?= =?us-ascii?Q?36+8yt+AHMlTdmwsAs69qm/Bb12tobrUoVodWRHwTJ6rzyd0+p8BCCyysixt?= =?us-ascii?Q?eBMBUXFItAeDuI+OvUhK0J5jBz3aClyPGcmvPTPT97pqE72mclcd/jc8t9WB?= =?us-ascii?Q?OBOyv1qhbaOKDGtlOxjgBJJ3YrBnoeszBdMinWvH6XHr518T34BbM2ZjQMVM?= =?us-ascii?Q?t/eoUtu6d2dfB8lrcM2Wm9ltmDK3s1wOwS9psWvYtxv3mO/PCtLzgtjBV8Z+?= =?us-ascii?Q?EXce5jeijoLIEh7v4zYt2aLp9VrxRf6sF8crBXkd1hdUWElaOYTrefcF0tkV?= =?us-ascii?Q?v0I3E6kt2t/aM80hdHFRnHO9BuHmqnClkkXuIJkvCAcuFrXnmA0Nk5WWZEVb?= =?us-ascii?Q?/TmWxH+YfxzY96o/0z/cO9wYPrp76ZTbuyJU4KyNCr0sl/8Qqm14axTiBLKP?= =?us-ascii?Q?/cQHVteaPR/FJwBh2iT8q1GTjmeCWFUYrdLLGIWeryk9HhwGEnTXNcBapmW4?= =?us-ascii?Q?kujo3NhQPndSnbLi8Srmu83BAZ6w156xlfYxkNPS70feOSKi7K3Ee0yDavBx?= =?us-ascii?Q?IyARCRlOAmvWo22eT5K8PEJQpQUCIrSZxVQqNDve55ftilXaofaBtQSOB/26?= =?us-ascii?Q?4gkQNQcP/nqnvs0T7bECyROsDwWYfdpEHV8e/gPrvKljYKPeWyAVOU162Tri?= =?us-ascii?Q?lDC/omRUlfo1qpiyhzGxK0OGV+N11sUIlY0STEnXeh6sdgWC4wLPFPb4+TEQ?= =?us-ascii?Q?YAS4sdmw7Oigyz+yp8SBVDyJsyEtuHnMcHBgqGGv1lU2TEcT92yh3O0B0G2y?= =?us-ascii?Q?zOKpkp6t3CnjX+CH/PXS0basoSYp9RUr2ABv5rXVKNoPAx3KYNaNaYv6M5fE?= =?us-ascii?Q?NhlrkdT2x1PZEWsYMpv2XQEQ02FLdzkfvpzpeyuzjolR2zQhnoQ7Fta6GIFI?= =?us-ascii?Q?L0VO/yn9KyCiVdDA1fS8I7TJlGzyyFaWuePMu49zZl1wEmTha7rDEah29jvk?= =?us-ascii?Q?Ty+SRNf9JuTfK5LmshuA3VvvUwMkuwbqDZcgek8m8Qu8Y2dkMmx5zBKt1ThE?= =?us-ascii?Q?UCjFC1H1lw+It78ZNwUbFErxPPlKz8bpoM2ukRy0dXngCeIAsgZfAzMNcFXc?= =?us-ascii?Q?2nR+wO42yT/MiU9qoAJXWr17UMoBR5Uc0tqEIkifsXceJlh56XHgCG2F9Wdo?= =?us-ascii?Q?6EetkwdrMS2383GeTKuYe0bMxEWqO1iNPhOFWasTFC6HqmEAc0Qw9UO7NCjf?= =?us-ascii?Q?S+DlE5lmy+VoGU0eXiRrPJqh0XJoE9fYK5pDVvfof7ndcsVAtXL9/7u2iqgU?= =?us-ascii?Q?OalC0Yqdyx9x6gq26uLPq+y0?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3255a74b-f322-45b3-a76f-08d8f2248241 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3834.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2021 20:03:09.2249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /2RaL+f8rzlZ4Gib8RKPbmN99G7w8vXeJCUk4wj3NkGzHy0SZOc5YZqzVqxz/Yug X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1884 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 28, 2021 at 03:06:40AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e > commit: 179209fa12709a3df8888c323b37315da2683c24 vfio: IOMMU_API should be selected > date: 11 days ago > config: powerpc64-randconfig-r031-20210328 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d50fe9f0d6b9ee61df8830a67ea0a33c27a637e7) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install powerpc64 cross compiling tool for clang build > # apt-get install binutils-powerpc64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=179209fa12709a3df8888c323b37315da2683c24 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 179209fa12709a3df8888c323b37315da2683c24 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaration of function 'mm_iommu_put' [-Werror,-Wimplicit-function-declaration] > ret = mm_iommu_put(data->mm, data->mem); > ^ > drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: note: did you mean 'mm_iommu_init'? > arch/powerpc/include/asm/mmu_context.h:57:20: note: 'mm_iommu_init' declared here > static inline void mm_iommu_init(struct mm_struct *mm) { } > ^ > >> drivers/vfio/pci/vfio_pci_nvlink2.c:165:14: error: implicit declaration of function 'mm_iommu_newdev' [-Werror,-Wimplicit-function-declaration] > ret = (int) mm_iommu_newdev(data->mm, data->useraddr, > ^ > 2 errors generated. This is because of a missing CONFIG_SPAPR_TCE_IOMMU combined incomplete function stubbing in arch/powerpc/include/asm/mmu_context.h I'll send a patch to 'add && SPAPR_TCE_IOMMU' to 'config VFIO_PCI_NVLINK2' (it is interesting we are seeing these now as these patches sat on my github which is linked to 0-day too for quite a long time) Jason From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8028479018007549630==" MIME-Version: 1.0 From: Jason Gunthorpe To: kbuild-all@lists.01.org Subject: Re: drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaration of function 'mm_iommu_put' Date: Sun, 28 Mar 2021 16:57:18 -0300 Message-ID: <20210328195718.GX2356281@nvidia.com> In-Reply-To: <202103280335.BK1WDXLW-lkp@intel.com> List-Id: --===============8028479018007549630== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, Mar 28, 2021 at 03:06:40AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e > commit: 179209fa12709a3df8888c323b37315da2683c24 vfio: IOMMU_API should b= e selected > date: 11 days ago > config: powerpc64-randconfig-r031-20210328 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d50f= e9f0d6b9ee61df8830a67ea0a33c27a637e7) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install powerpc64 cross compiling tool for clang build > # apt-get install binutils-powerpc64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.= git/commit/?id=3D179209fa12709a3df8888c323b37315da2683c24 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/= git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 179209fa12709a3df8888c323b37315da2683c24 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross AR= CH=3Dpowerpc64 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > >> drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaratio= n of function 'mm_iommu_put' [-Werror,-Wimplicit-function-declaration] > ret =3D mm_iommu_put(data->mm, data->mem); > ^ > drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: note: did you mean 'mm_iom= mu_init'? > arch/powerpc/include/asm/mmu_context.h:57:20: note: 'mm_iommu_init' de= clared here > static inline void mm_iommu_init(struct mm_struct *mm) { } > ^ > >> drivers/vfio/pci/vfio_pci_nvlink2.c:165:14: error: implicit declaratio= n of function 'mm_iommu_newdev' [-Werror,-Wimplicit-function-declaration] > ret =3D (int) mm_iommu_newdev(data->mm, data->useraddr, > ^ > 2 errors generated. This is because of a missing CONFIG_SPAPR_TCE_IOMMU combined incomplete function stubbing in arch/powerpc/include/asm/mmu_context.h I'll send a patch to 'add && SPAPR_TCE_IOMMU' to 'config VFIO_PCI_NVLINK2' (it is interesting we are seeing these now as these patches sat on my github which is linked to 0-day too for quite a long time) Jason --===============8028479018007549630==--