Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp605448rdb; Thu, 1 Feb 2024 20:04:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiw+s9XNoSjuKwJu/4ILnJJasD2oV9lm96uTIYQTANXiMjsu/qcfTmvEecsHzTvzCHhCd3 X-Received: by 2002:a05:6a00:d4b:b0:6dd:a055:63a8 with SMTP id n11-20020a056a000d4b00b006dda05563a8mr1332299pfv.14.1706846649020; Thu, 01 Feb 2024 20:04:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706846649; cv=pass; d=google.com; s=arc-20160816; b=wum8YQRMJDiwH7z5n5chePzsSsm4U0vgnjWEjdGbaoS//NxNBVA8xRAYjhPZlynDnK lnYBR3Xfloqm95CL+oGxq0VIjWPgfFJDaqUuEAGYioHORmRLlp5Dx2QJg8A3ZqRn2i48 X2IkfEtjtDVIEjQ+LVFhkCm6Nyni1d9Gbgg+sN9+pFcMCx4QqisVIrA1kSoCG9Lj1bXa bW6if64ZuuVBH4ONufooJEJUNIl4nLwXUIjnPl5jQqqbKQ2XkOuqqfp2H4YPbVGZrye/ HTO+Sjdk2h+cF7at1BU7tidJr7PIbvROXfhnzI85GN/fnyFKxbd3lhfuq7qZbaQOKwtw WErg== 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=crnuK2BhRpxf85uVvsyeGbyWvFtdk5jEfMzFvxOJAro=; b=xnxR3Glj/Qti7iojIfS2cQIKxmYmR4BUWcy4Auu1LoQ8G6q8fQIqUYbMBtNWuHzWKv 3EPd820yY0mRUJcV1z5THRFxxpTHIYg4k5oBk+XJFH96+0cCta9ymcT/0+HwJmmoMIMR MexVAL78eqLUZPgFeaFpMJnWnYzASFHiTaa5NxjyUe/pCexFybEGfYZHLPV/l0CA/V7L /wvFXK/lYNf2RSqywbJuR9x4u+nb3a3FUp+vG7i2C3xZQRbehdwz+itrt2sOtarovLe/ htMWlq+tL9LXCTXOUEWDl9P6/X4LQGSIGomrBRKDYrXP8DgT7cS6Mn2cWG/EtwFTZFm5 fk2Q==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn X-Forwarded-Encrypted: i=1; AJvYcCUe0Yai06TDWABB2rocELDe83ZaNFl7GeCFW86w1bUoZwq8LrHAb0bTXT6FGUAZdvuTQu5hfrT/ZMK1b/wsCnVGDaJptBtaUcrpyDju4w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y18-20020a056a00191200b006dbe92f12dasi828972pfi.375.2024.02.01.20.04.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 20:04:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49167-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EDCE1B21E0E for ; Fri, 2 Feb 2024 04:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10AE3F9C2; Fri, 2 Feb 2024 04:03:41 +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 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-1 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 --- 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 -- 2.27.0