Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9104629pxu; Mon, 28 Dec 2020 06:45:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwS0ZwQdLG/S+ED+/TXizauR0L2kINukb/h6rm13nvY0IaoRDTdspHjAu6Bi93URe9NhUtO X-Received: by 2002:a17:906:94d4:: with SMTP id d20mr41549975ejy.475.1609166718040; Mon, 28 Dec 2020 06:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166718; cv=none; d=google.com; s=arc-20160816; b=y9VGBJM7WyWhWrr3KnnXG+iK1DerU1hiHc02/yEUh3CPPcBMW3lz4J9I0Dqdxt3JN4 7ns7lj+xPPRgPTjhSEPJCKpu2I3/at8+afo7JkMUDvcIDl24Zim0RPRZimlAMn71CFfU ZkUDcLue4GFECB2u7INp9i3uZ8ZkuCNXImMD/458kLuRLhJJfMFLven3+67Bnmw5sEzy HdfDSjQ22uOinvr1ATXvP8jP11aWov2WP7Ubx2UTi1anc17Al45GzcuBOT5HZzWQJqkl sz0mx0+3dYmlJKbAzx5HL64TXjs47VOnQbr8TNAPa5lLZJjcBwkSMDxOFKSGmDJYnHdC /FEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cp10mi+IvvCv7/iP5znm6MOEA461pddz2oyuFAh7Suk=; b=obhrSix+q92QS31PLzfgtousInV3s7y5sJzMTvv3TTMC5WGtpML/11lAUaxdkpf6Dg cqbGOs6CsnZLzUZXMr9yXrT7B5YXudusBiXY9nhH7u3Fc1lDeflFjAXYMk2Quqso91uL fJCb6Ve5Bfon7/IYisWbL67WwXepaqh4YHnn6pVwwN6gegMo7IQmlGh7jBHSH1/z9wg4 yVIfIwWHgO1AUPYnmpIwn5s6g6ejtKsf3fSKEIiYh8dgRw4z/GpYDtYClKQ1ifgYxIzw lmMIpUvxUyZLjQQdUt7LEl+Nu6rw6QyboBDGJHk59Cfyj1ja7VsOqjif4xu+BMx6hTnF Kz0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ABS9D5Ur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id np6si19026548ejb.609.2020.12.28.06.44.55; Mon, 28 Dec 2020 06:45:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ABS9D5Ur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502420AbgL1O20 (ORCPT + 99 others); Mon, 28 Dec 2020 09:28:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:35572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502416AbgL1O20 (ORCPT ); Mon, 28 Dec 2020 09:28:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 413CD20731; Mon, 28 Dec 2020 14:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165690; bh=q6i4Ow8AMMpZubhmhAaspN9L7Mzo5N5MGBIE6unncE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ABS9D5UrL6fyA6BeD13i3QzsCwb/DW0+uuVTd5uOy81qpVMfjVjMlTUizYGwVRGtB RXvTTUeCaryPgbEpCz9TNFIu6ML3HYVYX7RxdBEjMdgQf1yWjRcIlytKrzf537407M ofEEpj2Ygwg8Rd63fmcZqle8yd/QzYED604v1uxk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Richard Weinberger Subject: [PATCH 5.10 621/717] um: Fix time-travel mode Date: Mon, 28 Dec 2020 13:50:19 +0100 Message-Id: <20201228125050.679669671@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit ff9632d2a66512436d616ef4c380a0e73f748db1 upstream. Since the time-travel rework, basic time-travel mode hasn't worked properly, but there's no longer a need for this WARN_ON() so just remove it and thereby fix things. Cc: stable@vger.kernel.org Fixes: 4b786e24ca80 ("um: time-travel: Rewrite as an event scheduler") Signed-off-by: Johannes Berg Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/kernel/time.c | 5 ----- 1 file changed, 5 deletions(-) --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c @@ -260,11 +260,6 @@ static void __time_travel_add_event(stru struct time_travel_event *tmp; bool inserted = false; - if (WARN(time_travel_mode == TT_MODE_BASIC && - e != &time_travel_timer_event, - "only timer events can be handled in basic mode")) - return; - if (e->pending) return;