Received: by 10.192.165.148 with SMTP id m20csp4296320imm; Mon, 23 Apr 2018 23:45:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+yYzZOyajNAfz6WG25756duHqH91XZgt/tkYrMZWt6sP3NaxtqlbxKgMR71qKQNevVYs3U X-Received: by 2002:a17:902:76c7:: with SMTP id j7-v6mr23635364plt.108.1524552319915; Mon, 23 Apr 2018 23:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524552319; cv=none; d=google.com; s=arc-20160816; b=h2Uf67d1/T/SSpZpT0lkBkp4NbfX8u0+XpDn0CCYC9ffmfi/VEs/1w6Yk4QLHlEOOT ptSTIyLgb713DyNOuOVy3kXetYiUroFMJejCZweP3m7I/tX1wNR6IZoBy67R+Im6ghdW HE17Lh/hyq9dkfAXbYx6KrqsIg1FJXHT+yHvy0LnYWTp2PnCz3MBrD7Hdz9iLqyggBp8 MNLE6h8T6r9k9buOqbbXYa9mSem3iIq6wBTvSVuYKoI719W0iW4OB8BRXNtT8izF+bMD sT10BMW8c2pg7YGYDY4gKSe/2i5iAO+MeGU67iFy9/ADxNhMeelzbPR33ItWGIFPrV5a NSfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=4p4sdP/WSP7yrgD1AwAhtxP0lcCV3uGQJdEK89xTUxA=; b=zJZLO0uc2hIMCr1Ck6W65geQD9upq11Hq5JK9zO095OpaGvTGC+FwMcHyoZFI9OVIF naStXbodHXigiArzdimLOkiSsPEVmZOIciHzooi87VIfAEqif8EWxaEwI4eGppcUd1jw XEuamnZO5ZCFvEeyiTaj2fIvD39GERdpLkMC7TOiZFqFSQ+LxP1BT5Pgiuk9cT+oM173 9NvGnxux/YuPR4ZUQmJKw/09rnqznW5IKl2zJyWqQT55C275fARzxC2btxF5Yp3vDGYX h/3erlRK+KghkqXI2paAZzDByhPTkJT3xLhmNKlC5C3bML3loHdtzWxd4Bh+6aImp6Lm CXTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16-v6si10705554pli.590.2018.04.23.23.45.05; Mon, 23 Apr 2018 23:45:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756432AbeDXGmM (ORCPT + 99 others); Tue, 24 Apr 2018 02:42:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43912 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756413AbeDXGmJ (ORCPT ); Tue, 24 Apr 2018 02:42:09 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3O6efnt117500 for ; Tue, 24 Apr 2018 02:42:09 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hhvswpnqb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 24 Apr 2018 02:42:08 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Apr 2018 07:42:05 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 24 Apr 2018 07:42:01 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3O6g1JK1638698; Tue, 24 Apr 2018 06:42:01 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3FECD4203F; Tue, 24 Apr 2018 07:33:25 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CE90542041; Tue, 24 Apr 2018 07:33:23 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.99]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 24 Apr 2018 07:33:23 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 24 Apr 2018 09:41:54 +0300 From: Mike Rapoport To: Andrew Morton Cc: Andrea Arcangeli , linux-mm , lkml , Mike Rapoport Subject: [PATCH 1/2] mm/ksm: remove unused page_referenced_ksm declaration Date: Tue, 24 Apr 2018 09:41:45 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524552106-7356-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1524552106-7356-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18042406-0012-0000-0000-000005CE124A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042406-0013-0000-0000-0000194A7FDD Message-Id: <1524552106-7356-2-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-24_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804240067 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 9f32624be943538983e ("mm/rmap: use rmap_walk() in page_referenced()") removed the declaration of page_referenced_ksm for the case CONFIG_KSM=y, but left one for CONFIG_KSM=n. Remove the unused leftover. Signed-off-by: Mike Rapoport --- include/linux/ksm.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 44368b1..bbdfca3 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h @@ -89,12 +89,6 @@ static inline struct page *ksm_might_need_to_copy(struct page *page, return page; } -static inline int page_referenced_ksm(struct page *page, - struct mem_cgroup *memcg, unsigned long *vm_flags) -{ - return 0; -} - static inline void rmap_walk_ksm(struct page *page, struct rmap_walk_control *rwc) { -- 2.7.4