GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: [email protected],
	Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Subject: [ammarfaizi2-block:af/dev.btrfs 10/11] fs/btrfs/super.c:352:26: error: assignment to expression with array type
Date: Sat, 25 Feb 2023 16:48:36 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block af/dev.btrfs
head:   91361976f98a5766c0c00110ad28f6dd3b3a7de3
commit: 3afc14e1a169a4643f51ebdcf743a8efdb7f78b2 [10/11] btrfs: Add wq_cpu_set mount option
config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20230225/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/3afc14e1a169a4643f51ebdcf743a8efdb7f78b2
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block af/dev.btrfs
        git checkout 3afc14e1a169a4643f51ebdcf743a8efdb7f78b2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   fs/btrfs/super.c: In function 'parse_wq_cpu_set':
>> fs/btrfs/super.c:352:26: error: assignment to expression with array type
     352 |         info->wq_cpu_set = mask;
         |                          ^


vim +352 fs/btrfs/super.c

   323	
   324	static int parse_wq_cpu_set(struct btrfs_fs_info *info, const char *set)
   325	{
   326		cpumask_var_t mask;
   327		char *set_copy;
   328		int ret;
   329	
   330		set_copy = kstrdup(set, GFP_KERNEL);
   331		if (!set_copy)
   332			return -ENOMEM;
   333	
   334		if (!alloc_cpumask_var(&mask, GFP_KERNEL)) {
   335			ret = -ENOMEM;
   336			goto out_fail;
   337		}
   338	
   339		wq_cpu_set_fix_cpulist(set_copy);
   340		ret = cpulist_parse(set_copy, mask);
   341		if (ret) {
   342			btrfs_err(info, "failed to parse wq_cpu_set: %d", ret);
   343			goto out_fail_cpu;
   344		}
   345	
   346		if (cpumask_empty(mask)) {
   347			ret = -EINVAL;
   348			btrfs_err(info, "wq_cpu_set cannot be empty");
   349			goto out_fail_cpu;
   350		}
   351	
 > 352		info->wq_cpu_set = mask;
   353		info->wq_cpu_set_str = set_copy;
   354		btrfs_set_and_info(info, WQ_CPU_SET, "using wq_cpu_set=%s", set_copy);
   355		return 0;
   356	
   357	out_fail_cpu:
   358		free_cpumask_var(mask);
   359	out_fail:
   360		kfree(set_copy);
   361		return ret;
   362	}
   363	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-02-25  8:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox