linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	kbuild-all@01.org
Subject: [mmotm:master 222/422] include/linux/kernel.h:792:27: error: 'struct request' has no member named 'll_list'
Date: Fri, 10 Jan 2014 09:42:23 +0800	[thread overview]
Message-ID: <52cf4fff.JLNAamcD+Xy0OqLd%fengguang.wu@intel.com> (raw)

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   3fe55fa60ae65a3c8348ae1bfc6fd2e5c3f10654
commit: 40d1f543e14f53f9045b6a366f533dd878cf5212 [222/422] kernel: use lockless list for smp_call_function_single
config: make ARCH=x86_64 allnoconfig

Note: the mmotm/master HEAD 3fe55fa60ae65a3c8348ae1bfc6fd2e5c3f10654 builds fine.
      It only hurts bisectibility.

All error/warnings:

   In file included from block/blk-mq-cpu.c:1:0:
   block/blk-mq-cpu.c: In function 'blk_mq_cpu_notify':
>> include/linux/kernel.h:792:27: error: 'struct request' has no member named 'll_list'
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                              ^
   include/linux/llist.h:88:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^
   block/blk-mq-cpu.c:48:9: note: in expansion of macro 'llist_entry'
       rq = llist_entry(node, struct request, ll_list);
            ^
   include/linux/kernel.h:792:48: warning: initialization from incompatible pointer type [enabled by default]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   include/linux/llist.h:88:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^
   block/blk-mq-cpu.c:48:9: note: in expansion of macro 'llist_entry'
       rq = llist_entry(node, struct request, ll_list);
            ^
   In file included from include/linux/compiler-gcc.h:103:0,
                    from include/linux/compiler.h:54,
                    from include/linux/linkage.h:4,
                    from include/linux/kernel.h:6,
                    from block/blk-mq-cpu.c:1:
>> include/linux/compiler-gcc4.h:14:34: error: 'struct request' has no member named 'll_list'
    #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                     ^
   include/linux/stddef.h:17:31: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
                                  ^
   include/linux/kernel.h:793:29: note: in expansion of macro 'offsetof'
     (type *)( (char *)__mptr - offsetof(type,member) );})
                                ^
   include/linux/llist.h:88:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^
   block/blk-mq-cpu.c:48:9: note: in expansion of macro 'llist_entry'
       rq = llist_entry(node, struct request, ll_list);
            ^

vim +792 include/linux/kernel.h

^1da177e Linus Torvalds 2005-04-16  786   * @ptr:	the pointer to the member.
^1da177e Linus Torvalds 2005-04-16  787   * @type:	the type of the container struct this is embedded in.
^1da177e Linus Torvalds 2005-04-16  788   * @member:	the name of the member within the struct.
^1da177e Linus Torvalds 2005-04-16  789   *
^1da177e Linus Torvalds 2005-04-16  790   */
^1da177e Linus Torvalds 2005-04-16  791  #define container_of(ptr, type, member) ({			\
78db2ad6 Daniel Walker  2007-05-12 @792  	const typeof( ((type *)0)->member ) *__mptr = (ptr);	\
78db2ad6 Daniel Walker  2007-05-12  793  	(type *)( (char *)__mptr - offsetof(type,member) );})
^1da177e Linus Torvalds 2005-04-16  794  
b9d4f426 Arnaud Lacombe 2011-07-25  795  /* Trap pasters of __FUNCTION__ at compile-time */

:::::: The code at line 792 was first introduced by commit
:::::: 78db2ad6f4df9145bfd6aab1c0f1c56d615288ec include/linux: trivial repair whitespace damage

:::::: TO: Daniel Walker <dwalker@mvista.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 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:[~2014-01-10  1:42 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 \
    --in-reply-to=52cf4fff.JLNAamcD+Xy0OqLd%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=hch@infradead.org \
    --cc=kbuild-all@01.org \
    --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