Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp40623lqt; Sun, 17 Mar 2024 23:55:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUc4t5/bpKHAa3aX5W7z41c1Wam0MW0u7YE/h+lsPZs4RSvLqa2sQ15TmhCKu1sF6tcxTlyKDYxNgrBDihC262PNWHCss7QAxnmVaKrog== X-Google-Smtp-Source: AGHT+IE22nA9rWd1EIkfx7RKk8Kw73B7PXtLJVTjib49tVe1kJLzbtTt8YpkGiCEK1gQUEL2OMlH X-Received: by 2002:a05:6870:fb8d:b0:221:9315:a4e4 with SMTP id kv13-20020a056870fb8d00b002219315a4e4mr11081299oab.11.1710744921878; Sun, 17 Mar 2024 23:55:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710744921; cv=pass; d=google.com; s=arc-20160816; b=PbP9oj4KAIAVbpr2j1i+MnfYjWXNwQ5P9ve+IZdlsdtvrLeFiMIKPeKaO7vj9R5TrA Ur5qWke8vBzQTtKhy/RXSuM2sUWO2IhgN7+15SIc24zPgdoFGuzUccQJxHYyTOo2+3ul 2gJ1UfbLna7vlb6gW+jybDLWszcW9KLQjRQZiCBdM5KOcgZlsFiybGZ9tUGfVf1lhvzB cSpYXEzejMZI550dLIhcy4ithARUzfJsS5aCACOm/5XTpCpjhVg+tKMFWUbI4VX8B6Ov yg5aJREBSaC35+V+ZEWSTCGtCLvyq8BaMZOkYEgoXuQ1ECq1RxutdBqKq5c0XQrNBqXN KLXQ== 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=ZiFp8DRAJbNP2JCxtq0KxvK4TjOX3hfZ24e3zhp7Udo=; fh=t8XMXgM9z52hJOznPekg0Ceh1jHcTnYXR1lZ76mHCBU=; b=W0z9v3DCEDin62cA9JkOgJisnBcUR6I2BmDolIUo/NFpBW0bKolu+ob+W2hndz8qFV iYSAhBCAeEoz5LAS2naoHNEEIQDTMI832KewGNe+rR0tnEHa5Gi15cjo4rA3dF2Bk8fp QmF8eiK9wC4wSaeObR0yrWpEiiGDBSJzOSlFJeRxalAzQ//QNua7gQ2ppG2WCIF9qmFS yFb+6hUTx9grQiEdoROk+sw5ctWWm8ys9f2w8Em9Hq1zJUSlUO9wONVdrpodCkg+EBwn AaXOK3bLsbJPNRFk7T9mBTe5izFBjuZTBu1sXL5qFrbvK0gL+3okLgpEVEoSswMOcvoD kk7Q==; 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-105752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w62-20020a638241000000b005e838a81bf7si3765923pgd.480.2024.03.17.23.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 23:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105752-linux.lists.archive=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=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-105752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105752-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 9D935B20AD5 for ; Mon, 18 Mar 2024 06:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A338C2263A; Mon, 18 Mar 2024 06:55:10 +0000 (UTC) Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) (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 B7BF022612 for ; Mon, 18 Mar 2024 06:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.206.34.216 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710744910; cv=none; b=irZRwEiy0RrCG0Y5ZBzFzgNKyfKG+EjxCkM2Gps4lolKKoIxxASIqQ8G13y0Ll19udZCjd39+YDZFARyotfyH/IMVbKypOHMB3VXEGwEfNs/E6hwPFAQGTaO7KIjsUsGm0JzvqPOw4e72S27/YsbGP9y9brTjoFze4owO2pxeq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710744910; c=relaxed/simple; bh=540CYIWp3OBkTR2JQL/pJUtoqDFk8g79k7lECsKKlW8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZuFZmAIJbw0zlRK+PQ/TTiFHuejIxbXhiOJCs2QaXXCs+YkhdCfMqZn9bQuxBlA0adGHfi7OlNprwtS1DQm8FO6OwATfBFpj1vQWoQsyt+9L3YHr86gfIjJySgb75Pr5+VaHdP5zNZnaiAcOdeNV83rmvpvOpnFdcKaA1CjrqAw= 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=54.206.34.216 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: bizesmtp67t1710744854tfxcwua3 X-QQ-Originating-IP: mrevuy/Rs539dEBlGNPPK3F3bnF1JYIlXxZ0h2VzWw0= Received: from HX01040049.powercore.com.cn ( [116.21.68.104]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 18 Mar 2024 14:54:08 +0800 (CST) X-QQ-SSF: 0140000000000090B000000A0000000 X-QQ-FEAT: LE7C6P2vL8S2AsPvDMxMsr7RnQBDCpTCdqZRGD02RV6WKILltgocXch7agQkR OKeWW5jdgoxVH661xRpnaGH9wX5ng4BBorVUtQAEhdo2EL8BWGNdwBuJ21QafppND8J98vg fVvjpZRwxR9yhn86JY0pLCpGWwhGiol6lBtFouRW6ilaNffNqLF737/g0DxEEYsBcMgDhQG 5b3Wn4rBPkyp3irnHrJZLdp29vZMmz5RjPuSsFt6gPF5KHIgUa/8+dMHWnT40HIY4khlCwc Qte7n8jZQ4IftAuaI7wD8s+Ay66+ZM04f/5h38U0Wxbn4CgCaWYj7sDRTqVBLNjPHzERNCG EF9IrHjG7ZaLE9G5paFL5WCra9OC0bdspBtkE6cf+iaFOT7Zm+DPz/sDhynww== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15004159612326503418 From: Zhao Ke To: paul.walmsley@sifive.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, dawei.li@shingroup.cn, shenghui.qu@shingroup.cn, ke.zhao@shingroup.cn Subject: [PATCH] Use bool value in set_cpu_online() Date: Mon, 18 Mar 2024 14:54:04 +0800 Message-Id: <20240318065404.123668-1-ke.zhao@shingroup.cn> 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 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrsz:qybglogicsvrsz3a-0 The declaration of set_cpu_online() takes a bool value. So replace int here to make it consistent with the declaration. Signed-off-by: Zhao Ke --- arch/riscv/kernel/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index 519b6bd946e5..3f7c274653ab 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -229,7 +229,7 @@ asmlinkage __visible void smp_callin(void) riscv_ipi_enable(); numa_add_cpu(curr_cpuid); - set_cpu_online(curr_cpuid, 1); + set_cpu_online(curr_cpuid, true); if (has_vector()) { if (riscv_v_setup_vsize()) -- 2.34.1