Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2062007lqb; Mon, 27 May 2024 06:49:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSVx7mcwnmAfIYKh9wfEm4K97b13+9LBN37ofwwn0usAxRE7kfk8XyTQJb3ItlATldx7YcMRnVNElYe8fhusMPW9fDHCWhd44PE+6PAQ== X-Google-Smtp-Source: AGHT+IGnkDr7ONYjmgHMLDzVXKq3XHeHR0pwvaZ2oUtU+9+us8nrK4YusTh6blvYu521iUlE++EC X-Received: by 2002:a05:6a20:d48c:b0:1af:9369:9a3 with SMTP id adf61e73a8af0-1b212e02f73mr11763355637.44.1716817780872; Mon, 27 May 2024 06:49:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716817780; cv=pass; d=google.com; s=arc-20160816; b=beriwcEjLB8qhlrfpiBso91buSnk7o6XtetZBYwQnU5O/qaCauf9nfKF2O84aqz/Bv rcetdxUpo1eWshrx3Ir3j5ho+WtMJTyH5Q4ka9KAcNXlPYNhb/UurmzPaVA/CLFj5wAK 4Dg3Cd3UfxOLTddW7asikWiHLBIpq5dXlVFyw3dtMXd14r3jbBqqG6nbLGS1V5lbajJR 4lWvjlk93B9v8ooinzqhQHy2+hFTfTv8dWuWVJErbOS/TYZbbREzwJo8jiefz/0mUe2K p6L7aT9EqrVzEDpQF1lcrE+KLXpk6rRXPwJdhhxVXS3UoLlV02WirL8yTnGZtTvKVOVv aGRA== 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:dkim-signature; bh=98TUkS0b+gRj1ZLjZVnojSNV/GxHrgmcGS9QODi+eTo=; fh=2OUCyawv763RJuh0tp1OY7aBUf41Q8m3nxrITJmYLpc=; b=NtP4y0/zl5G9vGEtOskES2aIuYjxnfIXhpDHKqtxgB67gIOqH10nvDHXOW/hfOwsQQ +ECNiJ3ZSIDxyARV8eyir532lMc4dzdUQbHZxv/7rwLfNSgFQWXe0vtOoNWSj1lTmh6l yPZZgDSCt8ZqcmZFh5kuTyDFQCtLH6r+gSzP5+00nfPNoz8vX4jTwvtDnH5qZQESNUXP KT3JvlRnu76LThzdeECeniv9Fnsm3naaez+XLEC/pTvZIN0lLEZkenO/LQlR3AJPkpdl CzhP2wzYhcsAEEEMJwJbwLQEk9UrMwODiPFjRli0ftKDmJ7pnrnk/GDeW4NwotviJQ5A j9Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=0PU3lNHz; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-190743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68222ea6496si6466843a12.241.2024.05.27.06.49.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 06:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=0PU3lNHz; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-190743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 A04A3289834 for ; Mon, 27 May 2024 13:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E761B15F3F4; Mon, 27 May 2024 13:40:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="0PU3lNHz" Received: from out0-198.mail.aliyun.com (out0-198.mail.aliyun.com [140.205.0.198]) (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 CF46513BAC2 for ; Mon, 27 May 2024 13:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716817251; cv=none; b=StR/bDcBuRedcvxM2FDGQb4rvj4cc7/rpUMcLLn6HBDyKcIYBZnZ6Sqr9OnNogcTNzvVxs20acsCbcXBgbdQvd2U0mXsSAtlwzevTQohqyI4225GRka99fzMdsoUo/91ssyu0Vof0eNiSM7US9OGfTfZXtHzOvEZuW7cS8Moc7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716817251; c=relaxed/simple; bh=QKpX0bSGLsdAjVTG0scQJ+FLSyArjYLDTHJbZunjSH0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ILQaTyOtjfKxXgseSADtWy2bVm/iH6437QavbTnCUieqZtWAEkIKxIInJtTjZGN7ya3XZmw0/nzHP+ljhtnFg5leWhy9HqK1B+WiischNAngCNHleZqXRrXwQR7DIkKqboLYCN7MYml1T3lEUzYZyxE0vbiafhz3rBV1gataTo8= 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; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=0PU3lNHz; arc=none smtp.client-ip=140.205.0.198 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 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1716817238; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=98TUkS0b+gRj1ZLjZVnojSNV/GxHrgmcGS9QODi+eTo=; b=0PU3lNHzuYsVyQkGbjR2E9UsdBnYcy103Qnc0YVkbacLCQavUKKRhad6WbQ0K2b+YcE3hP1W+vVn6nHw84+DEbFY5m5ACqQd1OS6avG1AIdxmkdrZIqqWZfkbdKGvkPKoOP930xfUqghDO56vysxvFzHOWV1ZSbr9kvFCdCzPmw= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033070043001;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XofsrHJ_1716817237; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XofsrHJ_1716817237) by smtp.aliyun-inc.com; Mon, 27 May 2024 21:40:37 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 1/2] um: Remove unused ncpus variable Date: Mon, 27 May 2024 21:40:23 +0800 Message-Id: <20240527134024.1539848-2-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240527134024.1539848-1-tiwei.btw@antgroup.com> References: <20240527134024.1539848-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 It's no longer used. And uml_ncpus_setup doesn't exist anymore. Signed-off-by: Tiwei Bie --- arch/um/include/shared/kern_util.h | 1 - arch/um/kernel/um_arch.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/kern_util.h index 95521b1f5b20..d8ffd2db168e 100644 --- a/arch/um/include/shared/kern_util.h +++ b/arch/um/include/shared/kern_util.h @@ -13,7 +13,6 @@ struct siginfo; extern int uml_exitcode; -extern int ncpus; extern int kmalloc_ok; #define UML_ROUND_UP(addr) \ diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index e95f805e5004..8e594cda6d77 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -126,9 +126,6 @@ unsigned long uml_reserved; /* Also modified in mem_init */ unsigned long start_vm; unsigned long end_vm; -/* Set in uml_ncpus_setup */ -int ncpus = 1; - /* Set in early boot */ static int have_root __initdata; static int have_console __initdata; -- 2.34.1