From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F85565B for ; Fri, 8 Jul 2022 04:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657256382; x=1688792382; h=date:from:to:cc:subject:message-id:mime-version; bh=ZtDYUcj6AmC/7C4R9y2OR/dhEz5H0ngqoyDYn+aKV58=; b=iXHMVbLOs/S8anyivS0P6XWFMNr8o3YUpWktb33oqDg2shKrHtkJThqW fTyGsR+yDnc53NTkzmBVO2KLsSZoTMT9aXxk58jIyfLCi0kvkRzlA9316 qZajEdMqPX6Eh77jsjavdu7JdAXH2Oeu/u6mzU/vyHF6CPfDrqma7+L1V bpldOlFsT1yL7qo1Fcfko5LjTIEXzUM1/IgkIKlQFxNKzVGvAaNZuujNA imi6ZwdcWy9+KydFQr9RfikkmGiIB/8FgKoNmd2bSBIqVR+pNGIA9j9HI sRwiwkVPWFR8ugxAAG8U6iA74rl23zMvSunwIz/PtdDmvO3u0PYNbkV2D g==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="370503970" X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="370503970" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 21:59:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,254,1650956400"; d="scan'208";a="736212744" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 07 Jul 2022 21:59:25 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o9g5M-000MwO-LX; Fri, 08 Jul 2022 04:59:24 +0000 Date: Fri, 8 Jul 2022 12:58:38 +0800 From: kernel test robot To: Hector Martin Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [asahilinux:t8112/bringup 8/19] drivers/iommu/apple-dart.c:1075:64: error: too few arguments provided to function-like macro invocation Message-ID: <202207081257.fudLBidd-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/AsahiLinux/linux t8112/bringup head: 0e7640fed025ba0ce4b845a0bbf2a5fdceab631d commit: d6138d6b66705917ed95ced5735b41387a6c378d [8/19] iommu: dart: Support different variants with different registers config: arm64-buildonly-randconfig-r006-20220707 (https://download.01.org/0day-ci/archive/20220708/202207081257.fudLBidd-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 562c3467a6738aa89203f72fc1d1343e5baadf3c) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/AsahiLinux/linux/commit/d6138d6b66705917ed95ced5735b41387a6c378d git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux t8112/bringup git checkout d6138d6b66705917ed95ced5735b41387a6c378d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/hid/ drivers/iommu/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/iommu/apple-dart.c:1075:64: error: too few arguments provided to function-like macro invocation dart->save_tcr[sid] = readl_relaxed(dart->regs + DART_TCR(sid)); ^ drivers/iommu/apple-dart.c:87:9: note: macro 'DART_TCR' defined here #define DART_TCR(dart, sid) ((dart)->hw->tcr + ((sid) << 2)) ^ >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' dart->save_tcr[sid] = readl_relaxed(dart->regs + DART_TCR(sid)); ^ >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' >> drivers/iommu/apple-dart.c:1075:52: error: use of undeclared identifier 'DART_TCR' drivers/iommu/apple-dart.c:1100:64: error: too few arguments provided to function-like macro invocation writel_relaxed(dart->save_tcr[sid], dart->regs + DART_TCR(sid)); ^ drivers/iommu/apple-dart.c:87:9: note: macro 'DART_TCR' defined here #define DART_TCR(dart, sid) ((dart)->hw->tcr + ((sid) << 2)) ^ drivers/iommu/apple-dart.c:1100:52: error: use of undeclared identifier 'DART_TCR' writel_relaxed(dart->save_tcr[sid], dart->regs + DART_TCR(sid)); ^ 9 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for APPLE_ADMAC Depends on DMADEVICES && (ARCH_APPLE || COMPILE_TEST Selected by - SND_SOC_APPLE_MCA && SOUND && !UML && SND && SND_SOC && (ARCH_APPLE || COMPILE_TEST vim +1075 drivers/iommu/apple-dart.c ccedaa71b5d55f2 Sven Peter 2021-11-02 1067 010b44d6011e2ad Hector Martin 2022-03-05 1068 #ifdef CONFIG_PM_SLEEP 010b44d6011e2ad Hector Martin 2022-03-05 1069 static int apple_dart_suspend(struct device *dev) 010b44d6011e2ad Hector Martin 2022-03-05 1070 { 010b44d6011e2ad Hector Martin 2022-03-05 1071 struct apple_dart *dart = dev_get_drvdata(dev); 010b44d6011e2ad Hector Martin 2022-03-05 1072 unsigned int sid, idx; 010b44d6011e2ad Hector Martin 2022-03-05 1073 a65f5b92f35db32 Hector Martin 2022-06-28 1074 for (sid = 0; sid < dart->num_streams; sid++) { 010b44d6011e2ad Hector Martin 2022-03-05 @1075 dart->save_tcr[sid] = readl_relaxed(dart->regs + DART_TCR(sid)); 8c8ecc72e0be0e8 Hector Martin 2022-06-28 1076 for (idx = 0; idx < dart->hw->ttbr_count; idx++) 010b44d6011e2ad Hector Martin 2022-03-05 1077 dart->save_ttbr[sid][idx] = 8c8ecc72e0be0e8 Hector Martin 2022-06-28 1078 readl_relaxed(dart->regs + DART_TTBR(dart, sid, idx)); 010b44d6011e2ad Hector Martin 2022-03-05 1079 } 010b44d6011e2ad Hector Martin 2022-03-05 1080 010b44d6011e2ad Hector Martin 2022-03-05 1081 return 0; 010b44d6011e2ad Hector Martin 2022-03-05 1082 } 010b44d6011e2ad Hector Martin 2022-03-05 1083 :::::: The code at line 1075 was first introduced by commit :::::: 010b44d6011e2adc292d45fc286332e3b6aa3b49 iommu: dart: Add suspend/resume support :::::: TO: Hector Martin :::::: CC: Hector Martin -- 0-DAY CI Kernel Test Service https://01.org/lkp