linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Christoph Lameter <cl@linux.com>
Cc: linux-mm@kvack.org, Glauber Costa <glommer@parallels.com>
Subject: [glommer-memcg:slab-common/kmalloc 3/16] mm/slab_common.c:210:6: warning: format '%td' expects argument of type 'ptrdiff_t', but argument 3 has type 'size_t'
Date: Wed, 31 Oct 2012 17:25:04 +0800	[thread overview]
Message-ID: <5090ee70.0VqxCVMJOPKPP7+v%fengguang.wu@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/glommer/memcg.git slab-common/kmalloc
head:   b59d450914258587897b8b602068a840e26df19b
commit: b665ac5d4350e39e5ab017a3c9023323a35ba908 [3/16] CK2 [02/15] create common functions for boot slab creation
config: make ARCH=s390 allnoconfig

All warnings:

mm/slab_common.c: In function 'create_boot_cache':
mm/slab_common.c:210:6: warning: format '%td' expects argument of type 'ptrdiff_t', but argument 3 has type 'size_t' [-Wformat]

vim +210 mm/slab_common.c

97d06609 Christoph Lameter 2012-07-06  194  }
b665ac5d Christoph Lameter 2012-10-19  195  
b665ac5d Christoph Lameter 2012-10-19  196  #ifndef CONFIG_SLOB
b665ac5d Christoph Lameter 2012-10-19  197  /* Create a cache during boot when no slab services are available yet */
b665ac5d Christoph Lameter 2012-10-19  198  void __init create_boot_cache(struct kmem_cache *s, const char *name, size_t size,
b665ac5d Christoph Lameter 2012-10-19  199  		unsigned long flags)
b665ac5d Christoph Lameter 2012-10-19  200  {
b665ac5d Christoph Lameter 2012-10-19  201  	int err;
b665ac5d Christoph Lameter 2012-10-19  202  
b665ac5d Christoph Lameter 2012-10-19  203  	s->name = name;
b665ac5d Christoph Lameter 2012-10-19  204  	s->size = s->object_size = size;
b665ac5d Christoph Lameter 2012-10-19  205  	s->align = ARCH_KMALLOC_MINALIGN;
b665ac5d Christoph Lameter 2012-10-19  206  	err = __kmem_cache_create(s, flags);
b665ac5d Christoph Lameter 2012-10-19  207  
b665ac5d Christoph Lameter 2012-10-19  208  	if (err)
b665ac5d Christoph Lameter 2012-10-19  209  		panic("Creation of kmalloc slab %s size=%td failed. Reason %d\n",
b665ac5d Christoph Lameter 2012-10-19 @210  					name, size, err);
b665ac5d Christoph Lameter 2012-10-19  211  
b665ac5d Christoph Lameter 2012-10-19  212  	list_add(&s->list, &slab_caches);
b665ac5d Christoph Lameter 2012-10-19  213  	s->refcount = -1;	/* Exempt from merging for now */
b665ac5d Christoph Lameter 2012-10-19  214  }
b665ac5d Christoph Lameter 2012-10-19  215  
b665ac5d Christoph Lameter 2012-10-19  216  struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size,
b665ac5d Christoph Lameter 2012-10-19  217  				unsigned long flags)
b665ac5d Christoph Lameter 2012-10-19  218  {

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2012-10-31  9:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-31  9:25 kbuild test robot [this message]
2012-11-01 20:34 ` Christoph Lameter

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=5090ee70.0VqxCVMJOPKPP7+v%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=cl@linux.com \
    --cc=glommer@parallels.com \
    --cc=linux-mm@kvack.org \
    /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