public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: kbuild-all@01.org,
	Ext4 Developers List <linux-ext4@vger.kernel.org>,
	agayev@gmail.com, Theodore Ts'o <tytso@mit.edu>
Subject: Re: [PATCH] ext4: add ability to control the pseudo-random seed used by ext4
Date: Sat, 30 Jul 2016 03:33:27 +0800	[thread overview]
Message-ID: <201607300357.6E7medqa%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160729160035.26626-1-tytso@mit.edu>

[-- Attachment #1: Type: text/plain, Size: 2163 bytes --]

Hi,

[auto build test WARNING on ext4/dev]
[also build test WARNING on v4.7 next-20160729]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Theodore-Ts-o/ext4-add-ability-to-control-the-pseudo-random-seed-used-by-ext4/20160730-001338
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   fs/ext4/ialloc.c: In function 'find_group_orlov':
>> fs/ext4/ialloc.c:490:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'ext4_group_t' [-Wformat=]
       pr_err("ext4 random: %lu\n", grp);
       ^

vim +490 fs/ext4/ialloc.c

   474		do_div(avefreec, ngroups);
   475		ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter);
   476	
   477		if (S_ISDIR(mode) &&
   478		    ((parent == d_inode(sb->s_root)) ||
   479		     (ext4_test_inode_flag(parent, EXT4_INODE_TOPDIR)))) {
   480			int best_ndir = inodes_per_group;
   481			int ret = -1;
   482	
   483			if (qstr) {
   484				hinfo.hash_version = DX_HASH_HALF_MD4;
   485				hinfo.seed = sbi->s_hash_seed;
   486				ext4fs_dirhash(qstr->name, qstr->len, &hinfo);
   487				grp = hinfo.hash;
   488			} else {
   489				grp = prandom_u32_state(&sbi->s_rnd_state);
 > 490				pr_err("ext4 random: %lu\n", grp);
   491			}
   492			parent_group = (unsigned)grp % ngroups;
   493			for (i = 0; i < ngroups; i++) {
   494				g = (parent_group + i) % ngroups;
   495				get_orlov_stats(sb, g, flex_size, &stats);
   496				if (!stats.free_inodes)
   497					continue;
   498				if (stats.used_dirs >= best_ndir)

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37236 bytes --]

  parent reply	other threads:[~2016-07-29 19:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29 16:00 [PATCH] ext4: add ability to control the pseudo-random seed used by ext4 Theodore Ts'o
2016-07-29 18:07 ` kbuild test robot
2016-07-29 19:33 ` kbuild test robot [this message]
2016-07-29 19:39 ` kbuild test robot

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=201607300357.6E7medqa%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=agayev@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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