All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hector Martin <marcan@marcan.st>
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
Date: Fri, 8 Jul 2022 12:58:38 +0800	[thread overview]
Message-ID: <202207081257.fudLBidd-lkp@intel.com> (raw)

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 <lkp@intel.com>

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 <marcan@marcan.st>
:::::: CC: Hector Martin <marcan@marcan.st>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-08  4:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207081257.fudLBidd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=marcan@marcan.st \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.