[PATCH v4] perf: arm_dsu: Support DSU ACPI devices

kernel test robot lkp at intel.com
Wed Sep 9 18:24:52 EDT 2020


Hi Tuan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.9-rc4 next-20200909]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Tuan-Phan/perf-arm_dsu-Support-DSU-ACPI-devices/20200910-012936
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8
config: arm64-randconfig-r012-20200909 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8893d0816ccdf8998d2e21b5430e9d6abe7ef465)
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/perf/arm_dsu_pmu.c:657:12: error: incomplete definition of type 'struct acpi_device'
                           acpi_dev->parent == ACPI_COMPANION(dev)->parent)
                           ~~~~~~~~^
   include/linux/acpi.h:724:8: note: forward declaration of 'struct acpi_device'
   struct acpi_device;
          ^
>> drivers/perf/arm_dsu_pmu.c:657:43: error: member reference base type 'void' is not a structure or union
                           acpi_dev->parent == ACPI_COMPANION(dev)->parent)
                                               ~~~~~~~~~~~~~~~~~~~^ ~~~~~~
   2 errors generated.

# https://github.com/0day-ci/linux/commit/3bddaa8323fb79a93362259d94f9ca36c46f1885
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tuan-Phan/perf-arm_dsu-Support-DSU-ACPI-devices/20200910-012936
git checkout 3bddaa8323fb79a93362259d94f9ca36c46f1885
vim +657 drivers/perf/arm_dsu_pmu.c

   635	
   636	/**
   637	 * dsu_pmu_acpi_get_cpus: Get the list of CPUs in the cluster
   638	 * from ACPI.
   639	 */
   640	static int dsu_pmu_acpi_get_cpus(struct device *dev, cpumask_t *mask)
   641	{
   642		int cpu;
   643	
   644		/*
   645		 * A dsu pmu node is inside a cluster parent node along with cpu nodes.
   646		 * We need to find out all cpus that have the same parent with this pmu.
   647		 */
   648		for_each_possible_cpu(cpu) {
   649			struct acpi_device *acpi_dev;
   650			struct device *cpu_dev = get_cpu_device(cpu);
   651	
   652			if (!cpu_dev)
   653				continue;
   654	
   655			acpi_dev = ACPI_COMPANION(cpu_dev);
   656			if (acpi_dev &&
 > 657				acpi_dev->parent == ACPI_COMPANION(dev)->parent)
   658				cpumask_set_cpu(cpu, mask);
   659		}
   660	
   661		return 0;
   662	}
   663	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 42412 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200910/48537093/attachment-0001.gz>


More information about the linux-arm-kernel mailing list