linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [rafael-pm:bleeding-edge 44/49] drivers/acpi/processor_pdc.c:59:10: error: implicit declaration of function 'xen_processor_present' is invalid in C99
@ 2023-03-21  0:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21  0:31 UTC (permalink / raw)
  To: Roger Pau Monne
  Cc: llvm, oe-kbuild-all, linux-acpi, devel, linux-pm,
	Rafael J. Wysocki, Juergen Gross

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   226ec3112c6fa4db1188828f76319f7eb6eb85ee
commit: 8509b1a86a966321a7ee9163620285f60da40468 [44/49] ACPI: processor: Fix evaluating _PDC method when running as Xen dom0
config: i386-randconfig-a004-20230320 (https://download.01.org/0day-ci/archive/20230321/202303210858.dZnSlO11-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=8509b1a86a966321a7ee9163620285f60da40468
        git remote add rafael-pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags rafael-pm bleeding-edge
        git checkout 8509b1a86a966321a7ee9163620285f60da40468
        # 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=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303210858.dZnSlO11-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/acpi/processor_pdc.c:59:10: error: implicit declaration of function 'xen_processor_present' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   return xen_processor_present(acpi_id);
                          ^
   1 error generated.


vim +/xen_processor_present +59 drivers/acpi/processor_pdc.c

    20	
    21	static bool __init processor_physically_present(acpi_handle handle)
    22	{
    23		int cpuid, type;
    24		u32 acpi_id;
    25		acpi_status status;
    26		acpi_object_type acpi_type;
    27		unsigned long long tmp;
    28		union acpi_object object = { 0 };
    29		struct acpi_buffer buffer = { sizeof(union acpi_object), &object };
    30	
    31		status = acpi_get_type(handle, &acpi_type);
    32		if (ACPI_FAILURE(status))
    33			return false;
    34	
    35		switch (acpi_type) {
    36		case ACPI_TYPE_PROCESSOR:
    37			status = acpi_evaluate_object(handle, NULL, NULL, &buffer);
    38			if (ACPI_FAILURE(status))
    39				return false;
    40			acpi_id = object.processor.proc_id;
    41			break;
    42		case ACPI_TYPE_DEVICE:
    43			status = acpi_evaluate_integer(handle, "_UID", NULL, &tmp);
    44			if (ACPI_FAILURE(status))
    45				return false;
    46			acpi_id = tmp;
    47			break;
    48		default:
    49			return false;
    50		}
    51	
    52		if (xen_initial_domain())
    53			/*
    54			 * When running as a Xen dom0 the number of processors Linux
    55			 * sees can be different from the real number of processors on
    56			 * the system, and we still need to execute _PDC for all of
    57			 * them.
    58			 */
  > 59			return xen_processor_present(acpi_id);
    60	
    61		type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0;
    62		cpuid = acpi_get_cpuid(handle, type, acpi_id);
    63	
    64		return !invalid_logical_cpuid(cpuid);
    65	}
    66	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-21  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21  0:31 [rafael-pm:bleeding-edge 44/49] drivers/acpi/processor_pdc.c:59:10: error: implicit declaration of function 'xen_processor_present' is invalid in C99 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).