Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753889AbbLROfu (ORCPT ); Fri, 18 Dec 2015 09:35:50 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53856 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753819AbbLROfq (ORCPT ); Fri, 18 Dec 2015 09:35:46 -0500 From: Arnd Bergmann To: Johannes Weiner , Andrew Morton Cc: Michal Hocko , Vladimir Davydov , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: [PATCH] memcg: fix SLOB build regression Date: Fri, 18 Dec 2015 15:35:06 +0100 Message-ID: <13705081.IYJlPWfILN@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Z7IUP+57QQq+aNYrpQVFCHwoudP1HB53yUsDob29MOnku8p4jN7 R3S12PzDPv1gOnVhdFQ9DYW1c1wv3E5VvhbCPRZVT6mQ891Bo/ObIubU6DHuaTyygkN9Pv5 0ba5ISAN6LIckdrJmh8L4bf5vCJA0z9rmYNJg758wwfI2xTyNnpH41c5iOySa18RF/fRijH LeH3mtaTDkB/oyIK/FYOg== X-UI-Out-Filterresults: notjunk:1;V01:K0:er8XXz1NS6U=:5LqVWluFrBf7lHrmkM3Em1 vu9MBQEDx0STGUf9M0/G5VwWLarY/I4yxTH/H3Uhl+hh+As7fWi9Ebb1HsYH6E3gLpkpcTMNL 6KNbuR8r1Oq3wBLbnQT9oOy2rBhk/KcWvZ7zKarJkDDN++FmUVytWino/FmMDf+H/rXEHNT/I MKA+0dPjFi5qyKHXmkXj5aRZgM1S+2pZ3MpewGPF1cFRN+nBuboL6rqw2yMTdnVf/7w91jnOk 8HRLCQFOV5PF2BU9mJQuyXRFEBNTlH2cIjd7/newGALPbNMsDaJ3O3OGGo1zm8qnknKSCHhtG IvGNxmZtLEd1kkSSR8hS23kOqINaAU7hsZ8P98Fb3OAnPrizfTPJNPpMBT0gHbHx41SooFViE 8r4ovI4ObEllYI+DofjHrZbqHvSXTPztErX8XuyBs38PfPacPurZ2pjQvaJpnCn/mydLJKB7U RzpPdIX0aVG7Up7oSkFnr9f4b92eXSvKooCpTIkCjOCqRfTpc4Ko4qJvV0V7z7yZ2m/7ODJQ8 thNcVyyTLfCjgnys+t1U2bXwZjr3nc49CKKncnSO6/VYqMtrjzOiJGQkC2DM1de0tq2DuXOLP H0oKXCUCWYLhhyILG6SyvdUkWtneL04DcVEsI2ZxsECFWuSYQueq3tdsVdj2nQVQ5JsDIaxy+ +3smpWOwkE2jds6Ss9m1ZnGKyNQR9jJ4CeIqm60h9u5P414Z/14JFusAOldbMg8RojTcU0jfE cl1X6xVqaxFGciO0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1532 Lines: 41 A recent cleanup broke the build when CONFIG_SLOB is used: mm/memcontrol.c: In function 'memcg_update_kmem_limit': mm/memcontrol.c:2974:9: error: implicit declaration of function 'memcg_online_kmem' [-Werror=implicit-function-declaration] mm/memcontrol.c: In function 'mem_cgroup_css_alloc': mm/memcontrol.c:4229:10: error: too many arguments to function 'memcg_propagate_kmem' mm/memcontrol.c:2949:12: note: declared here This fixes the memcg_propagate_kmem prototype to match the normal implementation and adds the respective memcg_online_kmem helper function that was needed. Signed-off-by: Arnd Bergmann Fixes: a5ed904c5039 ("mm: memcontrol: clean up alloc, online, offline, free functions") --- This just showed up on ARM randconfig builds with linux-next, please apply or fold into the original patch diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 48b22c3545b1..4637199e69d6 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2946,7 +2946,11 @@ static void memcg_free_kmem(struct mem_cgroup *memcg) } } #else -static int memcg_propagate_kmem(struct mem_cgroup *memcg) +static int memcg_propagate_kmem(struct mem_cgroup *parent, struct mem_cgroup *memcg) +{ + return 0; +} +static int memcg_online_kmem(struct mem_cgroup *memcg) { return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/