kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_i
@ 2012-09-13 17:01 Fengguang Wu
  2012-09-14  0:58 ` [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_d Shaohua Li
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-09-13 17:01 UTC (permalink / raw)
  To: kernel-janitors

Hi Shaohua,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git since-3.5
head:   d64f22e5761b1e367ba5d1e04d2fe5e0283aecbc
commit: cfb0997213ba955c7239735affdfd20fefc2dbba [123/137] swap: add a simple detector for inappropriate swapin readahead
config: m32r-mappi3.smp_defconfig

All related error/warning messages:

In file included from mm/filemap.c:36:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/page_alloc.c:64:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/swap.c:34:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/truncate.c:23:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/vmscan.c:51:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/util.c:10:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/mm_init.c:12:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/compaction.c:17:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/fremap.c:24:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/memory.c:68:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
In file included from mm/mlock.c:22:0:
mm/internal.h: In function 'swap_cache_hit':
mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
..

vim +380 mm/internal.h
   375	#define SWAPRA_MISS_THRESHOLD  (100)
   376	#define SWAPRA_MAX_MISS ((SWAPRA_MISS_THRESHOLD) * 10)
   377	static inline void swap_cache_hit(struct vm_area_struct *vma)
   378	{
   379		if (vma && vma->anon_vma)
 > 380			atomic_dec_if_positive(&vma->anon_vma->swapra_miss);
   381	}
   382	
   383	static inline void swap_cache_miss(struct vm_area_struct *vma)
   384	{
   385		if (!vma || !vma->anon_vma)

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_d
  2012-09-13 17:01 [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_i Fengguang Wu
@ 2012-09-14  0:58 ` Shaohua Li
  0 siblings, 0 replies; 2+ messages in thread
From: Shaohua Li @ 2012-09-14  0:58 UTC (permalink / raw)
  To: kernel-janitors

On Fri, Sep 14, 2012 at 01:01:26AM +0800, Fengguang Wu wrote:
> Hi Shaohua,
> 
> FYI, kernel build failed on
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git since-3.5
> head:   d64f22e5761b1e367ba5d1e04d2fe5e0283aecbc
> commit: cfb0997213ba955c7239735affdfd20fefc2dbba [123/137] swap: add a simple detector for inappropriate swapin readahead
> config: m32r-mappi3.smp_defconfig
> 
> All related error/warning messages:
> 
> In file included from mm/filemap.c:36:0:
> mm/internal.h: In function 'swap_cache_hit':
> mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_if_positive' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors

A fix is in akpm's tree now. Thanks for the reporting.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-14  0:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 17:01 [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_dec_i Fengguang Wu
2012-09-14  0:58 ` [memcg:since-3.5 123/137] mm/internal.h:380:3: error: implicit declaration of function 'atomic_d Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).