mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: kbuild-all@01.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [PATCH] mm: Define KB, MB, GB, TB in core VM
Date: Tue, 23 May 2017 15:24:12 +0800	[thread overview]
Message-ID: <201705231532.2NYAQLAi%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170522111742.29433-1-khandual@linux.vnet.ibm.com>

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

Hi Anshuman,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.12-rc2 next-20170523]
[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/Anshuman-Khandual/mm-Define-KB-MB-GB-TB-in-core-VM/20170523-141359
config: x86_64-nfsroot+CONFIG_DEBUG_INFO_REDUCED (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/char/agp/backend.c:41:0:
>> drivers/char/agp/agp.h:158:0: warning: "KB" redefined
    #define KB(x) ((x) * 1024)
    
   In file included from include/linux/scatterlist.h:7:0,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1281,
                    from drivers/char/agp/backend.c:31:
   include/linux/mm.h:2552:0: note: this is the location of the previous definition
    #define KB (1UL << 10)
    
   In file included from drivers/char/agp/backend.c:41:0:
>> drivers/char/agp/agp.h:159:0: warning: "MB" redefined
    #define MB(x) (KB (KB (x)))
    
   In file included from include/linux/scatterlist.h:7:0,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1281,
                    from drivers/char/agp/backend.c:31:
   include/linux/mm.h:2553:0: note: this is the location of the previous definition
    #define MB (1UL << 20)
    
   In file included from drivers/char/agp/backend.c:41:0:
>> drivers/char/agp/agp.h:160:0: warning: "GB" redefined
    #define GB(x) (MB (KB (x)))
    
   In file included from include/linux/scatterlist.h:7:0,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1281,
                    from drivers/char/agp/backend.c:31:
   include/linux/mm.h:2554:0: note: this is the location of the previous definition
    #define GB (1UL << 30)
    
--
>> drivers/gpu/drm/i915/i915_gem_stolen.c:33:0: warning: "KB" redefined
    #define KB(x) ((x) * 1024)
    
   In file included from include/linux/scatterlist.h:7:0,
                    from include/linux/dma-mapping.h:10,
                    from include/drm/drmP.h:37,
                    from drivers/gpu/drm/i915/i915_gem_stolen.c:29:
   include/linux/mm.h:2552:0: note: this is the location of the previous definition
    #define KB (1UL << 10)
    
>> drivers/gpu/drm/i915/i915_gem_stolen.c:34:0: warning: "MB" redefined
    #define MB(x) (KB(x) * 1024)
    
   In file included from include/linux/scatterlist.h:7:0,
                    from include/linux/dma-mapping.h:10,
                    from include/drm/drmP.h:37,
                    from drivers/gpu/drm/i915/i915_gem_stolen.c:29:
   include/linux/mm.h:2553:0: note: this is the location of the previous definition
    #define MB (1UL << 20)
    

vim +/KB +158 drivers/char/agp/agp.h

b0825488 Matthew Garrett 2005-07-29  152  	u32 apbase_config;
a8c84df9 Keith Packard   2008-07-31  153  	/* list of agp_memory mapped to the aperture */
a8c84df9 Keith Packard   2008-07-31  154  	struct list_head mapped_list;
a8c84df9 Keith Packard   2008-07-31  155  	spinlock_t mapped_lock;
^1da177e Linus Torvalds  2005-04-16  156  };
^1da177e Linus Torvalds  2005-04-16  157  
^1da177e Linus Torvalds  2005-04-16 @158  #define KB(x)	((x) * 1024)
^1da177e Linus Torvalds  2005-04-16 @159  #define MB(x)	(KB (KB (x)))
^1da177e Linus Torvalds  2005-04-16 @160  #define GB(x)	(MB (KB (x)))
^1da177e Linus Torvalds  2005-04-16  161  
^1da177e Linus Torvalds  2005-04-16  162  #define A_SIZE_8(x)	((struct aper_size_info_8 *) x)
^1da177e Linus Torvalds  2005-04-16  163  #define A_SIZE_16(x)	((struct aper_size_info_16 *) x)

:::::: The code at line 158 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
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: 28961 bytes --]

      parent reply	other threads:[~2017-05-23  7:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-22 11:17 Anshuman Khandual
2017-05-22 21:11 ` Andrew Morton
2017-05-23  7:02   ` Christoph Hellwig
2017-05-23  8:38     ` Vlastimil Babka
2017-05-23  8:40       ` Christoph Hellwig
2017-05-23 11:19       ` Anshuman Khandual
2017-05-24  6:40         ` Anshuman Khandual
2017-05-24 14:31           ` Michal Hocko
2017-05-29 10:55           ` Michael Ellerman
2017-06-09  2:54             ` Anshuman Khandual
2017-05-29 11:07           ` Geert Uytterhoeven
2017-05-23 11:13   ` Anshuman Khandual
2017-05-23  6:41 ` kbuild test robot
2017-05-23  7:24 ` kbuild test robot [this message]

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=201705231532.2NYAQLAi%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=khandual@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®