netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2e685cad5790 build warning
@ 2013-12-04 22:29 Johannes Weiner
  2013-12-04 22:47 ` Johannes Weiner
  2013-12-04 22:50 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Weiner @ 2013-12-04 22:29 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: Glauber Costa, netdev, linux-mm, linux-kernel

Hi Eric,

commit 2e685cad57906e19add7189b5ff49dfb6aaa21d3
Author: Eric W. Biederman <ebiederm@xmission.com>
Date:   Sat Oct 19 16:26:19 2013 -0700

    tcp_memcontrol: Kill struct tcp_memcontrol
    
    Replace the pointers in struct cg_proto with actual data fields and kill
    struct tcp_memcontrol as it is not fully redundant.
    
    This removes a confusing, unnecessary layer of abstraction.
    
    Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

triggers a build warning because it removed the only reference to a
function but not the function itself:

linux/net/ipv4/tcp_memcontrol.c:9:13: warning: ‘memcg_tcp_enter_memory_pressure’ defined but not used [-Wunused-function]
 static void memcg_tcp_enter_memory_pressure(struct sock *sk)

I can not see from the changelog why this function is no longer used,
or who is supposed to now set cg_proto->memory_pressure which you
still initialize etc.  Either way, the current state does not seem to
make much sense.  The author would be the best person to double check
such changes, but he wasn't copied on your patch, so I copied him now.

Apologies if this has been brought up before, I could not find any
reference on LKML of either this patch or a report of this warning.

Thanks!

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

end of thread, other threads:[~2013-12-06  2:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04 22:29 2e685cad5790 build warning Johannes Weiner
2013-12-04 22:47 ` Johannes Weiner
2013-12-04 22:50 ` David Miller
2013-12-05  4:12   ` [PATCH] tcp_memcontrol: Cleanup/fix cg_proto->memory_pressure handling Eric W. Biederman
2013-12-06  2:01     ` David Miller

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).