Hi "Alice,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on renesas-drivers/renesas-clk]
[also build test WARNING on vkoul-dmaengine/next linuxtv-media/master
renesas-drivers/renesas-pinctrl renesas-devel/next linus/master v5.12-rc8 next-20210416]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Alice-Guo-OSS/support-soc_device...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
renesas-clk
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/5dc133669083c08a14f24be6e24b5aa18...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Alice-Guo-OSS/support-soc_device_match-to-return-EPROBE_DEFER/20210419-123109
git checkout 5dc133669083c08a14f24be6e24b5aa1840836c7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/dma/ti/k3-psil.c: In function 'psil_get_ep_config':
> drivers/dma/ti/k3-psil.c:37:11: warning: returning 'long
int' from a function with return type 'struct psil_endpoint_config *' makes
pointer from integer without a cast [-Wint-conversion]
37 | return
PTR_ERR(soc);
| ^~~~~~~~~~~~
vim +37 drivers/dma/ti/k3-psil.c
26
27 struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
28 {
29 int i;
30
31 mutex_lock(&ep_map_mutex);
32 if (!soc_ep_map) {
33 const struct soc_device_attribute *soc;
34
35 soc = soc_device_match(k3_soc_devices);
36 if (IS_ERR(soc))
37 return PTR_ERR(soc);
38
39 if (soc) {
40 soc_ep_map = soc->data;
41 } else {
42 pr_err("PSIL: No compatible machine found for map\n");
43 mutex_unlock(&ep_map_mutex);
44 return ERR_PTR(-ENOTSUPP);
45 }
46 pr_debug("%s: Using map for %s\n", __func__, soc_ep_map->name);
47 }
48 mutex_unlock(&ep_map_mutex);
49
50 if (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) {
51 /* check in destination thread map */
52 for (i = 0; i < soc_ep_map->dst_count; i++) {
53 if (soc_ep_map->dst[i].thread_id == thread_id)
54 return &soc_ep_map->dst[i].ep_config;
55 }
56 }
57
58 thread_id &= ~K3_PSIL_DST_THREAD_ID_OFFSET;
59 if (soc_ep_map->src) {
60 for (i = 0; i < soc_ep_map->src_count; i++) {
61 if (soc_ep_map->src[i].thread_id == thread_id)
62 return &soc_ep_map->src[i].ep_config;
63 }
64 }
65
66 return ERR_PTR(-ENOENT);
67 }
68 EXPORT_SYMBOL_GPL(psil_get_ep_config);
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org