Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp974371lqs; Wed, 6 Mar 2024 02:26:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXS0fBQrH+fkV1HHO7d1lp5Vv5873ZJUlV7QI/IBAQB3NHW8K99j/Tmw6R3tQr6VbREnSPaVDmI8/ClU6/R6ksPJ5I9IA5ozBOzNXXZDQ== X-Google-Smtp-Source: AGHT+IGyz6eDQXRI1V4oy4f14m1vbk74fuQoSDmpyr7EMNbG569RhFuvhJXuc6Hs+WMfpxlw1G9z X-Received: by 2002:a05:6871:3787:b0:21e:430b:79e2 with SMTP id nq7-20020a056871378700b0021e430b79e2mr5068320oac.47.1709720788653; Wed, 06 Mar 2024 02:26:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709720788; cv=pass; d=google.com; s=arc-20160816; b=L4kYoPF+VyKDTByNcg/PFWLqIW3ys1h9hs7IcNeICqF+5CWkpvM/vIzsRKghKtnhZN ACxnoJCR3PpWdYQwrjhwf+qog10fwpapw6jdATIzYcWPQ77CAdTrX/dabbCyjo2rOg7n ZDosj7Y8bnPA8lOdEQZSlvdBIQxxloiYGqDiq3wvOoWnuEW6VeKY+6nHebiV/3GGup42 RYHvGh6fGN3eC6MQJYuK8gGFGlbYOSe/gEtZNkPZ/OV9zq4Jz+DPh5y7ITdeaVkpEjs8 66IGUV2k3ryDxDWxOC1NbZ4Dujn++uLBDGaLcXmG5iIdF7Q5H8ianfahEzaZyBOZlHIB quIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=gr7z/SlPhRJd7tsl4kQkoTMn2fox0E9luuadMesY+gA=; fh=lQ2M4e1FRnWVc02SlCLk2j1DdH8ys+lfLCZTieMVhWc=; b=EcFTU6gSYjt7ZY8c9LCqvgb3MUj7B5+lZpIm6j4gVz4sRFiRLkzjOYOyE7TMGUsIdZ MjgQOcY5x6y6w4MURHKlwJOcFeYY9uLCP2Xw5usjDkV0Jkrgm+JgzSBDSaSWgzlaS4rd 756L987J8I8rFHXILjxD/IgP+te9Y2WL3m7tZ3dK4AYcrtNn5f+2YblEbiJiadB/M8y7 rg2XZIK8jUw3VPwIFGjRKqr0O/GbQVsNbOiTQXDhcZzLcKY3AsQJ4x/psyg4jUNTUKI7 QUabQkmLHGEvjUG2yqOfOzSrnIZoWvNmW9Kg6ihA3+FbsFkAgGkRyjAPM6eCxfmIjSE1 is1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-93749-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le4-20020a056a004fc400b006e61fc3f66bsi5376309pfb.221.2024.03.06.02.26.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 02:26:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93749-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-93749-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 52DD8291222 for ; Wed, 6 Mar 2024 10:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CA526086C; Wed, 6 Mar 2024 10:25:13 +0000 (UTC) Received: from out187-16.us.a.mail.aliyun.com (out187-16.us.a.mail.aliyun.com [47.90.187.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D1605FDBD for ; Wed, 6 Mar 2024 10:25:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709720713; cv=none; b=ZCpGSUPv0AOewwKyWxlBv7uwLgEDBmqnujU10uzpffp+HY78/40znbAdYRo8R45QKj4PiKeVAE3ThBzrj6NhnQqj/9+YWXOk962CeCXf//8JXOkImvKHHz0/u6YzH/YUCIyAxlp98qmRbNmBYVdOu2XDRhwiMXrj2cD7p7fWIDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709720713; c=relaxed/simple; bh=e5W/30uahPxnnobqPEw5qPDCHBhsj0fyCzs0F+PD/V8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LBvylGeu84ih/eyzK4H8R9nuHA2MDl6YdeIK3aNS9iPOwyt4oTctFx+P6Yo2d6ZbLy4DhlHp/bZjjK0/HLlqbjuhbkBR3ZIrORzHeac10WgWC53YyiBdNeJLDJrAXe+ddyzbAJsOKpa2w1KtjTlO7eJ9Kl1CQteSW+CGGSD6kqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; arc=none smtp.client-ip=47.90.187.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047211;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---.Wgbn-Jk_1709720382; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.Wgbn-Jk_1709720382) by smtp.aliyun-inc.com; Wed, 06 Mar 2024 18:19:42 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , , , "Tiwei Bie" Subject: [PATCH v3 4/9] um: Fix the return type of __switch_to Date: Wed, 06 Mar 2024 18:19:20 +0800 Message-Id: <20240306101925.1088870-5-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240306101925.1088870-1-tiwei.btw@antgroup.com> References: <20240306101925.1088870-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make it match the declaration in asm-generic/switch_to.h. And also include the header to allow the compiler to check it. Signed-off-by: Tiwei Bie --- arch/um/kernel/process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 292c8014aaa6..a7607ef1b02f 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -73,7 +74,7 @@ static inline void set_current(struct task_struct *task) extern void arch_switch_to(struct task_struct *to); -void *__switch_to(struct task_struct *from, struct task_struct *to) +struct task_struct *__switch_to(struct task_struct *from, struct task_struct *to) { to->thread.prev_sched = from; set_current(to); -- 2.34.1