[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201705231532.2NYAQLAi%fengguang.wu@intel.com>
Date: Tue, 23 May 2017 15:24:12 +0800
From: kbuild test robot <lkp@...el.com>
To: Anshuman Khandual <khandual@...ux.vnet.ibm.com>
Cc: kbuild-all@...org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org
Subject: Re: [PATCH] mm: Define KB, MB, GB, TB in core VM
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@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (28961 bytes)
Powered by blists - more mailing lists