From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F9A914036E; Thu, 28 Nov 2024 05:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732773575; cv=none; b=HWZTlXdZnMoqpt7+Psd8AyEVZNLL7zRlBB1JivusdcqX03QoBBzUnofwo0qnbAl7Mlsv8fRQaxN8Y5D0SJ9Ux0gU0a9tldj159TpeqrDWoKlrzuyelPRyfisSQro3P02cvLhKyTr0WE+s27Lga86E5wnfkLMFbmuooVEjEmHrrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732773575; c=relaxed/simple; bh=c0KVSQsmu1rPPpFE3S5HnK03A6rk+5gg33/ro18oufE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qzmDFfLS8nLJuuC6IwfL34c3GvOn6068RUE4VlPVoEa1ChyYfIweyfy1Jfl0my/n02jYzWBEPJ0U3gRCeGuyC+82ayq8I+eDclvpA3trA+97TY6dfFQ77lZWV93yeHkwbTpcqQn+Mll21sohbX5VMW9ud2bzJZvWDGZvMPaVaek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ANNJ3Fkt; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ANNJ3Fkt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732773573; x=1764309573; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=c0KVSQsmu1rPPpFE3S5HnK03A6rk+5gg33/ro18oufE=; b=ANNJ3Fktf0C79okrhDW4lYngFcx3IfVpobfLIuwgshqbK+tMeefOxhNC 1KFT/OtKfenmQLpZidOpTvtQzzFBDzo9TUR8KWlbi0z9ACa46RZiU6i3x ICt2QIFBvuBpKL14zC2kMDH7pscEmGP+fY80y2uYBUBT7gR5ci7BKPJLQ J0zF2Lr9KZ/CtlxqqOInEXrhADEfQPVHgeD47EnZfZhkFeGZMgUoOAtxa QLqdvhzJ8LWR+teYEEl6ox5mF392w0KLUxBKh3GWB/M16RfOv6/nCqYfv eSGJYZ8VA6o5vu/08O1w3ISI9BBnvhzP36zCeUsJI6bgqUkKJ5ryxUjm3 g==; X-CSE-ConnectionGUID: b9k1rEShTyuxudCVVYjq+w== X-CSE-MsgGUID: 882UXU0DQCed5jZlmGf9sg== X-IronPort-AV: E=McAfee;i="6700,10204,11269"; a="43662852" X-IronPort-AV: E=Sophos;i="6.12,191,1728975600"; d="scan'208";a="43662852" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2024 21:59:32 -0800 X-CSE-ConnectionGUID: kPW4/6JXQPuGryDD7XfTRQ== X-CSE-MsgGUID: lmzrxaPdSyinw+0AgZvGbg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,191,1728975600"; d="scan'208";a="91751016" Received: from lkp-server01.sh.intel.com (HELO 8122d2fc1967) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 27 Nov 2024 21:59:27 -0800 Received: from kbuild by 8122d2fc1967 with local (Exim 4.96) (envelope-from ) id 1tGXYi-00097f-2U; Thu, 28 Nov 2024 05:59:24 +0000 Date: Thu, 28 Nov 2024 13:58:50 +0800 From: kernel test robot To: Arnaud Pouliquen , Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Patrice Chotard , Maxime Coquelin , Alexandre Torgue Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Arnaud Pouliquen , linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v14 4/8] remoteproc: Rename load() operation to load_segments() in rproc_ops struct Message-ID: <202411281332.Ra70nJAW-lkp@intel.com> References: <20241126091042.918144-5-arnaud.pouliquen@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241126091042.918144-5-arnaud.pouliquen@foss.st.com> Hi Arnaud, kernel test robot noticed the following build errors: [auto build test ERROR on adc218676eef25575469234709c2d87185ca223a] url: https://github.com/intel-lab-lkp/linux/commits/Arnaud-Pouliquen/remoteproc-core-Introduce-rproc_pa_to_va-helper/20241128-094434 base: adc218676eef25575469234709c2d87185ca223a patch link: https://lore.kernel.org/r/20241126091042.918144-5-arnaud.pouliquen%40foss.st.com patch subject: [PATCH v14 4/8] remoteproc: Rename load() operation to load_segments() in rproc_ops struct config: i386-buildonly-randconfig-002-20241128 (https://download.01.org/0day-ci/archive/20241128/202411281332.Ra70nJAW-lkp@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241128/202411281332.Ra70nJAW-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/202411281332.Ra70nJAW-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/remoteproc/pru_rproc.c:24: In file included from include/linux/remoteproc.h:40: In file included from include/linux/virtio.h:7: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:2213: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/remoteproc/pru_rproc.c:1018:14: error: no member named 'load' in 'struct rproc_ops' 1018 | rproc->ops->load = pru_rproc_load_elf_segments; | ~~~~~~~~~~ ^ 1 warning and 1 error generated. vim +1018 drivers/remoteproc/pru_rproc.c d4ce2de7e4af8b Suman Anna 2020-12-08 987 d4ce2de7e4af8b Suman Anna 2020-12-08 988 static int pru_rproc_probe(struct platform_device *pdev) d4ce2de7e4af8b Suman Anna 2020-12-08 989 { d4ce2de7e4af8b Suman Anna 2020-12-08 990 struct device *dev = &pdev->dev; d4ce2de7e4af8b Suman Anna 2020-12-08 991 struct device_node *np = dev->of_node; d4ce2de7e4af8b Suman Anna 2020-12-08 992 struct platform_device *ppdev = to_platform_device(dev->parent); d4ce2de7e4af8b Suman Anna 2020-12-08 993 struct pru_rproc *pru; d4ce2de7e4af8b Suman Anna 2020-12-08 994 const char *fw_name; d4ce2de7e4af8b Suman Anna 2020-12-08 995 struct rproc *rproc = NULL; d4ce2de7e4af8b Suman Anna 2020-12-08 996 struct resource *res; d4ce2de7e4af8b Suman Anna 2020-12-08 997 int i, ret; 1d39f4d199214f Suman Anna 2020-12-08 998 const struct pru_private_data *data; d4ce2de7e4af8b Suman Anna 2020-12-08 999 const char *mem_names[PRU_IOMEM_MAX] = { "iram", "control", "debug" }; d4ce2de7e4af8b Suman Anna 2020-12-08 1000 1d39f4d199214f Suman Anna 2020-12-08 1001 data = of_device_get_match_data(&pdev->dev); 1d39f4d199214f Suman Anna 2020-12-08 1002 if (!data) 1d39f4d199214f Suman Anna 2020-12-08 1003 return -ENODEV; 1d39f4d199214f Suman Anna 2020-12-08 1004 d4ce2de7e4af8b Suman Anna 2020-12-08 1005 ret = of_property_read_string(np, "firmware-name", &fw_name); d4ce2de7e4af8b Suman Anna 2020-12-08 1006 if (ret) { d4ce2de7e4af8b Suman Anna 2020-12-08 1007 dev_err(dev, "unable to retrieve firmware-name %d\n", ret); d4ce2de7e4af8b Suman Anna 2020-12-08 1008 return ret; d4ce2de7e4af8b Suman Anna 2020-12-08 1009 } d4ce2de7e4af8b Suman Anna 2020-12-08 1010 d4ce2de7e4af8b Suman Anna 2020-12-08 1011 rproc = devm_rproc_alloc(dev, pdev->name, &pru_rproc_ops, fw_name, d4ce2de7e4af8b Suman Anna 2020-12-08 1012 sizeof(*pru)); d4ce2de7e4af8b Suman Anna 2020-12-08 1013 if (!rproc) { d4ce2de7e4af8b Suman Anna 2020-12-08 1014 dev_err(dev, "rproc_alloc failed\n"); d4ce2de7e4af8b Suman Anna 2020-12-08 1015 return -ENOMEM; d4ce2de7e4af8b Suman Anna 2020-12-08 1016 } d4ce2de7e4af8b Suman Anna 2020-12-08 1017 /* use a custom load function to deal with PRU-specific quirks */ d4ce2de7e4af8b Suman Anna 2020-12-08 @1018 rproc->ops->load = pru_rproc_load_elf_segments; d4ce2de7e4af8b Suman Anna 2020-12-08 1019 d4ce2de7e4af8b Suman Anna 2020-12-08 1020 /* use a custom parse function to deal with PRU-specific resources */ d4ce2de7e4af8b Suman Anna 2020-12-08 1021 rproc->ops->parse_fw = pru_rproc_parse_fw; d4ce2de7e4af8b Suman Anna 2020-12-08 1022 d4ce2de7e4af8b Suman Anna 2020-12-08 1023 /* error recovery is not supported for PRUs */ d4ce2de7e4af8b Suman Anna 2020-12-08 1024 rproc->recovery_disabled = true; d4ce2de7e4af8b Suman Anna 2020-12-08 1025 d4ce2de7e4af8b Suman Anna 2020-12-08 1026 /* d4ce2de7e4af8b Suman Anna 2020-12-08 1027 * rproc_add will auto-boot the processor normally, but this is not d4ce2de7e4af8b Suman Anna 2020-12-08 1028 * desired with PRU client driven boot-flow methodology. A PRU d4ce2de7e4af8b Suman Anna 2020-12-08 1029 * application/client driver will boot the corresponding PRU d4ce2de7e4af8b Suman Anna 2020-12-08 1030 * remote-processor as part of its state machine either through the d4ce2de7e4af8b Suman Anna 2020-12-08 1031 * remoteproc sysfs interface or through the equivalent kernel API. d4ce2de7e4af8b Suman Anna 2020-12-08 1032 */ d4ce2de7e4af8b Suman Anna 2020-12-08 1033 rproc->auto_boot = false; d4ce2de7e4af8b Suman Anna 2020-12-08 1034 d4ce2de7e4af8b Suman Anna 2020-12-08 1035 pru = rproc->priv; d4ce2de7e4af8b Suman Anna 2020-12-08 1036 pru->dev = dev; 1d39f4d199214f Suman Anna 2020-12-08 1037 pru->data = data; d4ce2de7e4af8b Suman Anna 2020-12-08 1038 pru->pruss = platform_get_drvdata(ppdev); d4ce2de7e4af8b Suman Anna 2020-12-08 1039 pru->rproc = rproc; d4ce2de7e4af8b Suman Anna 2020-12-08 1040 pru->fw_name = fw_name; 919e8942548aa8 MD Danish Anwar 2023-01-06 1041 pru->client_np = NULL; 102853400321ba Roger Quadros 2023-01-06 1042 spin_lock_init(&pru->rmw_lock); 919e8942548aa8 MD Danish Anwar 2023-01-06 1043 mutex_init(&pru->lock); d4ce2de7e4af8b Suman Anna 2020-12-08 1044 d4ce2de7e4af8b Suman Anna 2020-12-08 1045 for (i = 0; i < ARRAY_SIZE(mem_names); i++) { d4ce2de7e4af8b Suman Anna 2020-12-08 1046 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, d4ce2de7e4af8b Suman Anna 2020-12-08 1047 mem_names[i]); d4ce2de7e4af8b Suman Anna 2020-12-08 1048 pru->mem_regions[i].va = devm_ioremap_resource(dev, res); d4ce2de7e4af8b Suman Anna 2020-12-08 1049 if (IS_ERR(pru->mem_regions[i].va)) { d4ce2de7e4af8b Suman Anna 2020-12-08 1050 dev_err(dev, "failed to parse and map memory resource %d %s\n", d4ce2de7e4af8b Suman Anna 2020-12-08 1051 i, mem_names[i]); d4ce2de7e4af8b Suman Anna 2020-12-08 1052 ret = PTR_ERR(pru->mem_regions[i].va); d4ce2de7e4af8b Suman Anna 2020-12-08 1053 return ret; d4ce2de7e4af8b Suman Anna 2020-12-08 1054 } d4ce2de7e4af8b Suman Anna 2020-12-08 1055 pru->mem_regions[i].pa = res->start; d4ce2de7e4af8b Suman Anna 2020-12-08 1056 pru->mem_regions[i].size = resource_size(res); d4ce2de7e4af8b Suman Anna 2020-12-08 1057 d4ce2de7e4af8b Suman Anna 2020-12-08 1058 dev_dbg(dev, "memory %8s: pa %pa size 0x%zx va %pK\n", d4ce2de7e4af8b Suman Anna 2020-12-08 1059 mem_names[i], &pru->mem_regions[i].pa, d4ce2de7e4af8b Suman Anna 2020-12-08 1060 pru->mem_regions[i].size, pru->mem_regions[i].va); d4ce2de7e4af8b Suman Anna 2020-12-08 1061 } d4ce2de7e4af8b Suman Anna 2020-12-08 1062 d4ce2de7e4af8b Suman Anna 2020-12-08 1063 ret = pru_rproc_set_id(pru); d4ce2de7e4af8b Suman Anna 2020-12-08 1064 if (ret < 0) d4ce2de7e4af8b Suman Anna 2020-12-08 1065 return ret; d4ce2de7e4af8b Suman Anna 2020-12-08 1066 d4ce2de7e4af8b Suman Anna 2020-12-08 1067 platform_set_drvdata(pdev, rproc); d4ce2de7e4af8b Suman Anna 2020-12-08 1068 d4ce2de7e4af8b Suman Anna 2020-12-08 1069 ret = devm_rproc_add(dev, pru->rproc); d4ce2de7e4af8b Suman Anna 2020-12-08 1070 if (ret) { d4ce2de7e4af8b Suman Anna 2020-12-08 1071 dev_err(dev, "rproc_add failed: %d\n", ret); d4ce2de7e4af8b Suman Anna 2020-12-08 1072 return ret; d4ce2de7e4af8b Suman Anna 2020-12-08 1073 } d4ce2de7e4af8b Suman Anna 2020-12-08 1074 20ad1de0f14fbd Suman Anna 2020-12-08 1075 pru_rproc_create_debug_entries(rproc); 20ad1de0f14fbd Suman Anna 2020-12-08 1076 d4ce2de7e4af8b Suman Anna 2020-12-08 1077 dev_dbg(dev, "PRU rproc node %pOF probed successfully\n", np); d4ce2de7e4af8b Suman Anna 2020-12-08 1078 d4ce2de7e4af8b Suman Anna 2020-12-08 1079 return 0; d4ce2de7e4af8b Suman Anna 2020-12-08 1080 } d4ce2de7e4af8b Suman Anna 2020-12-08 1081 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki