All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Liang He <windhl@126.com>,
	palmer@dabbelt.com, paul.walmsley@sifive.com,
	aou@eecs.berkeley.edu
Cc: kbuild-all@lists.01.org, linux-riscv@lists.infradead.org,
	linux-kernel@vger.kernel.org, windhl@126.com
Subject: Re: [PATCH] drivers: soc: sifive: Add missing of_node_put() in sifive_l2_cache.c
Date: Thu, 16 Jun 2022 05:58:05 +0800	[thread overview]
Message-ID: <202206160559.fVKJx0ST-lkp@intel.com> (raw)
In-Reply-To: <20220615122315.3965435-1-windhl@126.com>

Hi Liang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.19-rc2 next-20220615]
[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/intel-lab-lkp/linux/commits/Liang-He/drivers-soc-sifive-Add-missing-of_node_put-in-sifive_l2_cache-c/20220615-202528
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 018ab4fabddd94f1c96f3b59e180691b9e88d5d8
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220616/202206160559.fVKJx0ST-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 11.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/intel-lab-lkp/linux/commit/49c4086768b5aff410a4a19ca740f8ae8e211844
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Liang-He/drivers-soc-sifive-Add-missing-of_node_put-in-sifive_l2_cache-c/20220615-202528
        git checkout 49c4086768b5aff410a4a19ca740f8ae8e211844
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/soc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/soc/sifive/sifive_l2_cache.c: In function 'sifive_l2_init':
>> drivers/soc/sifive/sifive_l2_cache.c:224:17: error: expected ';' before 'goto'
     224 |                 goto out_put;
         |                 ^~~~


vim +224 drivers/soc/sifive/sifive_l2_cache.c

   194	
   195	static int __init sifive_l2_init(void)
   196	{
   197		struct device_node *np;
   198		struct resource res;
   199		int i, rc, intr_num;
   200	
   201		int ret;
   202	
   203		np = of_find_matching_node(NULL, sifive_l2_ids);
   204		if (!np)
   205			return -ENODEV;
   206	
   207		if (of_address_to_resource(np, 0, &res))
   208		{
   209			ret = -ENODEV;
   210			goto out_put;
   211		}
   212	
   213		l2_base = ioremap(res.start, resource_size(&res));
   214		if (!l2_base)
   215		{
   216			ret = -ENOMEM;
   217			goto out_put;
   218		}
   219	
   220		intr_num = of_property_count_u32_elems(np, "interrupts");
   221		if (!intr_num) {		
   222			pr_err("L2CACHE: no interrupts property\n");
   223			ret = -ENODEV
 > 224			goto out_put;
   225		}
   226	
   227		for (i = 0; i < intr_num; i++) {
   228			g_irq[i] = irq_of_parse_and_map(np, i);
   229			rc = request_irq(g_irq[i], l2_int_handler, 0, "l2_ecc", NULL);
   230			
   231			if (rc) {
   232				
   233				pr_err("L2CACHE: Could not request IRQ %d\n", g_irq[i]);
   234				ret = rc;
   235				goto out_put;
   236			}
   237		}
   238	
   239		l2_config_read();
   240	
   241		l2_cache_ops.get_priv_group = l2_get_priv_group;
   242		riscv_set_cacheinfo_ops(&l2_cache_ops);
   243	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Liang He <windhl@126.com>,
	palmer@dabbelt.com, paul.walmsley@sifive.com,
	aou@eecs.berkeley.edu
Cc: kbuild-all@lists.01.org, linux-riscv@lists.infradead.org,
	linux-kernel@vger.kernel.org, windhl@126.com
Subject: Re: [PATCH] drivers: soc: sifive: Add missing of_node_put() in sifive_l2_cache.c
Date: Thu, 16 Jun 2022 05:58:05 +0800	[thread overview]
Message-ID: <202206160559.fVKJx0ST-lkp@intel.com> (raw)
In-Reply-To: <20220615122315.3965435-1-windhl@126.com>

Hi Liang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.19-rc2 next-20220615]
[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/intel-lab-lkp/linux/commits/Liang-He/drivers-soc-sifive-Add-missing-of_node_put-in-sifive_l2_cache-c/20220615-202528
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 018ab4fabddd94f1c96f3b59e180691b9e88d5d8
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220616/202206160559.fVKJx0ST-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 11.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/intel-lab-lkp/linux/commit/49c4086768b5aff410a4a19ca740f8ae8e211844
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Liang-He/drivers-soc-sifive-Add-missing-of_node_put-in-sifive_l2_cache-c/20220615-202528
        git checkout 49c4086768b5aff410a4a19ca740f8ae8e211844
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/soc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/soc/sifive/sifive_l2_cache.c: In function 'sifive_l2_init':
>> drivers/soc/sifive/sifive_l2_cache.c:224:17: error: expected ';' before 'goto'
     224 |                 goto out_put;
         |                 ^~~~


vim +224 drivers/soc/sifive/sifive_l2_cache.c

   194	
   195	static int __init sifive_l2_init(void)
   196	{
   197		struct device_node *np;
   198		struct resource res;
   199		int i, rc, intr_num;
   200	
   201		int ret;
   202	
   203		np = of_find_matching_node(NULL, sifive_l2_ids);
   204		if (!np)
   205			return -ENODEV;
   206	
   207		if (of_address_to_resource(np, 0, &res))
   208		{
   209			ret = -ENODEV;
   210			goto out_put;
   211		}
   212	
   213		l2_base = ioremap(res.start, resource_size(&res));
   214		if (!l2_base)
   215		{
   216			ret = -ENOMEM;
   217			goto out_put;
   218		}
   219	
   220		intr_num = of_property_count_u32_elems(np, "interrupts");
   221		if (!intr_num) {		
   222			pr_err("L2CACHE: no interrupts property\n");
   223			ret = -ENODEV
 > 224			goto out_put;
   225		}
   226	
   227		for (i = 0; i < intr_num; i++) {
   228			g_irq[i] = irq_of_parse_and_map(np, i);
   229			rc = request_irq(g_irq[i], l2_int_handler, 0, "l2_ecc", NULL);
   230			
   231			if (rc) {
   232				
   233				pr_err("L2CACHE: Could not request IRQ %d\n", g_irq[i]);
   234				ret = rc;
   235				goto out_put;
   236			}
   237		}
   238	
   239		l2_config_read();
   240	
   241		l2_cache_ops.get_priv_group = l2_get_priv_group;
   242		riscv_set_cacheinfo_ops(&l2_cache_ops);
   243	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2022-06-15 21:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 12:23 [PATCH] drivers: soc: sifive: Add missing of_node_put() in sifive_l2_cache.c Liang He
2022-06-15 12:23 ` Liang He
2022-06-15 21:58 ` kernel test robot [this message]
2022-06-15 21:58   ` kernel test robot
2022-06-16  4:54   ` Liang He
2022-06-16  4:54     ` Liang He
2022-06-16  4:54     ` Liang He
2022-06-16  5:12 ` Christophe JAILLET
2022-06-16  5:12   ` Christophe JAILLET
2022-06-16  5:33   ` Liang He
2022-06-16  5:33     ` Liang He
2022-06-16 18:45     ` Christophe JAILLET
2022-06-16 18:45       ` Christophe JAILLET

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=202206160559.fVKJx0ST-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=windhl@126.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.