[linux-next:master 9380/11981] sound/pci/hda/cs35l41_hda.c:555:43: error: invalid use of undefined type 'struct acpi_device'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4ee7eaa411ee24d07fa83d97ca03fa6725c40d04
commit: eef375960210fdc1ec2786bddc91ff100444ffb8 [9380/11981] ALSA: hda: cs35l41: Support reading subsystem id from ACPI
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220721/202207210651.ngNNsAT1-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=eef375960210fdc1ec2786bddc91ff100444ffb8
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout eef375960210fdc1ec2786bddc91ff100444ffb8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash sound/pci/hda/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 4ee7eaa411ee24d07fa83d97ca03fa6725c40d04 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   sound/pci/hda/cs35l41_hda.c: In function 'cs35l41_get_acpi_sub_string':
>> sound/pci/hda/cs35l41_hda.c:555:43: error: invalid use of undefined type 'struct acpi_device'
     555 |         status = acpi_evaluate_object(adev->handle, "_SUB", NULL, &buffer);
         |                                           ^~


vim +555 sound/pci/hda/cs35l41_hda.c

   546	
   547	static int cs35l41_get_acpi_sub_string(struct device *dev, struct acpi_device *adev,
   548					       const char **subsysid)
   549	{
   550		struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
   551		union acpi_object *obj;
   552		acpi_status status;
   553		int ret = 0;
   554	
 > 555		status = acpi_evaluate_object(adev->handle, "_SUB", NULL, &buffer);
   556		if (ACPI_SUCCESS(status)) {
   557			obj = buffer.pointer;
   558			if (obj->type == ACPI_TYPE_STRING) {
   559				*subsysid = devm_kstrdup(dev, obj->string.pointer, GFP_KERNEL);
   560				if (*subsysid == NULL) {
   561					dev_err(dev, "Cannot allocate Subsystem ID");
   562					ret = -ENOMEM;
   563				}
   564			} else {
   565				dev_warn(dev, "Warning ACPI _SUB did not return a string\n");
   566				ret = -ENODEV;
   567			}
   568			acpi_os_free(buffer.pointer);
   569		} else {
   570			dev_dbg(dev, "Warning ACPI _SUB failed: %#x\n", status);
   571			ret = -ENODEV;
   572		}
   573	
   574		return ret;
   575	}
   576	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux