From patchwork Wed Aug 31 03:19:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 12960294 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5468AECAAA1 for ; Wed, 31 Aug 2022 03:20:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E5CE56B0074; Tue, 30 Aug 2022 23:20:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE65A8D0001; Tue, 30 Aug 2022 23:20:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C38D16B0078; Tue, 30 Aug 2022 23:20:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B18816B0074 for ; Tue, 30 Aug 2022 23:20:24 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 883B240D5C for ; Wed, 31 Aug 2022 03:20:24 +0000 (UTC) X-FDA: 79858434768.18.D7A319D Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by imf18.hostedemail.com (Postfix) with ESMTP id 4AC971C003A for ; Wed, 31 Aug 2022 03:20:24 +0000 (UTC) Received: by mail-pf1-f176.google.com with SMTP id 199so13152546pfz.2 for ; Tue, 30 Aug 2022 20:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=x9fs/pcgOChAtJLUDPXp3cv3Ogg9mSNMF+2EQZokRvQ=; b=3EWz+RdAoilxVzBAZIbXaT2y9w/JYKSOiuSsmrx0ab0Rk5p98tjF4aJJrLqO6lxLmI olDtI9r36o23DHUAJS+usg6A2arKZfNQRUIA65hXH3D3o2R/8xjGCW2QWa5MK6z3UZ90 BknGzOP61FsSU+OVGuvg0nCzUbaEMm1ek3r2F66u8egKy3DvD8Fr/CSYWLf4T/lMNng4 TbsWpMafB47RdxPm6vzmiRlPaggUyBG1IOU2R2ootfTB9kH5cfD12UqOcEyJsLVIky7Z U5amLNhO0XgSkmpVeyK72YZwucWP5Udql1VdAKKpsRDuPt0vOY7+ZzZhkpSdx11G5R9P qF+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=x9fs/pcgOChAtJLUDPXp3cv3Ogg9mSNMF+2EQZokRvQ=; b=sCPNXAtLtjN46aFMLOJKsaL+VFVGkm0EtN0yuX9g7OfrMhrHsgQt1V4ngJtFA5kRpt whmCDBNF/S/SU6o0XXxeFQbA4odknkcVcMPw8G+neopcPMsjOZBIqyu3ZE+kmFDavXub LDrC1mwolj/A6yx7COUOu2KgAZuinNcn7l1MszqNiDsd+Qx1sDrZxnlAX2eYdwwjLm16 FpC6WLb7xe107+tKCEL1svwpEGKzvsXpL7m5gzoFvmTS0SmzJIdc5fBmRvt9Cdiqsb5Z kEIX25T39HdK6vDnXdtxRIo+oLmN0XEw00PL7LjlbIUCgzntkNPCLDjXgLJMfrGZSfMK O+Vw== X-Gm-Message-State: ACgBeo1AF8enXnf40lLm2iXTnFNeI1zggv0vmr8hD6NltAb69KhYtZai vhNbc8FtTeLXrAV1v+i4yrvRZA== X-Google-Smtp-Source: AA6agR7R8mNCEwL/D3l+vcBtcrgdDAyd3mWsTq2jAGPWnHMySYMHR3qbt1URZX212VAIIGTEVLmBpw== X-Received: by 2002:a63:84c6:0:b0:42b:e461:348a with SMTP id k189-20020a6384c6000000b0042be461348amr12598809pgd.87.1661916023299; Tue, 30 Aug 2022 20:20:23 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.245]) by smtp.gmail.com with ESMTPSA id i13-20020a170902c94d00b0015e8d4eb1d5sm8633535pla.31.2022.08.30.20.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:20:22 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, shy828301@gmail.com, willy@infradead.org, vbabka@suse.cz, hannes@cmpxchg.org, minchan@kernel.org, rppt@kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH v2 3/7] ksm: remove redundant declarations in ksm.h Date: Wed, 31 Aug 2022 11:19:47 +0800 Message-Id: <20220831031951.43152-4-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20220831031951.43152-1-zhengqi.arch@bytedance.com> References: <20220831031951.43152-1-zhengqi.arch@bytedance.com> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=3EWz+RdA; spf=pass (imf18.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661916024; a=rsa-sha256; cv=none; b=M2GGTMicb5RGBnJa9Ontun64v6J6i84X58EX+bpMeY8q/fbp5jazpc2qLVZJI9HV8oBCQw PNGjW99SOfuAe1H5s4xxIKmBffseWED8BRlRIoe4anrLljOYCT0OAsYtSjOdDpEIjzJAQN Whf3jgNl/3fsENHy0YCYX8erm/E7Aig= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661916024; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=x9fs/pcgOChAtJLUDPXp3cv3Ogg9mSNMF+2EQZokRvQ=; b=JmVvvQ/8u8/adJmEMStvABHrbEclACGR2FCt5u7zn+QW7p3zYL8hom3ITxJpf2OzkEmtW0 a0ZUK1NhitnTlOyEs18dOZ8ynUsgGktyeMeUbAz+ODjN9VsWrKOtnc7OmpmSv2oEb+yqKU 1baLdnPgTsbt2+piJtbuQnuurfftklM= X-Stat-Signature: y63kzqpz9zzrym9xm3tf47bzi95hnc8k X-Rspamd-Queue-Id: 4AC971C003A Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=3EWz+RdA; spf=pass (imf18.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1661916024-829435 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Currently, for struct stable_node, no one uses it in both the include/linux/ksm.h file and the file that contains it. For struct mem_cgroup, it's also not used in ksm.h. So they're all redundant, just remove them. Signed-off-by: Qi Zheng --- include/linux/ksm.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 0b4f17418f64..7e232ba59b86 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h @@ -15,9 +15,6 @@ #include #include -struct stable_node; -struct mem_cgroup; - #ifdef CONFIG_KSM int ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags);