Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5211905ybl; Tue, 10 Dec 2019 02:22:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwRNoLI5GMlI7ZRl5TT8inncnkWx8hUyeotLdKf4+KLkfPg0odMD16k7nub09x2XmFwMNsR X-Received: by 2002:a05:6808:4c7:: with SMTP id a7mr3275671oie.83.1575973374868; Tue, 10 Dec 2019 02:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575973374; cv=none; d=google.com; s=arc-20160816; b=E1BictxELllE5m+aYK+7rP9ATwYlIxVjcB8GyKNES/JRTCa9SbzzCbwQDz5mhbID40 MQcVEJELOrIz8MS1hgOuOIBHs5I/zF0VaYoYuhc3/5svQojGqmHVf5jQjCGL/MeYHGD6 tcQu5aMccHlvUpfx+c05Wqs54VlfnnDTdMvkblnUDyv/V/JRJDSbdwBGJH5aevEcgfFn AchKxopyxBcodXjzgIqhbR6msXW6Ieb1fMQ7pGiT500uxjn1ze+dtUo9gE6+XEp8+4iQ cKbvlO0in3CXPBtQg7IxsZrT+Ye0yJijep9YyEWbR2GyYBxfaRz/oSqca3C/IJNquMHc sM7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :dkim-signature; bh=huufRdPkgfPAmuyeVXEmtB7A56Jlee3IkGhcxMhE6Ew=; b=Nkr2a73rArG+VxqnVVUe1DV3TYOWC17ANgZSRDo7IDHHG+4qc09RxdhI1N2dCv6DJi T49/SQrgntrt9KUmHqCQpnhWISX+SMP0qVvBA6F4N1IP1QwRwnJPmvjK/lsp264fvHyh yhC1RY6Vae4Iz/zOpXENVlCg6Pvqp9sFwsNvs8owju4+AnLj+SnFNN2a6tPdB5/RSVVN tAGmpxv7vVM/ugb/h1yY5LP2nxkxE/sDRBXMAlShWQKgWHDJBf8s1SD1zuwHSG5KWHoO cR/Op492el9P8GW1E6iGnvhxjzek5Iw+CpVytYCSEIwTfbbHzCcrhRqBirOQZWHtCOWi cH0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=EebQ1jgi; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si1579210otd.292.2019.12.10.02.22.42; Tue, 10 Dec 2019 02:22:54 -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=fail header.i=@citrix.com header.s=securemail header.b=EebQ1jgi; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727374AbfLJKV6 (ORCPT + 99 others); Tue, 10 Dec 2019 05:21:58 -0500 Received: from esa2.hc3370-68.iphmx.com ([216.71.145.153]:24439 "EHLO esa2.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfLJKV5 (ORCPT ); Tue, 10 Dec 2019 05:21:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1575973317; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=4PhE0mOGPD1zWZASbQ5CWdp3IZVaRYiYD5CdAezDIzg=; b=EebQ1jgiepeEgkAhPB1OXJjmDCAqe5oarwxgCPAkX9gFRup0fr9bUy5v XGfZFw1i+P7ME171ocHatDwqpFLUmP4w+1x9u5HeLmCQxFv/7EhAYTdUN WY7mGAJGqI4n90gxG5FrCg1mtAlav782SckEslFwTJVJTJ7s8BW6eB1Zq g=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: J/Qwc1MLS8uzoplHZItR93vbDIMgnz3emkOpUjrWj9JL23ADQcoIho4tYn5tjdu3JFCBTJ+W8O plARZAwoIRJqT0bZ0j1l8NTrKDrhwiDWjQocq8hGJMx6uguvE+U2nXB0bJDEFxebBkMyT/IHKy vW2udoFw/dOZ73cpw1J3BTTq1J0jnFgFkBlE4Ml+e85k/r5MyvH8pHxgNzxGIy9dDsek/H23Ax TdqTP9EV1nylxtyI3d5TOYZiKYwVR5shwFf9FQxGQE2H79Dppbs5/4u8cj676sEe2NXZwNFvyV 2vs= X-SBRS: 2.7 X-MesageID: 9447992 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,299,1571716800"; d="scan'208";a="9447992" Date: Tue, 10 Dec 2019 11:21:49 +0100 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: SeongJae Park CC: , , , , SeongJae Park , , , Subject: Re: [Xen-devel] [PATCH v5 1/2] xenbus/backend: Add memory pressure handler callback Message-ID: <20191210102023.GF980@Air-de-Roger> References: <20191210080628.5264-1-sjpark@amazon.de> <20191210080628.5264-2-sjpark@amazon.de> <20191210101635.GD980@Air-de-Roger> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191210101635.GD980@Air-de-Roger> User-Agent: Mutt/1.12.2 (2019-09-21) X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL03.citrite.net (10.69.22.127) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 11:16:35AM +0100, Roger Pau Monn? wrote: > On Tue, Dec 10, 2019 at 08:06:27AM +0000, SeongJae Park wrote: > > diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h > > index 869c816d5f8c..cdb075e4182f 100644 > > --- a/include/xen/xenbus.h > > +++ b/include/xen/xenbus.h > > @@ -104,6 +104,7 @@ struct xenbus_driver { > > struct device_driver driver; > > int (*read_otherend_details)(struct xenbus_device *dev); > > int (*is_ready)(struct xenbus_device *dev); > > + unsigned (*reclaim)(struct xenbus_device *dev); > > ... hence I wonder why it's returning an unsigned when it's just > ignored. > > IMO it should return an int to signal errors, and the return should be > ignored. Meant to write 'shouldn't be ignored' sorry. Roger.