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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34D4FC433F5 for ; Fri, 10 Dec 2021 17:05:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244351AbhLJRIs (ORCPT ); Fri, 10 Dec 2021 12:08:48 -0500 Received: from mga14.intel.com ([192.55.52.115]:2761 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233725AbhLJRIq (ORCPT ); Fri, 10 Dec 2021 12:08:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639155911; x=1670691911; h=date:from:to:cc:subject:message-id:mime-version; bh=7PEo9nG4krlh+5L4jdugOqDbqZIQi3a8SstgBedZSiU=; b=f6+2nbNj13u6rcGIkJMagvGlGvo3iezO7XpJghqfU9hSwzTZ5XENl9TJ NHi1ts7bvE/hax9rVWdRS9A+iSKz8OEmyx2QS3jFVqyxggl7SFDoijHXF 7JJ6VKnjorCEmpLCoC4ut9We++Ww8SQYhaPdMqhBSOh37FdS+ClUnH5C8 /QU3lQPrlgMy7EgF1NeGvbWawodcXl/8ANm27+r3LdVQzb8g20NXkZ0KZ VfJhPivPWpvQEKCI2z0SBcEA5grkKh5ld7lqkRrucG5JWg8B9A0pICoqd Znk9wYiqvbjYaYEA/YqRNrHR65ftLc6g6R4W2dxIIFsL/tWQcUF78HK6n g==; X-IronPort-AV: E=McAfee;i="6200,9189,10194"; a="238605857" X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="238605857" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 09:02:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="680802436" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 10 Dec 2021 09:02:11 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mvjHf-0003Oz-8O; Fri, 10 Dec 2021 17:02:11 +0000 Date: Sat, 11 Dec 2021 01:01:50 +0800 From: kernel test robot To: Liu Yi L Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [luxis1999-iommufd:iommufd-v5.16-rc3 32/33] include/linux/iommufd.h:30:1: error: expected identifier or '(' before '{' token Message-ID: <202112110154.soFBjQw6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/luxis1999/iommufd iommufd-v5.16-rc3 head: 44f89b130eec28760e6b655facd4be49c5bcc3f9 commit: 219a6860a2c8c2c89d71793ce4f9375f3e7bb61f [32/33] vfio/pci: Add VFIO_DEVICE_ATTACH_IOASPT config: nios2-buildonly-randconfig-r004-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110154.soFBjQw6-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.2.0 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 # https://github.com/luxis1999/iommufd/commit/219a6860a2c8c2c89d71793ce4f9375f3e7bb61f git remote add luxis1999-iommufd https://github.com/luxis1999/iommufd git fetch --no-tags luxis1999-iommufd iommufd-v5.16-rc3 git checkout 219a6860a2c8c2c89d71793ce4f9375f3e7bb61f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/vfio/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/vfio/vfio.c:35: >> include/linux/iommufd.h:30:1: error: expected identifier or '(' before '{' token 30 | { | ^ include/linux/iommufd.h:29:1: warning: 'iommufd_bind_pci_device' declared 'static' but never defined [-Wunused-function] 29 | iommufd_bind_pci_device(int fd, struct pci_dev *pdev, u32 *id, u64 dev_cookie); | ^~~~~~~~~~~~~~~~~~~~~~~ vim +30 include/linux/iommufd.h 8a81aeff73cead Jason Gunthorpe 2021-11-11 26 8a81aeff73cead Jason Gunthorpe 2021-11-11 27 #else /* !CONFIG_IOMMUFD */ 8a81aeff73cead Jason Gunthorpe 2021-11-11 28 static inline struct iommufd_device * 8a81aeff73cead Jason Gunthorpe 2021-11-11 29 iommufd_bind_pci_device(int fd, struct pci_dev *pdev, u32 *id, u64 dev_cookie); 8a81aeff73cead Jason Gunthorpe 2021-11-11 @30 { 8a81aeff73cead Jason Gunthorpe 2021-11-11 31 return ERR_PTR(-EOPNOTSUPP); 8a81aeff73cead Jason Gunthorpe 2021-11-11 32 } 8a81aeff73cead Jason Gunthorpe 2021-11-11 33 :::::: The code at line 30 was first introduced by commit :::::: 8a81aeff73cead826a9b7d26e9af4f09c9fd700f iommufd: Add kAPI toward external drivers :::::: TO: Jason Gunthorpe :::::: CC: Liu Yi L --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org