Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp874490pxj; Fri, 28 May 2021 19:08:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNLwAvPuUQ8N1gsQ4DoAVU+PIu5Ea4B0KEd0ifXNC4ghdH5+nX/yCwuwzsGxFcgOPCBJAU X-Received: by 2002:a92:d201:: with SMTP id y1mr9148264ily.103.1622254091316; Fri, 28 May 2021 19:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622254091; cv=none; d=google.com; s=arc-20160816; b=LO1T+m2MQzZwTGrB9971XOQvu6L3gKIJioR0ItfrRpkDXfG2h/pdHwalaCwextmi2i xVYKCv2YxI0xwNR2pkaVnYKxmTYLQhWeVtbKNvFzn8GrC+v4msobG5dcsK3mJrE8dkAH rQjVroxCWjeB1hshZIrhhdq+LiFEO/VffTbk/5TzCH91jC4eebmKWnSNR8grnwn/5z/K E/jBeVy2YDBZ4+rU8W8UQv5TEe6kdN+pYenEPtwg9o7LDAcdKrkwzjHh8EftWyJpMnL3 K3IfiUEcVdNmyRhzgJ+Ir2sKspMiIhobalsCzsRJgMSh8+62DUkbe5q4QAqPCWSK6XJG 1LhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=TXoatcA1VucBpgiSK5DRa+RrXGVZhe99ylWe6OJWQp8=; b=jHeVbvgEvrL/d6NwcUPzbQvWAZL8i9ndC7YOomyZzUK/RN4sQZWFQupxPoSAoh+M3b 0OFnw1wfMR7k8nLnu+cZyi5s+16OxiSHc2FwqAy8k8tl69Ln5blalvItgru1MddE1PoS 2sQge+Qsm3jF1klqpiVXnSgVJ3xYYPigJNTGLKT3lJG0BfSrHKvK7UxQ6y0BtQogu2hE NHPIPmwCxF7uYTKob2xRaX01/PNiTynMDsrcyuoVWZfQIg6sj+ecCNGcNOTn+URACAuN NwzfuuW5OfO5TfUK1IyAQDRPTLhHq9sp/lTFv3p+UGbgy8GCWwUM8UcUpOFEvoua/gpx HpfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si8395109jaj.2.2021.05.28.19.07.57; Fri, 28 May 2021 19:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbhE2CGH (ORCPT + 99 others); Fri, 28 May 2021 22:06:07 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2400 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhE2CGG (ORCPT ); Fri, 28 May 2021 22:06:06 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FsPsX6bGRz66Gh; Sat, 29 May 2021 10:00:48 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 10:04:27 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 10:04:27 +0800 From: Bixuan Cui To: , , CC: , , , , Bixuan Cui Subject: [PATCH -next] module: fix build error when CONFIG_SMP is disabled Date: Sat, 29 May 2021 10:03:28 +0800 Message-ID: <20210529020328.36863-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build error when disable CONFIG_SMP: mm/pgtable-generic.o: In function `.L19': pgtable-generic.c:(.text+0x42): undefined reference to `flush_pmd_tlb_range' mm/pgtable-generic.o: In function `pmdp_huge_clear_flush': pgtable-generic.c:(.text+0x6c): undefined reference to `flush_pmd_tlb_range' mm/pgtable-generic.o: In function `pmdp_invalidate': pgtable-generic.c:(.text+0x162): undefined reference to `flush_pmd_tlb_range' Fixes: e88b333142e4 ("riscv: mm: add THP support on 64-bit") Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- arch/riscv/include/asm/tlbflush.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/include/asm/tlbflush.h b/arch/riscv/include/asm/tlbflush.h index c84218ad7afc..9d5801f6e2c3 100644 --- a/arch/riscv/include/asm/tlbflush.h +++ b/arch/riscv/include/asm/tlbflush.h @@ -44,6 +44,12 @@ static inline void flush_tlb_range(struct vm_area_struct *vma, local_flush_tlb_all(); } +static inline void flush_pmd_tlb_range(struct vm_area_struct *vma, + unsigned long start, unsigned long end) +{ + local_flush_tlb_all(); +} + #define flush_tlb_mm(mm) flush_tlb_all() #endif /* !CONFIG_SMP || !CONFIG_MMU */ -- 2.17.1