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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B19CC3DA66 for ; Fri, 25 Aug 2023 11:26:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 75DDC280096; Fri, 25 Aug 2023 07:25:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 70CD8280091; Fri, 25 Aug 2023 07:25:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D4CB280096; Fri, 25 Aug 2023 07:25:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4D635280091 for ; Fri, 25 Aug 2023 07:25:59 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1D54BB21EE for ; Fri, 25 Aug 2023 11:25:59 +0000 (UTC) X-FDA: 81162397638.06.2C3D638 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf24.hostedemail.com (Postfix) with ESMTP id E58D618000F for ; Fri, 25 Aug 2023 11:25:55 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fEnOAZ5J; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692962757; h=from:from:sender: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:in-reply-to: references:dkim-signature; bh=DS7bsZqE9xFWLVxGDjlP0A1npP1B31tOkvViowgT8Es=; b=E8Z5Vmi5ycmERBv2/H5pOaA4fxmitZxcnSWYCrAxgKm3nllaihhegd1kKSLfwtPyyQ5w/3 alvjqwvS+Kedbyz0KJjiLkxJwx9E4oD7xjmQyLa5zjvXzuBLZ4CYTo+19wSmZly56BL5q8 GXbSNGF1iMUz1q569byaK7TfearDlSI= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fEnOAZ5J; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692962757; a=rsa-sha256; cv=none; b=SDQt6RMLpk5zEOrBlTOUbfUZXYXCvxZFvcsokTqfFvEKzgCg0MrLHjiIeVYADYSixpqEim pCImTYNuWaHHUvdxBfArrMnO3cocpnuhc0o4IRoJHbwMut4dYDVvWMmushxqlvY3S7k0Zv 2YukVtD+uk+nyRtmjih1nAlp3PopFuY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692962756; x=1724498756; h=date:from:to:cc:subject:message-id:mime-version; bh=dZCkDVpzdGis2FkhXG4Y9vSWt92TtsbxnFXC3X8+rus=; b=fEnOAZ5JRh3mTcfXaS1Pw5HnawNbRDpmUWD3eV1iqvnwmJ3haG1QDfZg f6rXTSWXbg9wtuumDZXFKc9w8gu/T23E1z5KI5DMejNF7YRKBSZEENeUR rP6HRaNL97dBMwYOPUtqpiHQ75Ktl+vpsO6riVffA5slKbFGJVvmL9Ubz AvTpAnmgZyogRKCJJ2FMuW3RWwYBlMGkBl/8DpNSgnT/n2vgwiRd1jIhm buDy2v32+tE7S+vB3PXwPbE8D69CG7Zz16GkTtAEkJWp03FdvDZZANIbt d9EbZkBQNoRuq4tDEIkAGC9fKcUWitdOYeU9bRWaxfbRMp0aSD06sSlQJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="378475235" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="378475235" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 04:25:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10812"; a="687268624" X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="687268624" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 25 Aug 2023 04:25:52 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qZUw0-0003VW-0O; Fri, 25 Aug 2023 11:25:09 +0000 Date: Fri, 25 Aug 2023 19:23:29 +0800 From: kernel test robot To: Yi Liu Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Williamson , Jason Gunthorpe Subject: [linux-next:master 3581/12910] arch/powerpc/kvm/../../../virt/kvm/vfio.c:89:7: error: attribute declaration must precede definition Message-ID: <202308251949.5IiaV0sz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: E58D618000F X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: qy785z9optw9xof5z3w83t6c3y556nau X-HE-Tag: 1692962755-609927 X-HE-Meta: U2FsdGVkX18CT6RAVnu9gqYEGMEQzzePbtvnrS0bZyZeJWQJrokE6X5kIJy8CVc9+XQk26FVB81eHr+0UdAFxbmf+PgRL2DM1nNpSfPtVlt1Ak44o8oUpYZVNmqkZOotYm8yvEM1wcShQEwj8z1NC+kWyqpPKKADcrxWdUxfnVftnO8SwlNhPWv8TFFeS5iSaiKP6tmbdRwVOw14+2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Jpq+E0Uc0j+xCV+1KQUSsQMzVTVoUbnWRiS21kZK81kEFMQ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6269320850097903b30be8f07a5c61d9f7592393 commit: c1cce6d079b875396c9a7c6838fc5b024758e540 [3581/12910] vfio: Compile vfio_group infrastructure optionally config: powerpc64-randconfig-r001-20230825 (https://download.01.org/0day-ci/archive/20230825/202308251949.5IiaV0sz-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230825/202308251949.5IiaV0sz-lkp@intel.com/reproduce) 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/202308251949.5IiaV0sz-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/powerpc/kvm/../../../virt/kvm/vfio.c:89:7: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] fn = symbol_get(vfio_file_iommu_group); ^ include/linux/module.h:805:60: note: expanded from macro 'symbol_get' #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak,visibility("hidden"))); &(x); }) ^ include/linux/vfio.h:294:35: note: previous definition is here static inline struct iommu_group *vfio_file_iommu_group(struct file *file) ^ >> arch/powerpc/kvm/../../../virt/kvm/vfio.c:89:7: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] fn = symbol_get(vfio_file_iommu_group); ^ include/linux/module.h:805:65: note: expanded from macro 'symbol_get' #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak,visibility("hidden"))); &(x); }) ^ include/linux/vfio.h:294:35: note: previous definition is here static inline struct iommu_group *vfio_file_iommu_group(struct file *file) ^ 2 errors generated. vim +89 arch/powerpc/kvm/../../../virt/kvm/vfio.c 4b22ef042d6f54 Jason Gunthorpe 2022-10-07 82 4b22ef042d6f54 Jason Gunthorpe 2022-10-07 83 #ifdef CONFIG_SPAPR_TCE_IOMMU 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 84 static struct iommu_group *kvm_vfio_file_iommu_group(struct file *file) 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 85 { 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 86 struct iommu_group *(*fn)(struct file *file); 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 87 struct iommu_group *ret; 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 88 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 @89 fn = symbol_get(vfio_file_iommu_group); 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 90 if (!fn) 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 91 return NULL; 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 92 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 93 ret = fn(file); 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 94 50d63b5bbfd122 Jason Gunthorpe 2022-05-04 95 symbol_put(vfio_file_iommu_group); 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 96 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 97 return ret; 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 98 } 121f80ba68f1a5 Alexey Kardashevskiy 2017-03-22 99 :::::: The code at line 89 was first introduced by commit :::::: 50d63b5bbfd12262069ad062611cd5e69c5e9e05 vfio: Change vfio_external_user_iommu_id() to vfio_file_iommu_group() :::::: TO: Jason Gunthorpe :::::: CC: Alex Williamson -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki