Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3779684rdb; Wed, 27 Dec 2023 22:28:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxYCJYh2YvrtFU39y2inBmvjwIZqeaj76aVHZzrTkFUtvzrT7mHixkwaMIwYDQwP6PJkoi X-Received: by 2002:a05:6a20:a085:b0:196:53fd:95d4 with SMTP id r5-20020a056a20a08500b0019653fd95d4mr298477pzj.29.1703744893511; Wed, 27 Dec 2023 22:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703744893; cv=none; d=google.com; s=arc-20160816; b=kv4XalOYP0UyCr1g0ajSS4d7bsblRTrj3XfTKVtamKScbqFxLnTH/aASL8IL9rOAL8 rHmJz7k+rpSiuofVBxkMstZg6jYtBrPVBn4DUnC5t1Sc2WrWyfrM4NLP0H02U8btGnUg 1tKxfZYjA+dgFjiWUYn2KiwcUKwOBYtugpWwXSdc0jCn4KDQDane6iMdZBap7YsX/zZU fzMRoKIsr+lHQxxD/0j8xZRgLK36X6mY4Ni4UnxGS+ORsiPW9DQ5flLbNUhr6+asXXyY Ti1Fndk/feYxc9s/LLhtC1vxlGkG9fdxkycl3GkgNq9MGIbN1UOfTelHmwLU6mwM98KC iFZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Sxksy5E1CXPNQaU5KEcULgXjRO+AwfRR0MftjysBlZ4=; fh=pfOfK6fK5+onSwSyJBXnd63HJvzPImPyoGOtiqyyjLE=; b=keXADKDroINkz7GOZJUpcBzmdlaMva0Ju/aUBwMs2ElBlKQT+8huYP2S/EkR6BtFff mBxgLztIP48Wp12nQhjkI6ep3TdjxJsNql9hkJ+tyA6TblIU2DYOOdb8qsKp74wWzRCe FnMor4NiR4EBervOADn4VljqIaTS56VcIdyT27qAIl7cT1Nv5GhiYlb2XfxpxYZQn/6w 9npjzCZuAKbMunDZcwy2FbhpZ9b7YYKH1Nn3RmtCliyejldPa/lpGWzAH35B4gjvncXR n3VBNkXiU3+UdQygltfcZ9z3xvG0DGt0JpuzjzUPHK/k1Uoart5SWamQizuRAHkayjEQ ybOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b="RkYOYQ/X"; spf=pass (google.com: domain of linux-kernel+bounces-12458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q1-20020a655241000000b005cdec41efddsi11124051pgp.150.2023.12.27.22.28.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:28:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12458-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=@shopee.com header.s=shopee.com header.b="RkYOYQ/X"; spf=pass (google.com: domain of linux-kernel+bounces-12458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.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 2F39B282F35 for ; Thu, 28 Dec 2023 06:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A25C63D4; Thu, 28 Dec 2023 06:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="RkYOYQ/X" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 579895393 for ; Thu, 28 Dec 2023 06:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5c6839373f8so3614674a12.0 for ; Wed, 27 Dec 2023 22:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1703744862; x=1704349662; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Sxksy5E1CXPNQaU5KEcULgXjRO+AwfRR0MftjysBlZ4=; b=RkYOYQ/XFuJZzzuSorZBnV3UITFneEd0OlCsW/GA7Ht1u+xgqjaXMIHafH9NPxpAZ0 0mlO5dNftx/gBfkJQ3Qh+ej1MBhGAv5GPPYGFBucPEHvFMSFmM5NS6wvuVFlTABUw+L5 Kkqo7bwhNP2fAb25ZgigjaOybZEoN6+DiE4b7TX56NbXtUtTr2SgsWZpfwq8dyBxqP1x 5Dtxri5bLQcvvNo15YVOC7lsbeg1iV0j8f6T8BfiJY4BYeiVlVgl4fWiNSMjwMfnGLFs sOfjaLbAgTaMZ11dEaiNdBeex8ZYAr1+ZbuJsgZVYCFGfVTv23PU+e0CzL1MG0s10HKV M5KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703744862; x=1704349662; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sxksy5E1CXPNQaU5KEcULgXjRO+AwfRR0MftjysBlZ4=; b=CnIXJlDgtkM1saI71fvOiA9rN10J1f1BuipgUm/SNkNlSZv/HqrfsIaCW/zsVPXT+P NjQoCcExvj/20mjcT0M/ll8yfvWCS8a/6SemZyfkFpLfLAQ4NAyKCyPn9sqOGUIJLUqc t1v/zu8wttLDDh/YX8AWHTJ9zpNNNjHhKLW8GiA5qnd9HBsirWbTuFH9zw/U3obSRsKN pzp0A3wUaAVOtkrG5ZiQs9t+o8sbPHGIub6efmksBjISJUM4cvxNTzVwwGZdYeyDwAwT A01ArijhfynxS6y+prpLPN9EBV4SBPShJTFO1Z3tYJz5d5gRPVBkYgIHTRaKyzOTAnVy nELA== X-Gm-Message-State: AOJu0YwhKUHXXJXEPqSyb8KeTCqq009Um7ESR5y4tZIQwwlRMvXq7sGA ZMQmVnn398wtMW112lCuFQRJiBkh++EfNQ== X-Received: by 2002:a05:6a20:7346:b0:196:2c18:fe7 with SMTP id v6-20020a056a20734600b001962c180fe7mr1993962pzc.14.1703744862596; Wed, 27 Dec 2023 22:27:42 -0800 (PST) Received: from ubuntu-haifeng.default.svc.cluster.local ([101.127.248.173]) by smtp.gmail.com with ESMTPSA id g5-20020aa78745000000b006d9af8c25easm7681381pfo.84.2023.12.27.22.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:27:42 -0800 (PST) From: Haifeng Xu To: roman.gushchin@linux.dev Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, shakeelb@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Haifeng Xu Subject: [PATCH 2/2] mm: list_lru: remove unused macro list_lru_init_key() Date: Thu, 28 Dec 2023 06:27:15 +0000 Message-Id: <20231228062715.338672-2-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit list_lru_init_key() isn't used by anyone, remove it to clean up. Signed-off-by: Haifeng Xu --- include/linux/list_lru.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h index b35968ee9fb5..57a445a5001f 100644 --- a/include/linux/list_lru.h +++ b/include/linux/list_lru.h @@ -62,8 +62,6 @@ int __list_lru_init(struct list_lru *lru, bool memcg_aware, #define list_lru_init(lru) \ __list_lru_init((lru), false, NULL, NULL) -#define list_lru_init_key(lru, key) \ - __list_lru_init((lru), false, (key), NULL) #define list_lru_init_memcg(lru, shrinker) \ __list_lru_init((lru), true, NULL, shrinker) -- 2.25.1