Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1035665lqd; Thu, 25 Apr 2024 04:23:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWC9BKgfmn9jonS795gdKL6FJ7NKdhW888nJ0kgD9I9J+GdvneVkkCiyOS0F3U1pc2jHN3j4tEjB+wXxchZOwDw6v8WPfQ8+wDAHQkHjA== X-Google-Smtp-Source: AGHT+IGCh8pxrhCoTieAIbqL6O0Zi3J/ciH5jL5UXa5OylsZJa1oH+By+g0rRgCPS08LvaMEkEWa X-Received: by 2002:a17:90a:ca13:b0:2ae:ddb0:8a6d with SMTP id x19-20020a17090aca1300b002aeddb08a6dmr4715350pjt.41.1714044217679; Thu, 25 Apr 2024 04:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714044217; cv=pass; d=google.com; s=arc-20160816; b=LjpsCyk/W9ObutjPe3v8RWB5sbx7fMS98xfgVHKNIxN3Y98oVxKXI374uoyBJZ6el6 OM5K6tROWUv1HTpuyYbW+vYlR8GLKZTNH5EiLwBlrWnIqxfCPivAuh4pGLztnl4/YPys BwB/p70igNF7OSlQ8zNJPuNZBTAmp1UXyO0fR99S429+mFVkeKef1fqmGPxTrTuytPBc zMf+fBrbTto5rf4gNseyfhGffIXzRjm9BPUB3BETQcikuthBi7CuZKjLlwIaD6fbMmjC 0fBlzQw7IjzlrgoylWSPVVy4zoCJeiAH/tmJe5d9XtjUXqkyY78Y3BizGRs2wERfriG3 Qwvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=QmP50gGXCxsu+FiVVlNNWrALfSyQwARmtPzVd76NU8w=; fh=lFkwgBwRSnqHH5Uzyf5ya+vCCYvHpZp4ubmMyCL7D2o=; b=QMrfHMPH6iQov+XHtjyc/B0HcbQ8r6zFinC0kFPYGALJj0Bsijon+KWV/4kGr2TKNo assWsOM9twJSWLgWWyoA7363KebeA3AMPsiyFA7N0z54dSKJHXTk0sgsnhkfcxNw0DEW PxqJX2HHnUxzCW46C4kwWCGTZKxhVuqWqRtzfqgBj2Rg248fiA8xEDagRdWHNDQmB7Ns Avf7Cy3+x6X3xR4PF5tl5Xw3p6HE2PSKKakYnLOFHXbtR+NncMYciKF7wUXr8ksi2lxP taR6crh5hDvunpjvnMSVOJmkM4HcJFqld492QO22jFGFW5yxFJD+42sf2ZTK/vujmLqS N7lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158440-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o13-20020a17090a420d00b002a52c195c06si14826922pjg.28.2024.04.25.04.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 04:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158440-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-158440-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 54BBB2890D2 for ; Thu, 25 Apr 2024 11:23:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BB3186264; Thu, 25 Apr 2024 11:23:24 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CAD084E1C for ; Thu, 25 Apr 2024 11:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714044203; cv=none; b=BRBZS3nTrr2aW/XlK/vTJ2J7BGsS4ajKLj0PtH7nmhMhX1530JxBhUPdLtiV1GAAmC867GyALLlr0iYi8oHx8B207+YIGOHoE7jDlUL4cAGZ9+qGCCq7RUr36bW6JtTXaXQx0NttY3m4IRtlRKHpD5/b18ekw8ILFEfL7aIANjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714044203; c=relaxed/simple; bh=IxoPg5Bk4OOcY0AMvx8bCOxrSm8QzzJ/qExwynbRwyo=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=dYCT/ph0aUO7YGTsixlTYSktCOqgAu60MiLn2vS32UL2Lv8AStwEBSmCQKz8dOuHVAXFhPU+Xg5F4kOhYlobNkIK55SUlMyJHaiA3kBx3KHINxHUOCc4BDM0FKjZgeNA3FwHcZLt0aVuKpUi6O6+CnOpM2FGoUatVoV29BXasUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VQD1N3HVFzNnRT; Thu, 25 Apr 2024 19:20:40 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 02F0D1800AA; Thu, 25 Apr 2024 19:23:13 +0800 (CST) Received: from [10.173.135.154] (10.173.135.154) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 19:23:12 +0800 Subject: Re: [PATCH v2 1/1] mm: page_alloc: Avoid defining unused function To: Andy Shevchenko CC: Rasmus Villemoes , Andrew Morton , , References: <20240423161506.2637177-1-andriy.shevchenko@linux.intel.com> <68489f85-5579-5cff-eed1-55ae585916f3@huawei.com> From: Miaohe Lin Message-ID: Date: Thu, 25 Apr 2024 19:23:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) On 2024/4/25 17:45, Andy Shevchenko wrote: > On Thu, Apr 25, 2024 at 12:15:32PM +0300, Andy Shevchenko wrote: >> On Thu, Apr 25, 2024 at 02:25:24PM +0800, Miaohe Lin wrote: >>> On 2024/4/24 0:14, Andy Shevchenko wrote: > > ... > >>>> In some configurations I got >>>> mm/page_alloc.c:656:20: warning: unused function 'add_to_free_list' [-Wunused-function] >>>> Becuase the only user is guarged with a certain ifdeffery, >>> >>> guarged? >> >> A typo, thanks! > > FWIW, Andrew fixed this along with "Because". Thank you, Andrew! Got it. Thanks both. . > >>> ifdeffery? >> >> Yes, this is established term. >> >>>> do the same for add_to_free_list(). >