Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2442546rbb; Wed, 28 Feb 2024 01:45:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXbBKcpaBMa905S29raO9zoErvb37ej02MRNCT2aqxxLtQpHYX+to4KED3kQPXmI7QOgVAZ3XZP2c7TirLP5JXyI29SBSqSPZ9/Ij8JA== X-Google-Smtp-Source: AGHT+IG1XOrxxuaAhDYxCrRVXJ/YZa7Pe04WNMo7FGGdcse65iOy3Ma0FVmbswDQKMfC82iaYmBl X-Received: by 2002:a17:906:408b:b0:a3f:c38c:afa2 with SMTP id u11-20020a170906408b00b00a3fc38cafa2mr8635408ejj.21.1709113553487; Wed, 28 Feb 2024 01:45:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709113553; cv=pass; d=google.com; s=arc-20160816; b=Vw+e5jgwJy/s0KxhBtTjU6NQTTORDXdvVuCKIxa4mN+z6Ykb/ktVy0TqT1oNcIIrck vPY+WJ6/J0/xygMPC9uJEq32wMiDAGYhEqodRo112D3urypob8m8LrVopMMHePBrU/JY cObntxK9gqRh9VLPnG18MsF9xtQlYNuwXFxZekDzj6eEaH+L1sLljJ5OhhGXFsMRRWHZ kkxaX0EBzTi8TWycUUSGCLF8h6Bi6mSzz6Hnoc4IQ3FRL5O2M8eO/5GCwRLxAprzakdR n81b7hT+L+g2pgfAkIqjgp5F087A5zQCaMHWYsZrYW5ezr93yCMUEPHx9t9KlPiHSUVH +KJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bdtDjYqbHw4N9R6tFKPHGKX5xI8wlaodQ+T0JbRKQBg=; fh=qenanWGqioOgrGg+jdMtUr+iHuB1J25JdmyuzuMexk8=; b=VgjXJCH/fsvb12Br3bM8rfHMy+QhCuIgHYvhMLz+/uzuALskxJyXpinSBZTNPIhRDl s+W9tChp4BamoVCWZc5MMXe4lK6b74uamn0QoQGbiBEqJu0mPI6FKaV3lyebZEvINk8l WEYVd9jAgH+rEMoBmtORdaiPA+k+/b30sY7pchc7/KUBjbLDsHW5MMcAXBP8ImA7dKMc x0CXj5ndEvhoSu+/PQlAPsEKV+M4Nj7tNko3rzP0WRCTxxqGebydJ+fYQgSlRvTJ6iWA BLKtWTOUTJGOhgUnhD3XYIBzQS1c/SNKVFYn97ziLJXOPDB882taYOvWvu65MuLB/bkT TsaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="fQMEz4/y"; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-84788-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dv8-20020a170906b80800b00a43f38f7850si536310ejb.168.2024.02.28.01.45.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 01:45:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84788-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="fQMEz4/y"; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-84788-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 40D461F25824 for ; Wed, 28 Feb 2024 09:45:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5E6236124; Wed, 28 Feb 2024 09:45:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="fQMEz4/y" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CB82219FD for ; Wed, 28 Feb 2024 09:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709113510; cv=none; b=aRp6/K0X7mh0t9Ezaat4CzVVnG2dNgwOttCQQfa5ISw3l0TWtTLHP3J08Tdy7FZSSJM7mGLoZhnSzrFDGzxKDrOAWEUq8Yu7rBCCn/9Na4lHe9Xno4R1bngGRGPpbfoU1ajZM6vtfGo0xcv03I1OgVhRoscv1dqUKdXc841VzFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709113510; c=relaxed/simple; bh=6GGeF04HQWYOOVgF8emoialS5Ml60103rSnFJpOnveo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LoyUw8BcWdGXDh6pXiMEMbMX66Y/SyOU7a5kyItGSKByB4+fJwBdgqGc/NdxH6S9/Gg6cN5v9HlHjsuZ/u2fJTjvQRfH10YIatyxgVNJSzBVJ182Q2OB71YnQ4kOkrJF/rwu7c5zJRufMgQ+fE1gzhfElIo+jR+TqWLdHf/cSZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=fQMEz4/y; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dba177c596so4662665ad.0 for ; Wed, 28 Feb 2024 01:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1709113507; x=1709718307; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bdtDjYqbHw4N9R6tFKPHGKX5xI8wlaodQ+T0JbRKQBg=; b=fQMEz4/yBonSCOyIyoRpwbYWK9akUTshzY9c0DElnYxMNyp0xZAxoGJJEhMZ1CjrMR oeKH0yel2sPRxOu3g8ISMOhN4Q3KTtmr0v7XzaEPl3lgqtc1zgkz5AgbpVh1HDnhS9Bl bd2st93YyLodbngupiJqGhyyNgDluV697zQNAm8ADcwBqFP6bcGksjfMztOk5INHkl+A ko59tycwnSJr1gdvrv5v+UVMh0DO9qT4BePm/xzVarsd1jlfReRNp5avDIFrKkKDKiEF B7Sd1mdVYW9S561A28IWUXrpWTm0LhiFZXrFE2NoB12mWRhhWv0VizvqUXWsG/1+s7z3 1wNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709113507; x=1709718307; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bdtDjYqbHw4N9R6tFKPHGKX5xI8wlaodQ+T0JbRKQBg=; b=uAQRTr+lI7p0kwcbnardGsLJglOAVaMYXq7y2+oGwCPQwimMoaYKSe60MBFYe0vCo4 9gWd9qg6L8Q34T8arlvSEkTqv6MPkrGEhRLuj8BZ9mM7s6rk+bwBm6GCEd3tn3vrDC4y 6OYbKV2S+bpAAVmXzR/fFBVmJAUJ3j6/fDDUatHzUqS4PaFtK91yUKnS1nmZShHN4/FS yeTUwLNqEJgRGDkfautVHyQeIEln+JQQ7zpqRdwKSqOo8VAFvJagMye22R+LlmyKfMFz IaOtL7gI/ZsU2+p1/K9HiGEsgdYZsPG990homlN1a8adyM9oPe0P3lML4SwbyIihrfen qViA== X-Forwarded-Encrypted: i=1; AJvYcCXL2P+nBL7z1ea0F1FzTjOdbKUHvBuTKwM0lDkfqhcwyThfcwjr/r+4hxOYiVkjRrJyR65TfPnLWQF4BjFtFgYONQcdZQMI6a2zSIm7 X-Gm-Message-State: AOJu0YyyXsfxSFJ6AlzKz/TCh9NqCJ0uLR10+/eoFUsICs+VHZDaQUUp yQFEi7EPsTeLg7cRm/ZufqXl0NRUzJiC6tAqlvm0QXS5aKA38AzAA2vOpLip+KU= X-Received: by 2002:a17:902:f544:b0:1dc:b6ef:e237 with SMTP id h4-20020a170902f54400b001dcb6efe237mr2203762plf.31.1709113507533; Wed, 28 Feb 2024 01:45:07 -0800 (PST) Received: from [10.254.95.105] ([139.177.225.237]) by smtp.gmail.com with ESMTPSA id bb8-20020a170902bc8800b001dca3a65200sm2882479plb.228.2024.02.28.01.45.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 01:45:07 -0800 (PST) Message-ID: Date: Wed, 28 Feb 2024 17:45:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm/zsmalloc: move get_zspage_lockless into #ifdef Content-Language: en-US To: Arnd Bergmann , Minchan Kim , Sergey Senozhatsky , Andrew Morton Cc: Arnd Bergmann , Nhat Pham , Domenico Cerasuolo , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240228094036.2267912-1-arnd@kernel.org> From: Chengming Zhou In-Reply-To: <20240228094036.2267912-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024/2/28 17:40, Arnd Bergmann wrote: > From: Arnd Bergmann > > It's only used from inside of an #ifdef section, causing a warning otherwise: > > mm/zsmalloc.c:735:23: error: unused function 'get_zspage_lockless' [-Werror,-Wunused-function] > 735 | static struct zspage *get_zspage_lockless(struct page *page) > | ^~~~~~~~~~~~~~~~~~~ > > Move it down into that block to avoid adding another #ifdef. > > Fixes: 2258bdebb55e ("mm/zsmalloc: don't hold locks of all pages when free_zspage()") > Signed-off-by: Arnd Bergmann Hello Arnd, Thanks for your fix! But this series has problem and should be removed by Andrew later[1][2]. [1] https://lore.kernel.org/all/20240228043534.GG11972@google.com/ [2] https://lore.kernel.org/all/20240228035403.GE11972@google.com/ Thanks!