Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8600215ybi; Thu, 6 Jun 2019 15:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqztiomb+exQbAWNmDE70X/V+8pLn+8IxFdVVH+5QtO9sERjRnh9WETWsJG8hmr2DIpKVySq X-Received: by 2002:a65:638e:: with SMTP id h14mr102247pgv.209.1559860556248; Thu, 06 Jun 2019 15:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559860556; cv=none; d=google.com; s=arc-20160816; b=QecMcuN6VqO9/6Ea0cPG0uoZ7mN14wpLVteEMplyStilvEHH8Wtw9x08VxVskwVI36 0h7mdFdo2qKy00J0FN2zbHWFwoMhwiLK61y6ElThJB5uu1nTf42uWjxHLWt/1Deq2V1w Lfhv45yWqZOdiDLiFUT90MzXr9OZpgTnTW/SQ11Vpb85XfcEEDwzVr+KJ6mP4BVrIiZ1 dOOMiGKBMepKESArnSW0rweytV4orIjeXTB4GfGpKsgOjg2623toQ2DQuc/nCkHg2bYC 1n76K1OVmAkPN9InmxSxOF8hCDM4axgQgQByO5lHOnxzBumyWWBnwFcYYcnEeJsVRqnY /71A== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Er/m30YeYTqkQx+wXg4hf9XGQXMCScDbsqPq2Q0xWjI=; b=BtOkbi5gWDl6ZUHlQTduJqhEto9dNq5dG2hZc6z31J4hhHdqiK9MgqWfJNz9bCwYuy +RYyBfZQMVzHBdbB20efMv/UHvpE/Cn5TNqZF48aIJ0HI8/XM6iGBTwCfQLKiZJe6Msr vzkbCyYYpsbwW7iGkJ0L2qu0Dl+WOhwnvsz+8gCM6PfWGQloIRGocu5ynBNotdFUEw9i EgVuxBbmQ6gO1y3QzF0VgHoOUYVekVbChK61luBadQiK9Bgxj7ObIR5xrD2ZmCPntjJf NlRNbF9bjZ58oaNEnpcSe5AzqSXaSpPhmQ+DtsbHHZG4jRlef+skCSb8wBQjmkD6Zo2N h0tQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si176232pfo.80.2019.06.06.15.35.40; Thu, 06 Jun 2019 15:35:56 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728345AbfFFVVx (ORCPT + 99 others); Thu, 6 Jun 2019 17:21:53 -0400 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:34561 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbfFFVVx (ORCPT ); Thu, 6 Jun 2019 17:21:53 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id CDCD23C00DD; Thu, 6 Jun 2019 23:21:49 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F4M8mMrwGFmg; Thu, 6 Jun 2019 23:21:43 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id C54483C00D1; Thu, 6 Jun 2019 23:21:43 +0200 (CEST) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 6 Jun 2019 23:21:43 +0200 Date: Thu, 6 Jun 2019 23:21:40 +0200 From: Eugeniu Rosca To: David Howells CC: , , , , , , , , Eugeniu Rosca , Eugeniu Rosca Subject: Re: [PATCH 10/10] Add sample notification program [ver #3] Message-ID: <20190606212140.GA25664@vmlxhi-102.adit-jv.com> References: <155981411940.17513.7137844619951358374.stgit@warthog.procyon.org.uk> <155981421379.17513.13158528501056454772.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <155981421379.17513.13158528501056454772.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.93.184] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Thu, Jun 06, 2019 at 10:43:33AM +0100, David Howells wrote: [..] > diff --git a/samples/watch_queue/Makefile b/samples/watch_queue/Makefile > new file mode 100644 > index 000000000000..42b694430d0f > --- /dev/null > +++ b/samples/watch_queue/Makefile > @@ -0,0 +1,9 @@ > +# List of programs to build > +hostprogs-y := watch_test > + > +# Tell kbuild to always build the programs > +always := $(hostprogs-y) > + > +HOSTCFLAGS_watch_test.o += -I$(objtree)/usr/include How about arm64? Do you intend to enable cross-compilation? > + > +HOSTLOADLIBES_watch_test += -lkeyutils > diff --git a/samples/watch_queue/watch_test.c b/samples/watch_queue/watch_test.c > new file mode 100644 > index 000000000000..893a5380f792 > --- /dev/null > +++ b/samples/watch_queue/watch_test.c [..] > + asm ("lfence" : : : "memory" ); [..] > + asm("mfence" ::: "memory"); FWIW, trying to cross-compile it returned: aarch64-linux-gnu-gcc -I../../usr/include -I../../include watch_test.c -o watch_test /tmp/ccDXYynm.s: Assembler messages: /tmp/ccDXYynm.s:471: Error: unknown mnemonic `lfence' -- `lfence' /tmp/ccDXYynm.s:568: Error: unknown mnemonic `mfence' -- `mfence' : recipe for target 'watch_test' failed make: *** [watch_test] Error 1 -- Best Regards, Eugeniu.