linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 153/210] lib/list_sort.c:17:36: warning: '__pure__' attribute ignored
@ 2019-03-29  0:48 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-03-29  0:48 UTC (permalink / raw)
  To: George Spelvin
  Cc: kbuild-all, Johannes Weiner, Andy Shevchenko, Andrew Morton,
	Linux Memory Management List

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   ecb428ddd7449905d371074f509d08475eef43f0
commit: 14ce92c1cbed4da6460b285f83e2348cf2416e45 [153/210] lib/list_sort: simplify and remove MAX_LIST_LENGTH_BITS
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 14ce92c1cbed4da6460b285f83e2348cf2416e45
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

>> lib/list_sort.c:17:36: warning: '__pure__' attribute ignored [-Wattributes]
      struct list_head const *, struct list_head const *);
                                       ^~~~~~~~~

vim +/__pure__ +17 lib/list_sort.c

     9	
    10	/*
    11	 * By declaring the compare function with the __pure attribute, we give
    12	 * the compiler more opportunity to optimize.  Ideally, we'd use this in
    13	 * the prototype of list_sort(), but that would involve a lot of churn
    14	 * at all call sites, so just cast the function pointer passed in.
    15	 */
    16	typedef int __pure __attribute__((nonnull(2,3))) (*cmp_func)(void *,
  > 17			struct list_head const *, struct list_head const *);
    18	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6675 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-29  0:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29  0:48 [mmotm:master 153/210] lib/list_sort.c:17:36: warning: '__pure__' attribute ignored kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox