Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3872589iog; Tue, 28 Jun 2022 04:41:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vv4fQB8JhTjPfV9YERn5WEyC2pg+3Q6jxuGVP1/ZgdoJFNISx9zMTnb2AjiZJA0uAiFzpz X-Received: by 2002:a05:6402:43c7:b0:435:8a92:e8d0 with SMTP id p7-20020a05640243c700b004358a92e8d0mr23021764edc.174.1656416500911; Tue, 28 Jun 2022 04:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656416500; cv=none; d=google.com; s=arc-20160816; b=IH8xlFu6Mzv1wlnYIYKgrM7Ce7qVjdIqFa0FagWvajxZR38YSoGAEK5juFrrVgLWyl TLm0DZBRj/z7eQwHT6cXEH5MsE+DoF8JtpBc0lscTtXpJoJMPi9P3/s5xNA5U4h4TyCz UlWp2jdTBdev56i0LixBFhGSydyvCP69kS8t4LHNp2MSBGnU+d+Ci5KXekrcrgbCYLZ7 9bO5T1vKbd6EbbA6Pj5lNi/5owcR0ZEgb4FvfTrSzSiYne360u3DoUOfjtJ0Eaolzzxu Iv//t+y5VLj/z14+UKK2g9qnMG/N9a0l5OReoQoA6OsvAD1Hrq7kNRrzaOQ7VnpqrgX/ xQoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZKSPKWFHRK4bPBPUziL16yqDIgYX92TDhmw+8pEqVvg=; b=Bi4rNQNivqN+J7wqhIXu3+qWYFoXfRnPxk9wk8eLPLTod5lb4uwP92ibrtgCMXbWgU 7/RW5QNulBbQkQC7D8b+7mnsuGhRKlG1fpxbEm60g4GjWEHrwloOokdzGR8I0NK8gDRW QdP4wSnzxxZOIZudxaGnSaOLgSaCHSgghU02Qc3K1NHTDTTsfNKlF+u0+v/mCgfz1VXf 1nLkyLbKxmdbxDitGl5mW9CsnSTkho6VCBhF53mnDNJIzF/KYKuKgiszfsWmczjAz04L vCPC7EY0WdW0yMOdtU0zVdkhuQNoOarRLgljXEzOq5H5u5vuy8+WrI1ku+aTFAs/D9IJ ytAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs13-20020a1709072d0d00b007269f9395d7si7513102ejc.482.2022.06.28.04.41.12; Tue, 28 Jun 2022 04:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345414AbiF1LJC (ORCPT + 99 others); Tue, 28 Jun 2022 07:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345404AbiF1LJA (ORCPT ); Tue, 28 Jun 2022 07:09:00 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C4052B1BF for ; Tue, 28 Jun 2022 04:08:59 -0700 (PDT) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LXMHb1TVJzcm42; Tue, 28 Jun 2022 19:07:07 +0800 (CST) Received: from huawei.com (10.175.127.227) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 19:08:56 +0800 From: Zheng Bin To: , , , , CC: , Subject: [PATCH -next] mm/memory-failure: fix redefinition of mf_generic_kill_procs Date: Tue, 28 Jun 2022 19:21:43 +0800 Message-ID: <20220628112143.1170473-1-zhengbin13@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500015.china.huawei.com (7.221.188.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_HUGETLB_PAGE=n, building fails: mm/memory-failure.c:1805:19: error: redefinition of ‘mf_generic_kill_procs’ static inline int mf_generic_kill_procs(unsigned long long pfn, int flags, ^~~~~~~~~~~~~~~~~~~~~ mm/memory-failure.c:1564:12: note: previous definition of ‘mf_generic_kill_procs’ was here static int mf_generic_kill_procs(unsigned long long pfn, int flags, This patch fixes that. Fixes: 4184e8d7d056 ("mm-factor-helpers-for-memory_failure_dev_pagemap-fix") Signed-off-by: Zheng Bin --- mm/memory-failure.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 001fead45f30..c9931c676335 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1801,13 +1801,6 @@ static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb } #else - -static inline int mf_generic_kill_procs(unsigned long long pfn, int flags, - struct dev_pagemap *pgmap) -{ - return 0; -} - static inline int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb) { return 0; -- 2.31.1