From patchwork Fri Feb 2 04:02:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawei Li X-Patchwork-Id: 195557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp195579dyc; Thu, 1 Feb 2024 20:04:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGc7U53POunliFmVAc+6PXJPwk0KUkECcIUpUPH59uCbwaFFweGORt9MSxWj8Pn/l64tWCy X-Received: by 2002:a17:903:1d2:b0:1d7:17e6:44fb with SMTP id e18-20020a17090301d200b001d717e644fbmr1520302plh.32.1706846655689; Thu, 01 Feb 2024 20:04:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706846655; cv=pass; d=google.com; s=arc-20160816; b=zJpOYNHeBf2/Dhc+p5FF5ccTH7pn3XJR29JafUnAFLJze4CgmNdvUNtNEzlGi3gBmb WrBmJhmBZHSKd8CVghGMrfDkgSpKDtF+9dbyFKvZjU1H0C7HTYautIviRjJ5wj+4Xnhy kaj+QPyAd2/kVxur/NRgCrgH3gt8HypvTxdE3C55jiTCw2wksGKktAE7LzF4pTn9OgRb Oq09pSFeiDtjXiXmQ0msjBCZSF+7/Cq03F38cnlguaUozZ0eO5tO9hX+N4owNE2TX2TZ RerqLQNoewNYeROJSw8Y678ITA/kyetrSbjU/o0rcZV1A7x4Nl3h6uC63A/KnlaGqROE cXWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=wxq2R02o8K5KYN+Kx9F9QoTQre4VJblZqXKPE982UIg=; fh=IqmyfzG6PcpVkjUK2XavmZLgOU0KBpIU7M7inWW2Qfc=; b=kcIfUppmo4sA/QA9pJOu3zzVs/6n97N/DMI6ZQQJgjOBaevAwau69TqdYFX9bpH/3j HNKjFYsN+PPmY+vFCXw8xCEpqw4mP3ttyNNMvCvNvW2kdiwgap3qVs/fp6THv3JjeOV6 8kYn8WiSz0GdTvf9nR/2IUZf5H3U6Mp42VDtkrl4Eehb4iq9OatS5f7bR8I0rnDWtxsE lxbbgFFXxUkDeEpxeM1U/NIvZ0CrrxQnqcVskrl0D/aTdRF4DyRDiA4l7Say6OPq1X27 ZdIv/bs2w6eoJG5IW4bpSOgWmnSpWkxQM95DYRUWUQE8MNC9Jogf9FxDmIXc06/YNBC2 kEOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-49167-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49167-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCU3hn+a6ieu41R9u2bACbKJmKohHlU1EGel88vcMU5vElj2rMqjq9vxo3588nXGfBsV+286h/p5cJf9FBP78Ea3qcBk2w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o11-20020a170902d4cb00b001d8da5f6d4fsi1055250plg.114.2024.02.01.20.04.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 20:04:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49167-ouuuleilei=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=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-49167-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49167-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 5C617289359 for ; Fri, 2 Feb 2024 04:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26B07F9FF; Fri, 2 Feb 2024 04:03:42 +0000 (UTC) Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.67.179]) (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 36062E541 for ; Fri, 2 Feb 2024 04:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.67.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706846620; cv=none; b=l2xz2iYFZ0DXxh1HPZhsFqW9lNZboyt1s0nrm+2sRcB2OjRbDGEscvRRKMPIc/Ftt1TfB5DIw/bD2cZyaaPTZUKwLn6PO6oNZPKxf4qfFw0VnEVazHMP9EfDhZtyGNTpT9Wykv+OJpL4t/EyjtMJrKEtAE3lBLHtU+hpSesr3PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706846620; c=relaxed/simple; bh=+Eo2dwljZcW5uV4yjXoHiFKq3QU2j3mrhDikr579ado=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bzLwBqmBONL90StqFjLc/dhbZNRwl4VXVwzHmn8yFMwHNRxeXNeG9osccmAO4lczoICfOc03jmv8yKFUguM8e7mng4E+KX28jnpzr7Fea96c1BeX0R76xwm+nr0RW+VDerXkGbuUt3mkiLPEjCtdMfADDqfcdvElpQZy3j+I5gg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=114.132.67.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp72t1706846544tpicfqcy X-QQ-Originating-IP: Aby11FTS8fbag06Qy9tbwzEEl2YdZgrNCtLGverTmj8= Received: from localhost ( [183.209.108.228]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 02 Feb 2024 12:02:22 +0800 (CST) X-QQ-SSF: 01400000000000504000000A0000000 X-QQ-FEAT: W+onFc5Tw4OrFz6v/gvbEmaS1UMOWtNxM4tOzgs1lH0rkHYguDEySueuhAkfE mQFugpbemCJRHgjBaaVvk3Go474QHdo/bD5In6Cv03LAORRYTgtvxLAlygeNJ1A/bNTQhTJ oSQHA0+PMEEcNqJbCTq7njG7d4qU3oa3lIm21kj4t5T+f+5NtDb8Ix2E+LgRlzuvDjTEpTO 4YV3/paMc7I6CTdfznQePEwm0jo2GbWROPnTNLm/pGg2VXYOKMSFUp7mYiIVJlBT0Ttm51j /2xQOohz56PBwubBE+eoBa55SsfTO2q0IuC835IITfWrZKkTZh9olgM7kbkVEYx103xlT+w IhiZOpqlV90I/MHBp816VkZjJrssDvQfSgQq6b1m1wSwMTw3hbCoT0gcn6jPA== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 5419536639946482779 From: Dawei Li To: catalin.marinas@arm.com, will@kernel.org Cc: mark.rutland@arm.com, mcgrof@kernel.org, jpoimboe@kernel.org, j.granados@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, set_pte_at@outlook.com, Dawei Li Subject: [PATCH] arm64: remove unneeded BUILD_BUG_ON assertion Date: Fri, 2 Feb 2024 12:02:11 +0800 Message-Id: <20240202040211.3118918-1-dawei.li@shingroup.cn> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789758438927847178 X-GMAIL-MSGID: 1789758438927847178 Since commit c02433dd6de3 ("arm64: split thread_info from task stack"), CONFIG_THREAD_INFO_IN_TASK is enabled unconditionally for arm64. So remove this always-true assertion from arch_dup_task_struct. Signed-off-by: Dawei Li Acked-by: Mark Rutland --- arch/arm64/kernel/process.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 7387b68c745b..4ae31b7af6c3 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -290,9 +290,6 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) fpsimd_preserve_current_state(); *dst = *src; - /* We rely on the above assignment to initialize dst's thread_flags: */ - BUILD_BUG_ON(!IS_ENABLED(CONFIG_THREAD_INFO_IN_TASK)); - /* * Detach src's sve_state (if any) from dst so that it does not * get erroneously used or freed prematurely. dst's copies