From patchwork Thu Aug 24 09:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 716519 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1236242wrp; Thu, 24 Aug 2023 02:30:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEKwZRjI7i6nmOSXCKhEv1Sfcr4fUdrLY40NLoi70PXK/ySPzpDW4Xih24h+fQVP/mtuWU X-Received: by 2002:a05:622a:191:b0:410:443:221a with SMTP id s17-20020a05622a019100b004100443221amr19421611qtw.1.1692869431716; Thu, 24 Aug 2023 02:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869431; cv=none; d=google.com; s=arc-20160816; b=VUdL8+uvybUOrxkWdZdOrye5HHguHJOFB4hLptvtNeluVsReU99dlBHOWSY7Xu57jO EW+qitpKf1g7njlY25WnxbODmONG5d3wAOSfHmMPvu5Z2/F2999ReZ5JCAECBPuZmRrV Xf6MBH+gii42hkDPMSUAM4jl2r21Shp/PsHNWGio/lqW0yQfKsnGHlczyOWyrxz1G5np Sh8u4Fp9NGYYJPFGz1Gz8BNTq3IRHaMUaVR0Bk9XLZhs17cefv4L7v2qP3exzPDtLotW /stPRNdKZxe85pRWdVIAK7sLb4vzX/KjbJiuSleDu3scll3q28lEa63QL51CixH6SCB4 061A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=L6YrIHhc5tInaHtSG+IOeZ7cliNEkq/9K95ncf5G8bg=; fh=bFDrUYhlTVi/QyetgXx/byg2+yO/22Hp9SjwoefyKLk=; b=QXes1eSNqvEIXmi+GvQDyk2G/1SvpmEwysk8zzMlnjp5awjz6TcsqLhMAypnf9RNrL eZcwRRDmpeBe8KjhA5AyoKq+5wfidLl4WNNznB1k10+6askItevfqg5pOUKIk4toMxUf ikqHNt+bV93LI/USJPaSO3Os1hz7mSnEicOlmK+1dqOXbCx0FeHp92C+ivc9u3tpK/KO zWzJGZk5Q/HdBZeBpYqNf9qAGrqNEHbs0F1MCwrBYoCVTrCljmV7dvaYyPG86FVWeL4H bSm2ogcTdSWeHpWZAaWPpjCazs2v7FJpBadZotvKJH1TGKMHPhLaZSDQ5tSJHvEb9fEu prMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Lk/K0HDf"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g20-20020ac87d14000000b0040549989ba0si936913qtb.479.2023.08.24.02.30.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Lk/K0HDf"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6eu-0008Qk-Q2; Thu, 24 Aug 2023 05:29:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZ6eR-0006JI-C8 for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:29:15 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZ6eA-0004yf-KC for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:29:06 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31c79850df5so259928f8f.1 for ; Thu, 24 Aug 2023 02:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692869323; x=1693474123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=L6YrIHhc5tInaHtSG+IOeZ7cliNEkq/9K95ncf5G8bg=; b=Lk/K0HDfYtX7U1L00Tqv5osJV5e6LS1wFakY6GDVh56/X0Sb1vvzugwnknAFXLkvVp LwF2WOoNWGZ0Fo45ztDGmDlGqP8/C+27aLPspBOhqpIK9VU5glr5rSbaVJdHg7aTUkId oSYsg7arshEoVnJMpA5zk25UKgCBPW46rsHUfpa3a96JaKaPf1oZcLEEtVYUCSTbq8lG ujPa2UzxZ68rJgOfLulRo2bvTMK5ygF7kpqBJCZBrPtboaKQN1/DHboFYr5lXBvbvpkV j0pRZ2W7rKOcAGe/besJ00/74LeeUVMhppyIpZwsC4RIo+zsQfAXCtS4Wb/40cejAMRU QNQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692869323; x=1693474123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L6YrIHhc5tInaHtSG+IOeZ7cliNEkq/9K95ncf5G8bg=; b=Ydit3eUbU2/Bfw/KFyCXkN3DPt3HDfesCMvLF30aB+UBm00GNzELL6Y/LHlCgij4Uh Od0dBeX2uEl2CpoiDm+kiqtDPF7MRvFTBh5tTPjz4ntEIHB/yQPLb2s4PNFt0q+ZDk7J OLvBeHF9av4jZAu6Aq8YsAN24QM0Z5ZP0siRKeD3u1GFKTaOUBcWQ6Ru5xwYGhOGfhtt sIH6Bbj1Z6QYn8Zl6T/KOZZ1wwQE87GsuAjGvrJbg9PGPFpPzBEHB3bODHqO5MyagDqY OMo6ilmF+JtYE1fIW37S0Y5IusCUE3dPKogSLKTGzj7BjePmZdw67MAyB372LsRZ6F5a VFwA== X-Gm-Message-State: AOJu0YwuYzxgGuzWWviyKWTKYjkogaajntQWYaUA6hReM44O42Ni36DW 07l4t8b8c4fw0rXzh50i7MUvF+28hb+9uI0l8wo= X-Received: by 2002:adf:ec8a:0:b0:313:f61c:42ab with SMTP id z10-20020adfec8a000000b00313f61c42abmr11452569wrn.56.1692869323493; Thu, 24 Aug 2023 02:28:43 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s12-20020adfeccc000000b00317b5c8a4f1sm21844004wro.60.2023.08.24.02.28.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 02:28:43 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 12/35] accel/kvm: Make kvm_dirty_ring_reaper_init() void Date: Thu, 24 Aug 2023 10:28:13 +0100 Message-Id: <20230824092836.2239644-13-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824092836.2239644-1-peter.maydell@linaro.org> References: <20230824092836.2239644-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Akihiko Odaki The returned value was always zero and had no meaning. Signed-off-by: Akihiko Odaki Message-id: 20230727073134.134102-7-akihiko.odaki@daynix.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- accel/kvm/kvm-all.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ed30f4135b5..d07f1ecbd38 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -1454,15 +1454,13 @@ static void *kvm_dirty_ring_reaper_thread(void *data) return NULL; } -static int kvm_dirty_ring_reaper_init(KVMState *s) +static void kvm_dirty_ring_reaper_init(KVMState *s) { struct KVMDirtyRingReaper *r = &s->reaper; qemu_thread_create(&r->reaper_thr, "kvm-reaper", kvm_dirty_ring_reaper_thread, s, QEMU_THREAD_JOINABLE); - - return 0; } static int kvm_dirty_ring_init(KVMState *s) @@ -2744,10 +2742,7 @@ static int kvm_init(MachineState *ms) } if (s->kvm_dirty_ring_size) { - ret = kvm_dirty_ring_reaper_init(s); - if (ret) { - goto err; - } + kvm_dirty_ring_reaper_init(s); } if (kvm_check_extension(kvm_state, KVM_CAP_BINARY_STATS_FD)) {