Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp906057lqd; Wed, 24 Apr 2024 23:25:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeLBlSL/7UxgwpmquBKZ/V98Pza5373XIL43hddK1hao9P4xpwzWSuCuzysr+U6bH49B03mHN4SCFK3dZ0izFspMT3zHTtmCBUf0EQnQ== X-Google-Smtp-Source: AGHT+IEGjC0txPFDupJ+EpprAENmUIgm4sb/kfNpWcy2+J4+dYO+WIc8AIakxvdm3r/huP0X5GRt X-Received: by 2002:a05:6a00:1387:b0:6ea:8b0c:584 with SMTP id t7-20020a056a00138700b006ea8b0c0584mr6417579pfg.9.1714026335326; Wed, 24 Apr 2024 23:25:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714026335; cv=pass; d=google.com; s=arc-20160816; b=I2S1HnDlyKo7hqq5YqNgmXhEc9MXIolPpmAs0epHTHcG5/vagibAfe9XStFF1Fyo9o 99R0M4l5keV+pFnqmgxAYj9Zd1hwtJ7CRUwlALgSJJH0ueDzFDN+llYnZhLD35YCRgbM 718jSnLl4IMmp8SfBlKQNidsAcXezAa9qQCV844eftS0H+5sflab5Sb6nkAE3LqCECsV xvQsnz1/uVQiXZ7X9uBEzDHrVuS19FMs+xCtk7gRwEQML5Eq3loUBroL2Nb2OuRZPS5n lfuajFLMwnc6ineYtwcTclXrRGk7kAWNHl+t3Sxzh+AjuV0+cb/xHg+gCU2AC5lUI07A WuKw== 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=z2lxszA74jUE1IDOr0qFrQzirimkkw5QVVQj3DPDu3Q=; fh=lFkwgBwRSnqHH5Uzyf5ya+vCCYvHpZp4ubmMyCL7D2o=; b=q8ozgkuDDyfBxhGddx9tpHx1a2IIdo9PIe2+6OHRuq8AQ2KgIfCbjIQIBMLg1wqqOt gBOiShmhNhpAVHkeuuZKHaBf6T85WbaA6N/iidfXcq4a7ZhKpxKSeC589R78I0qqNMuQ fQvaseXniLPD2TycoNqU1vfLsHi43VVUlQUbNY0+Gy0xf2k35BXeJEN4MAdnDAg4Xm0T RHSOIXQvSxL+gWnQY/M/sL9lhpayUhNidMIymSWZ/ZMtJ2hOhHUsdzP9R7djTbFBrJMd 2E/CsualhPad1OKKNhqJWbfKxR6Gt+8MDdPJiCrh4Gha1TpKsQboHkNKzCloIy4GUZLT f6UA==; 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-158067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158067-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 s29-20020a63451d000000b005dc956c2c09si12705231pga.147.2024.04.24.23.25.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:25:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158067-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-158067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158067-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 EA256281E90 for ; Thu, 25 Apr 2024 06:25:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 944B94207F; Thu, 25 Apr 2024 06:25:30 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 511D741ABE for ; Thu, 25 Apr 2024 06:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714026330; cv=none; b=hshuLFvgcFN1xRIZGYnUoui7ljJCSUFhPw/82seiN/5cx47I3JAvNFgccukxOyrV+9ssUTPgafKw+rFEZAoZntqoNcZLOSm1hCq3nabEUm4GPVSA7K19j3gChlh+EOBNy3ou8VibznEZcDfKeYW/efcEmiKi0r+xcPOfsmlgJno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714026330; c=relaxed/simple; bh=4DZjzfBRD8HVDZocHYyjAp46K3km4g7ourZSmI0J2N4=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=ikdUzKxc4LZvcJ/q9eWKnnqgOLnAKOzR3PsPQ0IgalFWJJuqn9r6rhW/41Esbft4dK+FGXRG8fwbgI1T+1yAwSe7/zCQREiYAOAUSK0hT2DJT+Xachx/TyM9kJ8DFWlgTmKXd1gb4xYOsWq00eQmOzC4JomO9OOZUbynRv0O44Y= 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.187 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.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VQ5P16LyYzwSLJ; Thu, 25 Apr 2024 14:22:13 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 8F9BE140258; Thu, 25 Apr 2024 14:25:25 +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 14:25:25 +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> From: Miaohe Lin Message-ID: <68489f85-5579-5cff-eed1-55ae585916f3@huawei.com> Date: Thu, 25 Apr 2024 14:25:24 +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: <20240423161506.2637177-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) 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? ifdeffery? > do the same for add_to_free_list(). A Fixes tag might be needed. > > Signed-off-by: Andy Shevchenko Anyway, this patch looks good to me. Thanks. Reviewed-by: Miaohe Lin Thanks. .