Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3169244lqt; Tue, 23 Apr 2024 12:13:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUe4TVJDnkLnQylRixP107GOjDZTFFhS8MIgfd6/XHQ0qgv6XIMw98DkrdtoQwhXCuRin8GqnbQRPsVUIn0GtUzOg2trOK6gTLwrA8WcQ== X-Google-Smtp-Source: AGHT+IHdFg3ZusaJ/+ax3xYyPxL0Dl3prmC/32aBmrs6XVErR6DeXh4LGo0wdAHVmyvoCwcwxRZP X-Received: by 2002:a05:6358:e9ca:b0:184:c1b:4136 with SMTP id hc10-20020a056358e9ca00b001840c1b4136mr174781rwb.6.1713899589669; Tue, 23 Apr 2024 12:13:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713899589; cv=pass; d=google.com; s=arc-20160816; b=zEYVQdzMBgqPgYqDPHtgK/tlL6rldr1JPw59aZDMYP98+E1jRubm363so9mpNNZu3Y TdBlqWzdJ70FDmoiGnEoQXLX99aZGX0wpyQVy8PHF5kGn833eNomq1Wd8UnfEciF90si D4yTChLtWIvxPxtkPIMUvcks3YF70SqWsD5rSIVw+5Spt6/kDMmAwB8y5DVFSzec9d2f AxX/ntXWjxAkFU5EZmhPGeKyCz4vGpiz4D5xVTMXqLbcr3JUQrQSk5SQiC8/ku0vV6AO 8kXn/gsmcWgoueBNx3CRcNhvsfYfYio8z7kMQmTme8DKTTcvTSuwecs7pOM7eFrookTt dzUA== 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:to:from:date:dkim-signature; bh=Y+YCZPqNPiTc7RKIgM+7jokb8NTAPiIU5gt5Pz6pV3k=; fh=kRQCDrmccI2qCZuUtkw9M/Kwk9cvvQtyw1WLF6FFVZc=; b=CnRWIzAkhfnbMGLNiCrr0XBvohDQgc6/D6rKavaoBJExuehc46a9fSNfqKfUc995dH Q+KU1ltMJ1tLTGNdA8zSzeVn4b2WBRgrgyxUxy45mTClOZ22VjcKJVyG6A7CrBwiu8Ty 0f/jqxLazRhybwPum/t4vEeOgDi66179dHCN+0SfUO2+SI0PKMLrma1iRuMNVk20syHu wzd4GDkcjrWIrxFbtaOvDLBF5PiSnr5ETISdI+rNRyxUzsUc44u4YwyfjeXjlkXcOSbj QOVGPkB2mR8WYQedPGvZHsrAQ/DwJrj8nCtW9cuKMj7mfykq1HEOU4Il3NBMu7z9DElu c30w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EOYsaRka; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155520-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f4-20020ac87f04000000b00437bec6d1e3si12010001qtk.213.2024.04.23.12.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 12:13:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EOYsaRka; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155520-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0861E1C2390A for ; Tue, 23 Apr 2024 16:07:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96AF413D63B; Tue, 23 Apr 2024 16:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EOYsaRka" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 420A013D603 for ; Tue, 23 Apr 2024 16:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888410; cv=none; b=DsBzhUKb1qto+bGRcqwgI06PVCxDYBoRRvyqhxMgoeB3KqIlJ+5x08q9LR/QkeotykbOVY1zflSrFpYrTuv0tAa/sy6lR6pfX6J32zVrbMrQjEK282SYxOfssG6fh7MkKMlefUG3vmpL+DvaCi60GHfP8Cwye0XDsPk137tM7iM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888410; c=relaxed/simple; bh=+GPI8MYmRHggMkNqqlNDqdxueKptVdz/4mNIdvW70SU=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YNSSIx6nuIHiRReuTktR9ctx5+76yxOLG9BN/aoI5+vjuL0R1jkbQPWBAB3I0tAHwyXZwKblg3kqJjtayejsPG7TrGAq7r6tDJLyfHH2/E/8lVpm65RuG+PeF/ippkzXm4rZXa6LRCguC1A8grEkqOXMQAnIzsiUkE5E9kOQofE= 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=EOYsaRka; arc=none smtp.client-ip=198.175.65.10 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=1713888409; x=1745424409; h=date:from:to:subject:message-id:references:mime-version: in-reply-to; bh=+GPI8MYmRHggMkNqqlNDqdxueKptVdz/4mNIdvW70SU=; b=EOYsaRka1Vg1pvqMpQQFz8NSEFnxWfSSMvKlRQrppKVuwrSBZsnfyr0c 3Z5Twx3nis9/l7dE1JZlDsbV64/csyVpA0m/5LXBgrZCSMNyBC8GdEx3n WLWbwlwYTFi+L3tQxxvE7Ri7rP7O3ybGrhPeqnAflq1BYHkZD8A3EePud uuBbP9nNJzDly7EjUZiqCa561xcMVbK5V3M5GrJxmlXoPgiHy3MfRxTyS 0zqj8pemKGlh3rWfq5IQBt/s/jqkusfC13QUOSekhZBuFw/rDK5oqnH0O iiblRlUpH7H/TWIp28CWdgecdW9dqnONewgZIA5CN81FaKC3v6hY8NBdO Q==; X-CSE-ConnectionGUID: bG3rGonXRU2IUjiFbLiXCQ== X-CSE-MsgGUID: tjdpuARjTqWoBQoGgqRkXw== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="26940102" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="26940102" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 09:06:48 -0700 X-CSE-ConnectionGUID: CsZkNFG2Q1aASJYgHTE/vw== X-CSE-MsgGUID: XGIvMRGoTaa6Cio7AGICug== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24932596" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa007.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 09:06:48 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzIfM-00000000Nzz-2Qij; Tue, 23 Apr 2024 19:06:44 +0300 Date: Tue, 23 Apr 2024 19:06:44 +0300 From: Andy Shevchenko To: "Liam R. Howlett" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] mm: page_alloc: Avoid defining unused function Message-ID: References: <20240423150622.2526825-1-andriy.shevchenko@linux.intel.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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Apr 23, 2024 at 11:55:49AM -0400, Liam R. Howlett wrote: > * Andy Shevchenko [240423 11:06]: > > 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, > > do the same for add_to_free_list(). > Why not relocate it within the existing CONFIG_MEMORY_FAILURE block? No objections, I'm not familiar with the idea behind this helper. -- With Best Regards, Andy Shevchenko