Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp974646lqd; Thu, 25 Apr 2024 02:15:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDsJf7Xaob9kCwyDruP+aL+FG2TlstE3YJxv6sqFCvEUBKvktfaGrnW1lFlaUWQDsJeeF1rK61gr0Pa1QDThU1QrDFb0nPW0OXx9UPXQ== X-Google-Smtp-Source: AGHT+IEj74FGe9qhgodPk8UDVpAUc6U4pc+n2Pr1V7VOJEvQrjk19DstKwVq1e/tNAsEH1wW8Lqd X-Received: by 2002:a17:90b:4c50:b0:2ab:b842:9870 with SMTP id np16-20020a17090b4c5000b002abb8429870mr4733738pjb.4.1714036545981; Thu, 25 Apr 2024 02:15:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714036545; cv=pass; d=google.com; s=arc-20160816; b=yMAnzxydLvbmgO7TPseC/KGFnUUkHx46jja2/jJEzIQflWtlsZlo+vC8xRbU+Wpu54 zqjzpDdDYOHQ8IDJt/IfxLxIi2DaNC+sgRd/iBc2I7DcXmNqw+AdaksrmP8fbeyLkCLA 26Tt2RrBY3pbQTr1YLOleKtDtaXNYiOeF0iIsoHigE13vhAuaQfnaRVvvXlcxi+wjA5y sWWRDxmbmJIgRgkWEQuPbMI+6EFRs56gE77EnD1FbSHBgZ8kBeVPmwo4KDGPMQRN0IRR xHYdgT4hz3lBOSMDsH5ksVdbP4AFmz312WW8GObEezLBgURN1R+HW+Vye1GGZfCfs9Mo xAIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=KPShzm8vrFoUy++4YYd3+Og2K97AkLwu5DRZ2BdMAe4=; fh=0yoHc6cRecHTPW658rSygSA7AOuJG05fWQwOshyNf2U=; b=PiO4LzvQSWMTZVJSCj/SY4DP3pFw2M97i8Wmew1bdsjSwRAhUGR5fh31Cdki8bqT4g PDutuspVBzB/fUt0uZAwhTdxtPYcP7GlnEVlt88A5dhABwRXD26Z12wbH6XKWNxQwech eTFCylMrl1LdPnZAPGdlFqDEZO21uMmEUrYQ51fHRNzjAj+xovyZd1RS4EC+gkpBgLhR hzKXI/1QEr+9HhjcGzXu9X6z5jdMzHbcrLLrsnm8M1+YrOg24IVEBiOFdbFXfsP3KfB9 tScYoCrggHpmKXol6279xD+vJpwdDFgfspupw/fUOzygxcW9te/JcV52x9uFtGNHxhKi 2F5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fi7Yl2zD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p12-20020a17090b010c00b002ab58bf256bsi12658050pjz.125.2024.04.25.02.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 02:15:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158253-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; dkim=pass header.i=@intel.com header.s=Intel header.b=fi7Yl2zD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 A01E82844D0 for ; Thu, 25 Apr 2024 09:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A1BC83CA4; Thu, 25 Apr 2024 09:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fi7Yl2zD" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 260C540849 for ; Thu, 25 Apr 2024 09:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714036538; cv=none; b=pYDn/1BMMNIV1VICS8v9BGAdyKD04DH1b6Kp4y7LbFFV1brD1lQ9QvICaou2IjT/LaBga2NB9e7P+NQxI0BNJiF7cpybjShyqk/pLvH8XtT4hvdffwxpSvd30JWfYx5iurCx/7YYcOToEn1xZ5VSqYt/NmX7UuEDkgfx1RY5PIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714036538; c=relaxed/simple; bh=7I2F8yY16MhzKfcFcggrHF6aynsqbAHUvh7eIBlE41o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jQEZfB/OSPMKFhikJYxgF0Iq7nVLnuO+Jx2WWCGRo30h1xWie557OdFnc+HB4zSQOuUhD89Ek/5mPcA8xEmpfQ05FM0HjVmbQPyQbpVMP+hBcz3aAtMgA8BWmQZ4wMjvIlTQOhcZ8NFdPOXAI6PWWDE07GCJw3vxNm6kNnmaP60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fi7Yl2zD; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714036537; x=1745572537; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7I2F8yY16MhzKfcFcggrHF6aynsqbAHUvh7eIBlE41o=; b=fi7Yl2zDCErq0TV5BRev4l8D74rE69ZkUHPCs8lNOzmKHtuF38dyZoi5 1+0dMPMZ7ZQZgj4Dir82WuO++jN90EOkMC2EAcrSach9ertPKqBt6/3hH iE1gWelAZjGB6HfZoQiX49gEr+db4LMTNBUAdWqmBvF+AcC2n8LfD/gQ+ 8LQ2d9Uruk2dQIb9b1Xdo/B7NPzfWVlq1jjnhFj5U4xkNJpTodcAlMj3n lYFoxcH0EHYvraBNj6bZe2VzaBdtWBgvf4NFuoTBCvVljdF5OZ8S3aB3N lBuJfbGTul85seNJuaqps0FRbnWVyri9Bbvb1FJRDLD4aA7XcrnVlxYWS Q==; X-CSE-ConnectionGUID: GDluEK5CTemaYqTwc36sWQ== X-CSE-MsgGUID: Kx+HKZHbTaGsSgsjJr/okg== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9556966" X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="9556966" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:15:36 -0700 X-CSE-ConnectionGUID: TBBtHCntTm6m8fXAxqh4aA== X-CSE-MsgGUID: o7sJpbVgQtu/FRi/UGeqSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="24999908" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa009.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:15:35 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzvCW-00000000wJK-2Jz8; Thu, 25 Apr 2024 12:15:32 +0300 Date: Thu, 25 Apr 2024 12:15:32 +0300 From: Andy Shevchenko To: Miaohe Lin Cc: Rasmus Villemoes , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] mm: page_alloc: Avoid defining unused function Message-ID: References: <20240423161506.2637177-1-andriy.shevchenko@linux.intel.com> <68489f85-5579-5cff-eed1-55ae585916f3@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68489f85-5579-5cff-eed1-55ae585916f3@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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! > ifdeffery? Yes, this is established term. > > do the same for add_to_free_list(). > > A Fixes tag might be needed. First of all, it's not really critical issue to fix. Also see below. > > Signed-off-by: Andy Shevchenko > > Anyway, this patch looks good to me. Thanks. > > Reviewed-by: Miaohe Lin Thank you, I believe it will be squashed to the original one as Andrew already accepted it. But at the same time his workflow allows to update the commit message in case it's going to be a separate change. -- With Best Regards, Andy Shevchenko