From patchwork Tue Jan 23 11:03:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 19317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp264352dyi; Tue, 23 Jan 2024 03:24:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHePx/POZVauumIeGcSgY15+ev1FSCEKVz6fCwmYxxeQK8oH/sBCPkJBAFGdL6NSOvsW+pz X-Received: by 2002:a05:6871:7295:b0:203:f3b8:411f with SMTP id mm21-20020a056871729500b00203f3b8411fmr1646324oac.20.1706009059104; Tue, 23 Jan 2024 03:24:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706009059; cv=pass; d=google.com; s=arc-20160816; b=iReC+ST877zOFRiSzA9sDR0SoOKQlSaUfZGVvuToF3nqeRDumLOli7b/FWLgHvIeOS qQtzR9ieeceom7OsYbHIv5ydhfP2BsCsFSMpa4R95Dq4mzsTDu7H/RG55jBcyjeS/qJq r9AOxbqWAU7DL4+6KOfMmpkV/de4obBY33DFzqX1qVsymDMwsthZ/7QftBVybJtVBx/s 5nIQ8xZAZjw4+HsTbXXqMwgcjP26Q/6MZdsRMbb31wPmmDilyVWUnwAH87XLlA2HtjCg tely0yVF9l5NEtPUzohMajOKRtnO30GONI1be6Gz9Cq+lDhuXQVfrtNbL72B4X4KCnDV moQw== 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:message-id:date:subject:cc:to :from; bh=3IZ1picJ8kSIWKUpDdTkrsS1CXDAKSl/yzg+DV4FTBY=; fh=2OUCyawv763RJuh0tp1OY7aBUf41Q8m3nxrITJmYLpc=; b=GGTNk8DCtwFpis/K1ALYv2dmOU8mh7D9/z6JVwMYp1NOk6o8miur9LjrADD0uiLM1o WC7RG2usEoHwuXDkYUu9s4qT4PMslYTdCb8hfo7zNs6/wivARjlSIvf7v3ofZ8OVuceE 4aKAueiWUCXCL6CYJ6FCtzzADbGvshc9MzErjv0CBbbat+Q0PRaqprelQTIIRBjZFYgE fZS6fKcnD3NWOOjciTYZG76Q1zyq1cWgqAoABtxqTLsiqmcNdfHjPAxrV52zOuMwBPEx 0+GeiOPbduljcm7lMm2xD1qWw1W+X6uEPB+7EbwGCzTaoZLHuUde5AtRfyFffQ9q7I6Y akmQ== 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-35169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35169-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l184-20020a6391c1000000b005d3faa6f7fbsi328481pge.383.2024.01.23.03.24.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 03:24:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-35169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35169-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E911B27F0F for ; Tue, 23 Jan 2024 11:11:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4475C5F850; Tue, 23 Jan 2024 11:09:25 +0000 (UTC) Received: from out0-203.mail.aliyun.com (out0-203.mail.aliyun.com [140.205.0.203]) (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 3CDAD5D91E for ; Tue, 23 Jan 2024 11:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.203 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706008163; cv=none; b=HlaaWpnCHEhnI9YpdgXeXTF1w9NwvSxWGhlkrcjh3UfdLsoV36O0G4vnhDflD/mzXu3khB0SmT+Or2bmEs2FEHKj/OIlc58BrbXxviSYqYAQsVpYT0EOhexid77p2Z3PfN14YEfW7CJGADnqIGqDqisiHSroUig4U49hKGWtS+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706008163; c=relaxed/simple; bh=Z5e940A58gW1sYAm3DdoIAB32t7YxtpAzeJ2S0iFi+I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=l/JG0N4Aa9/vAM1XZ3MU0fem22hj3IASjgSSpBVX+yWbnlyE5mN67Mpx+n+wMDVllrXOMeYrgLRvW+ptCI+6Y/1uozFTH+5Eu3pxzB3nhAnywISv9ARBqRUsmYnwanhwbms+ZTHRfxHyhoKZi68rsM9GA0Bo9T8JjD5qEkzG94M= 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=140.205.0.203 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=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047209;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.WDCKThV_1706007828; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.WDCKThV_1706007828) by smtp.aliyun-inc.com; Tue, 23 Jan 2024 19:03:55 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 0/5] um: Minor fixes and cleanups Date: Tue, 23 Jan 2024 19:03:42 +0800 Message-Id: <20240123110347.1274217-1-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788880155286584929 X-GMAIL-MSGID: 1788880155286584929 A series of minor fixes and cleanups for UML. Tiwei Bie (5): um: Make local functions and variables static um: Fix the declaration of vfree um: Remove unused functions um: Fix the return type of __switch_to um: Add missing headers arch/um/drivers/pcap_kern.c | 4 +-- arch/um/drivers/ubd_user.c | 2 +- arch/um/include/shared/um_malloc.h | 2 +- arch/um/kernel/kmsg_dump.c | 2 +- arch/um/kernel/mem.c | 2 ++ arch/um/kernel/process.c | 34 ++++++------------------ arch/um/kernel/reboot.c | 1 + arch/um/kernel/skas/mmu.c | 1 + arch/um/kernel/skas/process.c | 1 + arch/um/kernel/time.c | 6 ++--- arch/um/kernel/tlb.c | 7 +---- arch/um/os-Linux/drivers/ethertap_kern.c | 2 +- arch/um/os-Linux/drivers/tuntap_kern.c | 2 +- arch/um/os-Linux/signal.c | 4 +-- arch/x86/um/bugs_32.c | 1 + arch/x86/um/bugs_64.c | 1 + arch/x86/um/fault.c | 1 + arch/x86/um/os-Linux/mcontext.c | 1 + arch/x86/um/os-Linux/registers.c | 2 +- 19 files changed, 31 insertions(+), 45 deletions(-)