From mboxrd@z Thu Jan 1 00:00:00 1970 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 C46BBC6787B for ; Fri, 25 Aug 2023 19:06:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1EE7680012; Fri, 25 Aug 2023 15:06:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACCD168000F; Fri, 25 Aug 2023 15:06:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 91FBC680012; Fri, 25 Aug 2023 15:06:05 -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 7F92C68000F for ; Fri, 25 Aug 2023 15:06:05 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5DC04B229F for ; Fri, 25 Aug 2023 19:06:05 +0000 (UTC) X-FDA: 81163557090.05.7B32512 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by imf18.hostedemail.com (Postfix) with ESMTP id 463241C000C for ; Fri, 25 Aug 2023 19:06:03 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QeLsezVf; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692990363; 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=QY5y7944VADaNjAgvOmSeHU6LG46Hx3zY5d5uWbluLs=; b=tVxkL9AYjrWVjSCMf/emPU69aYh5qezYJhO9OmSCF3JIATs1FOZX8+PI215M6k+jj8WqrZ lhREXh1bPgKCaH1Nr7n/Z+seezag0NdO8pGlcuBg+IsrXwsj0DCc1MQ+D9C0T6dmz65P6d yMUJELCXdX3VXmV/Y5hUkDw3MkqoQGQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692990363; a=rsa-sha256; cv=none; b=pCODfdgiCCLL7pGboLqasG0L7pAiwZqjhLZTfI6mpw9yogjs48cwzI3e+t5l/ar7ECJUbC F0+Cpigr/fq9doXLmSrM6VtKUAJpEuMbq3zml9E6GjStKKJcU3bVNciC/Pwvo2VSfHHf/U WbaGdlrZrPctHajmug7+uVbPe2etCUs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QeLsezVf; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692990363; x=1724526363; h=date:from:to:cc:subject:message-id:mime-version; bh=ulHi7/K1qlSeCKhv0ydBA572/EkXfIF/8m+cnpKza3I=; b=QeLsezVf3EcrRNOjS6lc7IAUGbOcHINT62Zi+tcKNCUYvXwjKKnuKuyk hta6iEuAva4m2EdvUNdVZQZJ6gcI4BHTylbN7YACzbFI60qR3d/YTz2h9 pLSLDSJOtQn4COFkdoXP79NyOZnZcNCI/HiSh+zvqwL/1KJcRSGEmHjPm ml+0LAchofhYqahhk+uJln9UyZntCt9r/CFe5rkCxsjSesQ/kW6gsZAWu O1QNprAX5olwhL5Aw7+AWfRh1RVTsKYwh20vmx3lCY0RmPycQQi9t7xrU Ozy0mXuSccJbHUEP+vHAUK5riTIsxzbrvH2cEHdJ71cHaCBMMz7swuaCK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10813"; a="461145623" X-IronPort-AV: E=Sophos;i="6.02,201,1688454000"; d="scan'208";a="461145623" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2023 12:06:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10813"; a="772584199" X-IronPort-AV: E=Sophos;i="6.02,201,1688454000"; d="scan'208";a="772584199" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 25 Aug 2023 12:05:59 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qZc86-0003vD-22; Fri, 25 Aug 2023 19:05:58 +0000 Date: Sat, 26 Aug 2023 03:05:48 +0800 From: kernel test robot To: Lizhi Hou Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Rob Herring Subject: [linux-next:master 11860/12910] drivers/of/unittest.c:3763:43: error: invalid use of undefined type 'struct overlay_info' Message-ID: <202308260218.hAEW63gz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 463241C000C X-Rspam-User: X-Stat-Signature: j6oq949pbq3sir7977jzp4c536s7j3jz X-Rspamd-Server: rspam03 X-HE-Tag: 1692990363-983939 X-HE-Meta: U2FsdGVkX1+WVgdi98QZSQI3No+oxoEBHkk/Xd0GL60JgaKy0AL9xOBwBNORYq94Q1mdQkc1se404eZM2ZFw+cv4awELThSwZ3yuYRniGNjUzuBu0xG50RfqXH6SkEbg404iaGir5CHz4Ua51kiMEo3uBVjB7C8Zq0Nx0YDsN41V9amEK/+vLVnaqQcdF1VGkGuQSS7MfTX5x9/ZpNLDyDbZ0+E/C/Mjst4EkexV6EjGKvBSadSoGRg86VXBCaPECRR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/m7MS4 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: 6269320850097903b30be8f07a5c61d9f7592393 commit: 26409dd045892904b059dc411403e9c8ce7543ca [11860/12910] of: unittest: Add pci_dt_testdrv pci driver config: alpha-randconfig-r006-20230826 (https://download.01.org/0day-ci/archive/20230826/202308260218.hAEW63gz-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230826/202308260218.hAEW63gz-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/202308260218.hAEW63gz-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/of/unittest.c: In function 'testdrv_probe': drivers/of/unittest.c:3763:21: error: 'overlays' undeclared (first use in this function) 3763 | for (info = overlays; info && info->name; info++) { | ^~~~~~~~ drivers/of/unittest.c:3763:21: note: each undeclared identifier is reported only once for each function it appears in >> drivers/of/unittest.c:3763:43: error: invalid use of undefined type 'struct overlay_info' 3763 | for (info = overlays; info && info->name; info++) { | ^~ drivers/of/unittest.c:3763:55: error: increment of pointer to an incomplete type 'struct overlay_info' 3763 | for (info = overlays; info && info->name; info++) { | ^~ drivers/of/unittest.c:3764:33: error: invalid use of undefined type 'struct overlay_info' 3764 | if (!strcmp(info->name, "overlay_pci_node")) | ^~ drivers/of/unittest.c:3767:27: error: invalid use of undefined type 'struct overlay_info' 3767 | if (!info || !info->name) { | ^~ drivers/of/unittest.c:3772:20: error: invalid use of undefined type 'struct overlay_info' 3772 | size = info->dtbo_end - info->dtbo_begin; | ^~ drivers/of/unittest.c:3772:37: error: invalid use of undefined type 'struct overlay_info' 3772 | size = info->dtbo_end - info->dtbo_begin; | ^~ drivers/of/unittest.c:3773:40: error: invalid use of undefined type 'struct overlay_info' 3773 | ret = of_overlay_fdt_apply(info->dtbo_begin, size, &ovcs_id, dn); | ^~ drivers/of/unittest.c:3773:15: error: too many arguments to function 'of_overlay_fdt_apply' 3773 | ret = of_overlay_fdt_apply(info->dtbo_begin, size, &ovcs_id, dn); | ^~~~~~~~~~~~~~~~~~~~ In file included from drivers/of/unittest.c:15: include/linux/of.h:1679:19: note: declared here 1679 | static inline int of_overlay_fdt_apply(void *overlay_fdt, u32 overlay_fdt_size, | ^~~~~~~~~~~~~~~~~~~~ vim +3763 drivers/of/unittest.c 3749 3750 static int testdrv_probe(struct pci_dev *pdev, const struct pci_device_id *id) 3751 { 3752 struct overlay_info *info; 3753 struct device_node *dn; 3754 int ret, ovcs_id; 3755 u32 size; 3756 3757 dn = pdev->dev.of_node; 3758 if (!dn) { 3759 dev_err(&pdev->dev, "does not find bus endpoint"); 3760 return -EINVAL; 3761 } 3762 > 3763 for (info = overlays; info && info->name; info++) { 3764 if (!strcmp(info->name, "overlay_pci_node")) 3765 break; 3766 } 3767 if (!info || !info->name) { 3768 dev_err(&pdev->dev, "no overlay data for overlay_pci_node"); 3769 return -ENODEV; 3770 } 3771 3772 size = info->dtbo_end - info->dtbo_begin; 3773 ret = of_overlay_fdt_apply(info->dtbo_begin, size, &ovcs_id, dn); 3774 of_node_put(dn); 3775 if (ret) 3776 return ret; 3777 3778 of_platform_default_populate(dn, NULL, &pdev->dev); 3779 pci_set_drvdata(pdev, (void *)(uintptr_t)ovcs_id); 3780 3781 return 0; 3782 } 3783 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki