Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2872709lqt; Tue, 23 Apr 2024 04:29:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9bGv57MHUqh679/5O07Z/Hxf3dV7ZYhYiVONjaOXODDkxVvuppbIs03F5uzQ7IZGEAoNEMhqqXRbKSU5zKigRe/oaywGZ2lZ04+YX0g== X-Google-Smtp-Source: AGHT+IFjWmf9jlHZ6527AbISB2Uay6+pq5vetSbxdS7wLRU5IzHNsyrG4wO1at0pbiwPXXW/a5Pm X-Received: by 2002:a05:620a:3bc9:b0:78d:4bd1:5fca with SMTP id yf9-20020a05620a3bc900b0078d4bd15fcamr13919871qkn.41.1713871775772; Tue, 23 Apr 2024 04:29:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713871775; cv=pass; d=google.com; s=arc-20160816; b=lPCL41SkFXEZkAzIbVzBrQ6Kox197OTnlNsXfLM5MVvTrsZHqvB9rcowKXk8k2zoyj OgnQbZ01TA8+LTOfbp3NeU6E5dzZLpK4wD0PE1b0koWbjq0grlagWoBpP46T5hZqGBuI VuJHXF24lpFCkqo4CgVCKf0sqao9DfN6a2ofPycu7dtBN05VDcF6S4Lsepe2mGIdR7to Mfez5geOQsw+giGmDO36UmOeCCEq5WcvZZbfnbf9gJDLW5IT6IYKAnWKhJ82TZwKf4D0 GZdclU0Wn6CLaPaaZSF8tuwPExZMArekTUYD50VUgMj9aNLB9xDBwUjEi2JS0GOs5Ork hE+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=ZReZYBGsS5mYNtqYDrh+YYklkB/Yp7ikoMDuzoyx5Vc=; fh=mApZWspdLgJyL7+2Nq6QBwgNfL+aABNIzX/HIv+m/cY=; b=M3kvylA/PBNsxID83HppuQnwns3Zt1pxkGwHsdv/+KKgVZBLnhEjIosookxwSEhGXZ hISqalmBAbT7EBhjRR9sdgXOrLtFsorcLUfWxALfpMOMMtFdJhhmXUy4AR67ROIl4c2q BAtqhhnWcbPTUnYQDuwPBFOG0gMwPmFMV+cZwQ8LNfX95oTgsNs6j+3eDICxp6CfIABO 9a7BgYtlw8YfNywRWF2uTH/119MaNePlOQ94NxnIHy4n2hvtEbJCPSqll1nflqKFfX8o o1AoUEZAgNIeNDnXREibV2zoa6/m8XK0IHW0oswAANQLQK65B+cNqxSecN1ACVznxSoN 2lcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=aYtOY2Ic; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-154984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u24-20020ae9c018000000b0078ee3002f72si12055819qkk.605.2024.04.23.04.29.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=aYtOY2Ic; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-154984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4CF351C2230A for ; Tue, 23 Apr 2024 11:29:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32B9C7E58E; Tue, 23 Apr 2024 11:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="aYtOY2Ic" Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.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 2A5F57BB06 for ; Tue, 23 Apr 2024 11:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871770; cv=none; b=XCUp1rqYwOU67NwWOG8WRDciNhYPcvzm/49mV3IbVEmPOrvW6y8PYN457BIaJY2feABTJYC7tU+sWIXIr7ZQ+POndddW/ziaLebsEkPzkxzhNhKX6Niaz5AkPTd5HWty/LhVdpOkXqbkEATxO0Aoqm8ORA29iXsjajgNkLek4tQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871770; c=relaxed/simple; bh=o6YwXkKcrBip/n8XbotfTNmmwA3LZw9jroITc42suXc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=lbrpkyWhBln37/IO1WrBvXY6V6BqxafoBKYDjyvZsdgefydFpXTv8e/UEXuYe1d5/igR7/9yPWh2UeWYu7LbVWX+H7yAxIoljm9fQ3cnt4E5eroXCpSVgMFvRLamzj3PRXPxr5Piisp5RExY2NtVmRKCsOZvktUBhLH6MtAzrV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=aYtOY2Ic; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=ZReZYBGsS5mYNtqYDrh+YYklkB/Yp7ikoMDuzoyx5Vc=; t=1713871769; x=1715081369; b=aYtOY2Icr3xRWNEdXU9Bn1eBrkdhCjJNeqHGqXh6OYak7Vn FMN4XGxvXAAVr+UehdsjdLPU8yIinqrr6RXveyKTBlWz2kMfRHDrmPYE2Pr6sTpTr2JG7GGkY9G9/ gPnnflYqKY8P4nEnhzk+f5mL69okXxeWPsjtcE5fq9zZKw+WLPLWPKkE4wTY36TnBZFYZfQ8YzWdW HSH9WWIqcjffZZlRLdK22+TWBdMZZcq07aerBGdDbFt9bbtt8XSJy5OJ6t2pAk9vf4Y4e45IBI3br Oy2dRm/oxmVV0C7SgALZLPqYwCXJeJhS1cseh3a7ECSIUctIS+ejLM+uUauK5Z0g==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rzEKx-000000025wR-13fF; Tue, 23 Apr 2024 13:29:23 +0200 Message-ID: <8134c423c1a7f911cb5ae2f2e8e40e80f2e5270f.camel@sipsolutions.net> Subject: Re: [PATCH 2/7] um: Fix the -Wmissing-prototypes warning for __switch_mm From: Johannes Berg To: Tiwei Bie , richard@nod.at, anton.ivanov@cambridgegreys.com Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 23 Apr 2024 13:29:22 +0200 In-Reply-To: <20240423112457.2409319-3-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> <20240423112457.2409319-3-tiwei.btw@antgroup.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2024-04-23 at 19:24 +0800, Tiwei Bie wrote: >=20 > --- a/arch/um/include/shared/skas/mm_id.h > +++ b/arch/um/include/shared/skas/mm_id.h > @@ -15,4 +15,6 @@ struct mm_id { > int kill; > }; > =20 > +extern void __switch_mm(struct mm_id *mm_idp); >=20 Maybe drop the extern while at it? johannes