From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13959C433DF for ; Thu, 28 May 2020 17:16:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CB8F020721 for ; Thu, 28 May 2020 17:16:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20150623.gappssmtp.com header.i=@cmpxchg-org.20150623.gappssmtp.com header.b="etNjUDmY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB8F020721 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5FC978001A; Thu, 28 May 2020 13:16:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5AE2E80010; Thu, 28 May 2020 13:16:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 49BC38001A; Thu, 28 May 2020 13:16:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0140.hostedemail.com [216.40.44.140]) by kanga.kvack.org (Postfix) with ESMTP id 2EB8480010 for ; Thu, 28 May 2020 13:16:13 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id DB34B1A449F for ; Thu, 28 May 2020 17:16:12 +0000 (UTC) X-FDA: 76866780984.19.box50_1907c3a8ac618 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id AE93E1AD1B2 for ; Thu, 28 May 2020 17:16:12 +0000 (UTC) X-HE-Tag: box50_1907c3a8ac618 X-Filterd-Recvd-Size: 3982 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Thu, 28 May 2020 17:16:11 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id k22so671005qtm.6 for ; Thu, 28 May 2020 10:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=atthkvZPtmuffgqI3U1N92nhhfohScsuYraFPx1a33w=; b=etNjUDmYG/GoUh6tlvW65FzID7MhbLN6fmu5w4+qhKKoJPNlpoymnwadrQfmgoqUiQ lRYk6V4zjlAp1JoiKlZG7EnTqD9m/LUK2LUxhTjK6XSYT1Qm5Wm13M/uiw0pbGdyJz84 G4lqCSxJgN5+v+05NyelPzHo0kpcv6Ih5o4w6a6n68b318tTQF7/zNt8STf2OTad3Cx6 c+5+5OIB9NVG04+b0XA4N+rWS376QGJKQC45cnbq29In09VIZYjftadLqnIw8Jro0HHB Uzpsy0cJlADEg5EH40MR2pIpshdxFwaahEEMvaLa2M1R8R0GrhmwOUGvKvbY4ZaT5aVC /H2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=atthkvZPtmuffgqI3U1N92nhhfohScsuYraFPx1a33w=; b=pXjnz/FFAF+8WX1l5epk0GifuLYFOWGgTskmd1hc72qEzJrutRYaNfPufQnmDykVXn sP9I5/91kO0Ocx/lILYvBXZdE0E3s0C1lHIOuW402eRmikHYlDeQ1jvPlDuCCKDlNukW Zm/xIcUKYaFx1B0vr6mizJfcQBMnXWUOVpTD9vDOkP+QIYMY264KQZ60My91BXJxL88r p7FXgF75irGLRiJ9ZBdE/vJK9Bs4lBJgO/f3kbN6k4uHPw0iJNHukU6vUJk7kgOPxHYj KAJIhR3rGiSZHgF8dydp/6lqJNkOTi+a/dZMaoFJCSF9CjyjprlcF08oSicQuAuG/Gy7 XmJQ== X-Gm-Message-State: AOAM532roIfXf00nvB6JRxZu3ezn+4NUcbinltdusbImiie0ezMDQIMa ZhX3Uc/zjWyzYJ2q4I0R+bBIKA== X-Google-Smtp-Source: ABdhPJwCS97f+Iq6+tL1/KnrLqj2AxEmCpMkEGzROblPiVDpZcR44Tj9rcHcOqb5SgmD+uPHIgwdJg== X-Received: by 2002:ac8:7112:: with SMTP id z18mr4329049qto.274.1590686171203; Thu, 28 May 2020 10:16:11 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2535]) by smtp.gmail.com with ESMTPSA id 10sm5614427qkv.136.2020.05.28.10.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 10:16:10 -0700 (PDT) Date: Thu, 28 May 2020 13:15:43 -0400 From: Johannes Weiner To: Arnd Bergmann Cc: Michal Hocko , Vladimir Davydov , Andrew Morton , Stephen Rothwell , Joonsoo Kim , Alex Shi , Hugh Dickins , "Kirill A. Shutemov" , Michal Hocko , Roman Gushchin , Shakeel Butt , Balbir Singh , Chris Down , Yafang Shao , Tejun Heo , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memcontrol: fix an unused-function warning Message-ID: <20200528171543.GB69521@cmpxchg.org> References: <20200528095640.151454-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528095640.151454-1-arnd@arndb.de> X-Rspamd-Queue-Id: AE93E1AD1B2 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, May 28, 2020 at 11:56:26AM +0200, Arnd Bergmann wrote: > On NOMMU kernels without CONFIG_MEMCG_KMEM, we now get a harmless > warning about an unused function: > > mm/memcontrol.c:2595:13: error: unused function 'cancel_charge' [-Werror,-Wunused-function] > > Hide this function in a matching #ifdef. > > Fixes: 5bd144bf764c ("mm: memcontrol: drop unused try/commit/cancel charge API") > Signed-off-by: Arnd Bergmann Acked-by: Johannes Weiner Thanks Arnd!