Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94B25CE79AC for ; Wed, 20 Sep 2023 08:27:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 309446B012F; Wed, 20 Sep 2023 04:27:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B7CC6B0130; Wed, 20 Sep 2023 04:27:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CDBA6B0131; Wed, 20 Sep 2023 04:27:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 0E9A76B012F for ; Wed, 20 Sep 2023 04:27:07 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D211CC0ECA for ; Wed, 20 Sep 2023 08:27:06 +0000 (UTC) X-FDA: 81256295652.22.A0975A4 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf23.hostedemail.com (Postfix) with ESMTP id 4DDA1140013 for ; Wed, 20 Sep 2023 08:27:04 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Df5YjrK5; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695198425; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=cwCv/8jBEEtHqfxY45GoVdpcQ6E3E/xCaUNsoxeB0hs=; b=6oux5VsU3bTM5n8f5mbfGuhT7vT8W8tf3SAFhNTjcpNauIaBsPkRzhkmNm6m2CM4Q6bTEm /1/WoqRDpbHhNnjsJeW4yghXIArhUv9uJA5Lj1x5yQ8C5FK+PN1J8t8fyiEsPJ1Szt/MI8 Md6OFZcRUbkMXhNlXG9Da5Ws05HM3xw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Df5YjrK5; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695198425; a=rsa-sha256; cv=none; b=umr+4O2ozbveMYhEs33HzqP5K0ZxMlIHMhb4FEIwCioXs82Lm0U99+sNgsOi/NAJ288FlQ 5kbu7kMovy3IPD5U8ydA6yNSNK30xe+/u80UId70XFTOsT0KCD6w81FJP5q+NqTSYs/rQh 5o2DYjf4x7OniDQqZfZNwcU8w2KErps= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695198424; x=1726734424; h=date:from:to:cc:subject:message-id:mime-version; bh=HO/hObCYowlkqa0IMHNwu/FGnScYhoIZrLcXLahpGPU=; b=Df5YjrK5sjR4pYONnoSk/MMzHChfLVqobAqRRZNoQZLk6w33jWfJcjaO UolwWLaE98W+qRQ1UNbY4afMBzS52t6hMTRWyBlNW6jnJMlBvKN1+fmYQ 62e56WJA5DlOFnD6Mprh1LgnQ9k1p2U6+3pRXqwAgTJZRBZWvYFgGgoOE JnLrChCSZQlYmcor0aOwwOcuSEaZVqP6ANVAsORtsu4wGqSmrrVTk1cHa Mc0BSp8mnyYbDKMs84lHeHecLB3QtmZwAXdlIM2XM2gDBMYiGTnuFUxZv PMYS2/H3q0hi7VTG4cReOgW02my7lFFBdC0IE2bfCt6RCVEi6s8O6zpyU w==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="444257206" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="444257206" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 01:27:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="1077339442" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="1077339442" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 20 Sep 2023 01:27:01 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qisXy-0008Va-2F; Wed, 20 Sep 2023 08:26:58 +0000 Date: Wed, 20 Sep 2023 16:26:07 +0800 From: kernel test robot To: Richard Fitzgerald Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Takashi Iwai Subject: [linux-next:master 5683/6619] sound/pci/hda/cirrus_scodec_test.c:40: undefined reference to `gpiochip_get_data' Message-ID: <202309201646.NnjfKPWk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4DDA1140013 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 15po1j9f5b9xr9htxtiwifyqn43dwjpu X-HE-Tag: 1695198424-19087 X-HE-Meta: U2FsdGVkX18I194W4QuVRJh4X0KVPZ3AQCNqDyAZQHefAsWkS41ZSacIkr7wf4IJ+i7G5SCBhSQIiVs4nGpMVC9pya7YdFjGfBeMhVY+tUpYQ/m41hkSi+HotHTtReZLfFpHX+Vbh6RAzWpDdO55aoLt7TKoRtTe4tlsSI2T3/6QTUzGl2+N0qY4VnomMmUgNCo3WqBo5HsvKcWk+6HqDHHp+ON9x1qUjEaLg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ay1vV5wYa07lJ10zDkWlcgRknvk7YVwJUgtJmeYdyWiqz X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 926f75c8a5ab70567eb4c2d82fbc96963313e564 commit: 2144833e7b41459fa2d52bb0676f0ab4920cf32c [5683/6619] ALSA: hda: cirrus_scodec: Add KUnit test config: x86_64-randconfig-016-20230822 (https://download.01.org/0day-ci/archive/20230920/202309201646.NnjfKPWk-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309201646.NnjfKPWk-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309201646.NnjfKPWk-lkp@intel.com/ All errors (new ones prefixed by >>): ld: vmlinux.o: in function `cirrus_scodec_test_gpio_get': >> sound/pci/hda/cirrus_scodec_test.c:40: undefined reference to `gpiochip_get_data' ld: vmlinux.o: in function `cirrus_scodec_test_gpio_probe': >> sound/pci/hda/cirrus_scodec_test.c:94: undefined reference to `gpiochip_generic_request' >> ld: sound/pci/hda/cirrus_scodec_test.c:94: undefined reference to `gpiochip_generic_free' >> ld: sound/pci/hda/cirrus_scodec_test.c:95: undefined reference to `devm_gpiochip_add_data_with_key' vim +40 sound/pci/hda/cirrus_scodec_test.c 37 38 static int cirrus_scodec_test_gpio_get(struct gpio_chip *chip, unsigned int offset) 39 { > 40 struct cirrus_scodec_test_gpio *gpio_priv = gpiochip_get_data(chip); 41 42 return !!(gpio_priv->pin_state & BIT(offset)); 43 } 44 45 static int cirrus_scodec_test_gpio_direction_out(struct gpio_chip *chip, 46 unsigned int offset, int value) 47 { 48 return -EOPNOTSUPP; 49 } 50 51 static void cirrus_scodec_test_gpio_set(struct gpio_chip *chip, unsigned int offset, 52 int value) 53 { 54 } 55 56 static int cirrus_scodec_test_gpio_set_config(struct gpio_chip *gc, 57 unsigned int offset, 58 unsigned long config) 59 { 60 switch (pinconf_to_config_param(config)) { 61 case PIN_CONFIG_OUTPUT: 62 case PIN_CONFIG_OUTPUT_ENABLE: 63 return -EOPNOTSUPP; 64 default: 65 return 0; 66 } 67 } 68 69 static const struct gpio_chip cirrus_scodec_test_gpio_chip = { 70 .label = "cirrus_scodec_test_gpio", 71 .owner = THIS_MODULE, 72 .request = gpiochip_generic_request, 73 .free = gpiochip_generic_free, 74 .get_direction = cirrus_scodec_test_gpio_get_direction, 75 .direction_input = cirrus_scodec_test_gpio_direction_in, 76 .get = cirrus_scodec_test_gpio_get, 77 .direction_output = cirrus_scodec_test_gpio_direction_out, 78 .set = cirrus_scodec_test_gpio_set, 79 .set_config = cirrus_scodec_test_gpio_set_config, 80 .base = -1, 81 .ngpio = 32, 82 }; 83 84 static int cirrus_scodec_test_gpio_probe(struct platform_device *pdev) 85 { 86 struct cirrus_scodec_test_gpio *gpio_priv; 87 int ret; 88 89 gpio_priv = devm_kzalloc(&pdev->dev, sizeof(*gpio_priv), GFP_KERNEL); 90 if (!gpio_priv) 91 return -ENOMEM; 92 93 /* GPIO core modifies our struct gpio_chip so use a copy */ > 94 gpio_priv->chip = cirrus_scodec_test_gpio_chip; > 95 ret = devm_gpiochip_add_data(&pdev->dev, &gpio_priv->chip, gpio_priv); 96 if (ret) 97 return dev_err_probe(&pdev->dev, ret, "Failed to add gpiochip\n"); 98 99 dev_set_drvdata(&pdev->dev, gpio_priv); 100 101 return 0; 102 } 103 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki