Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1921170pxb; Fri, 5 Mar 2021 03:04:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGoh4aJ4K2s8dUYWxVpDdMOJUj9hE7oaXvjqXeddPV/BK5gov3LRPGjc2ehQD32qKModJo X-Received: by 2002:a17:907:9858:: with SMTP id jj24mr1729171ejc.212.1614942290794; Fri, 05 Mar 2021 03:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614942290; cv=none; d=google.com; s=arc-20160816; b=TtCx9FLmur921TS6Bgo/5e+X/srEUqHAIlvkpa/EMFdj/kTFIv4mqD1M4trLAQDwmG 8fNwugcmnSoiRBehGqHVz22EJNh/dScB8UvTfEoH5mVge/mkWt+SIGxkyAIYHPwl3oca 3E5yhDGcFyN2GO7KzymBPlruymBtBJZ4CqgS02NgV8L/N+eOit7PBVFoGMJBtvt7AA2Q l+UEJz4E/K8cegHCHH3TWL3/XX34sA66pF3tBWWzREH9rK6vj12tqN9LmQzX+ON5lK4m u2P0MEmUCb89KVO/u/7WfUKZsBecseKSVUrVCWS+1vZihwG8DhNNv8e0z5sxTgq90V7m w7AQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RY0OYLLqjzuc1+KoqC+G1+xDhn2ze5xzPCz9eQZIPgg=; b=H6lfLLIjfS68uX6EXL294y9HV+wPxWVpoUWn+J4lSiOt5guZ+UDc+Lfjau8AEuCXKA KW6co6esg9KBjnJsEZ/7v+WELwiFsHCzg/w3kxO0KgkCEx5UM+SMB1YnsTKC2G2raUpC Gt4+OyPKTLBxxM9uDsIItgntnrhRhE+EmHojecwplbPNUK6mAmv51TbaREfDme/ZoGDG ILy+tIacJ90QoCw/zYY7CikplS+1fBl5TP42SiTHh5Qlm87U7A1uzsXKrCaaEGAq90MK 1s42yz9soZcqS3Lcl5FNzRxbILaWXu8uRVoDDwxIppQHkgwltPPmbqWT62nGeoZ7zPLk 6WDg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si1188295ejc.37.2021.03.05.03.04.28; Fri, 05 Mar 2021 03:04:50 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbhCELD2 (ORCPT + 99 others); Fri, 5 Mar 2021 06:03:28 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13064 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhCELCz (ORCPT ); Fri, 5 Mar 2021 06:02:55 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DsPsk65FWzMjQq; Fri, 5 Mar 2021 19:00:42 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Mar 2021 19:02:47 +0800 From: Nanyong Sun To: , , CC: , , , , , Subject: [PATCH 9/9] riscv: process: Fix no prototype for arch_dup_task_struct Date: Fri, 5 Mar 2021 19:33:32 +0800 Message-ID: <20210305113332.428048-10-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305113332.428048-1-sunnanyong@huawei.com> References: <20210305113332.428048-1-sunnanyong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following W=1 compilation warning: arch/riscv/kernel/process.c:114:5: warning: no previous prototype for ‘arch_dup_task_struct’ [-Wmissing-prototypes] 114 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) | ^~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm/processor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index 3a240037bde2..021ed64ee608 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -71,6 +71,7 @@ int riscv_of_processor_hartid(struct device_node *node); int riscv_of_parent_hartid(struct device_node *node); extern void riscv_fill_hwcap(void); +extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); #endif /* __ASSEMBLY__ */ -- 2.25.1