Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2278034pxj; Sun, 30 May 2021 20:37:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0mKVy25ZLHKEVm6mVi07/YjDE9KWDYBYVCAJG4c19UdkFVO0CpVqt2XIQTSw2tf8HXb6H X-Received: by 2002:a5e:c310:: with SMTP id a16mr15946107iok.21.1622432229605; Sun, 30 May 2021 20:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622432229; cv=none; d=google.com; s=arc-20160816; b=swkaebmclu3TGwh5pzj2R3dBnnCz0GRz6YWDuoTybBlIoy7uQJVHDeTnK51rfdGoqn f31IMt0+eHqyrhrF8qExXMQuUk7CJIfr8IFtUeaBDFnGELB47kHvLoKYdrWDWM2DKJz/ +1xSHB3eQfYDQuJpQr7W6un7xHBKkJ1/O0DlhSwzfdlem+IoIiNOyI4Y/Rudui5T3jZ1 Fo1TpBFXUJxgh/c48MtcVXWfi8LqFQbSL5fCqkapCoguh+z2ibWzWIbvZO8z2pis/tZL HobqAm71BkH3aRMWc0qeNH6NQf0JnYFKQb2zg1MR/LSwPfqwZMclV8s7EhwN3iQ/Cfxp SR5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=mWebAcZ3N1O76VnqFycDgDL+JFsNcPTzNE2lyqFUCuk=; b=fbYLvrMv0eOu3HSCNG1zoYz1Fh7/MDvPn2d+V8KwqDoByeGHuipp/kN+5UwPbC4I9a TY7tQgOwq/7Q//h3uxkAOpPaEfm8tp6qjCQU5fsbuvfufumSqOfYG3IH1iVypWcc7+FQ rflFxI8s5lvmDM5E2E17SROwaydnLUGeBHCg2VCo8VLlyKBBeZ9BemSkxO40eOXuYRTo 4ff6+OCevzPkkiltYQ7o4z+yVh42KLOilZvRu+FKo0qtE7uLq3Mbyzm1vs+4jK3ExMpC e8NEJ77a69cdrHDWE/ElJ+6FQQGOUi9Wlv3P858AiPP94WNNkKFyAEIP9TIOLKiKpuaz CAPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si13015657iow.25.2021.05.30.20.36.47; Sun, 30 May 2021 20:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbhEaDgC (ORCPT + 99 others); Sun, 30 May 2021 23:36:02 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2796 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbhEaDgB (ORCPT ); Sun, 30 May 2021 23:36:01 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ftgl9125KzWq6W; Mon, 31 May 2021 11:29:41 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 11:34:21 +0800 Received: from [10.174.177.91] (10.174.177.91) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 11:34:20 +0800 Subject: Re: [PATCH -next] mm/mmap_lock: fix warning when CONFIG_TRACING is not defined To: Matthew Wilcox CC: , , References: <20210531015527.49785-1-cuibixuan@huawei.com> From: Bixuan Cui Message-ID: Date: Mon, 31 May 2021 11:34:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.91] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/5/31 10:02, Matthew Wilcox wrote: >> Fix the warning: [-Wunused-function] >> mm/mmap_lock.c:157:20: warning: ‘get_mm_memcg_path’ defined but not used >> static const char *get_mm_memcg_path(struct mm_struct *mm) >> ^~~~~~~~~~~~~~~~~ > That seems like the wrong way to fix the warning. Why not put it > under an appropriate ifdef? It's better than me, I will send a new patch. Thanks Bixuan Cui >