linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Stefan Binding <sbinding@opensource.cirrus.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Takashi Iwai <tiwai@suse.de>,
	Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Subject: [linux-next:master 9380/11981] sound/pci/hda/cs35l41_hda.c:555:43: error: invalid use of undefined type 'struct acpi_device'
Date: Thu, 21 Jul 2022 06:31:14 +0800	[thread overview]
Message-ID: <202207210651.ngNNsAT1-lkp@intel.com> (raw)

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

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


                 reply	other threads:[~2022-07-20 22:32 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=202207210651.ngNNsAT1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=sbinding@opensource.cirrus.com \
    --cc=tiwai@suse.de \
    --cc=vitalyr@opensource.cirrus.com \
    /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 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).