Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp595792ybl; Wed, 4 Dec 2019 07:49:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy7wsujXEqwm8FqrOqkZ1XVSk5uv0DVEOReENc7vqEhuLvyDoII9nrFYc6dmAB2WhHegz13 X-Received: by 2002:a9d:6251:: with SMTP id i17mr3132716otk.14.1575474582140; Wed, 04 Dec 2019 07:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575474582; cv=none; d=google.com; s=arc-20160816; b=gE8fWDXcQFIMpwf71fsQNdyB2dIk8XJZGKpt1Mumcze0iieooIs1HdH5V/o4yR36Hx TwjYwBNRNfpo4B+GE6JuApGWl2aMiLQuoRDn/BBTTfhVNxh+FXi42kWmA8p1DKinxa48 oS8vdgUCy44oB/u6+Cuo6SI6Eo4h6tJvZfeybYaDilXU/58vCJ7iirWm69GqNH46JbaB LH+Ekd1orphu3+pERviU/q1rJgs1aCac1Krel84oR5QOqA55Tdj6B3xgWLLXu/OeLg4d Xp1B0DuA205u7yhs04YCED4+VrMbWnW+kzKLFUgbx4Wd+u7nuvDK5nEnWLUY65czxpOV +/6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JpDNGnaXwkcWb4OqMO4sY3OzA9+qHY77UsQ1KQYrk/U=; b=Gs+KtSPmzaD46q5WUNir71q4iCNpQoasYLOPpxWurrviRw8wilkcHc6j65Vv8TVHpM ENG945QoYhggBKowgc3CV+sYzhkSYT0zih2io0zOWxPvg6L+f6SQE07lSsxz/nS2WzRb zBfpEDbKvJAUDBE3r3jLS4losvkXgNj6i5MuGcS1CmJ4vWMdzlagmc21ujCWHIfUXlmr YaQAjzUldQcUZyqLfsNP9mzJuwguHuiBc2BI+TBXXju36dTMFhLZet/3SGPTBu3m0TNi SA7S2kv8MMaXuORDQ84eq1w6n5/VL5AJEMsxDo4uLgs+Bl7XUFUALLtUE5SPcDjKSx/6 9kdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LIRY5QDr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si3550500otq.144.2019.12.04.07.49.29; Wed, 04 Dec 2019 07:49:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LIRY5QDr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbfLDPJh (ORCPT + 99 others); Wed, 4 Dec 2019 10:09:37 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:47345 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727910AbfLDPJh (ORCPT ); Wed, 4 Dec 2019 10:09:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575472175; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JpDNGnaXwkcWb4OqMO4sY3OzA9+qHY77UsQ1KQYrk/U=; b=LIRY5QDrtVHlIMNcMO9elA3YVX2YaiP1YCtKSrzENkOfcgFxFPx7YgPAyd6kf+ee5Qavqw MkvjmGkbmUv47/33fkHk45eFrhx2nsRi7D4y8pfbOGBgW3AFeoZwXHhNH4kOq0C+rpwKW8 uZrZduF/STo8RcGSPNu7xwd5CHQIIXg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-Lm1CiUrXMdCtDnXyrPgbkg-1; Wed, 04 Dec 2019 10:09:30 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DF22A593C7; Wed, 4 Dec 2019 15:09:28 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.44]) by smtp.corp.redhat.com (Postfix) with SMTP id B9E38691B1; Wed, 4 Dec 2019 15:09:23 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 4 Dec 2019 16:09:27 +0100 (CET) Date: Wed, 4 Dec 2019 16:09:21 +0100 From: Oleg Nesterov To: Andrew Morton Cc: Andy Lutomirski , Borislav Petkov , Ingo Molnar , Jan Kratochvil , Linus Torvalds , Pedro Alves , Peter Anvin , Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 1/4] introduce set_restart_fn() and arch_set_restart_data() Message-ID: <20191204150921.GA14871@redhat.com> References: <20191126110659.GA14042@redhat.com> <20191203141239.GA30688@redhat.com> <20191203141305.GB30688@redhat.com> MIME-Version: 1.0 In-Reply-To: <20191203141305.GB30688@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: Lm1CiUrXMdCtDnXyrPgbkg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03, Oleg Nesterov wrote: > > +static inline long set_restart_fn(struct restart_block *restart, > +=09=09=09=09=09long (*fn)(struct restart_block *)) > +{ > +=09restart->fn =3D fn; > +=09arch_set_restart_data(restart); > +=09return -ERESTART_RESTARTBLOCK; this needs include/errno.h (thank you kbuild test robot), I am sending v3. Oleg.