Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp61889ybe; Thu, 12 Sep 2019 15:40:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFNtfPMFDubY2b9M7klbl6ku9bElHtCQg/lnsT54V4HyazsO1JQK4uSjgiMNcHnlrAho/Z X-Received: by 2002:a50:9625:: with SMTP id y34mr8203693eda.72.1568328045908; Thu, 12 Sep 2019 15:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568328045; cv=none; d=google.com; s=arc-20160816; b=KQIOn65OiZ8aj9fKwjRTC3qfdHDxzm+ZBG2vOdnzTk1YCJVDFbj/S3bLaxYTqC/tnc 4/Y6cORSHb/U7r9g3fWsgGxpsUPe+njqrRElC/P1sdOXAanMQuiJpW00mkPLD9jTvSA0 vguAiP7DwUAeE8khWCgNgz/ZFDctEz94Etvb8AA4ZJJS/c6e0abJ6DwrYLZ5C7XRDi2a wIjmubAWMCHKb+lTIyuZVZh1TCUrFlLiZvXAkEHP9muq+krHbEnHUlTlI3XXD0gLiQXf Lo5CRlFvztzpofGeRZO0EKOHNPgqdaE0Nbbc/nPKTMBv9YKco4e4qpgV/YZpy93Zqax4 rC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uw+By8uPhtt1B4rmiquJCFolZneVMTSbfQHHffSvIIQ=; b=epsodTo30ivquQIPcieBgUXbdKnF5GwoCA74JA91h763MsPst6d1wGtambVvVR3EVJ qkfr1LmsHKEHIy3TnaIwLVDv1GYltWBRpPqF34Bt5x5bGjmWDheGsdPdLI6sip5zJKEt xWquEJ70AcITxyh/DzS4E+FQ+HIqLmLKL8XHtXUdj+TJpp9J7htzSxiKMmTAq0PseQhM vgzD34YXZdOOnJ17M7Z2GHJnEaPz/z1nAtITkpz7rbnQRixYLn9t7+boghuWvTi2BvBQ PBGUj+mAw5ujc7eKRN/tSYnjpqB3Z794LxJ2JiQYd2qKqYTL4W8i/t9adGj8yBq/rWFg h2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=H+x8OaMw; 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 d20si13935024ejc.302.2019.09.12.15.40.20; Thu, 12 Sep 2019 15:40:45 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=H+x8OaMw; 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 S1727277AbfILWMq (ORCPT + 99 others); Thu, 12 Sep 2019 18:12:46 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46529 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbfILWMq (ORCPT ); Thu, 12 Sep 2019 18:12:46 -0400 Received: by mail-ed1-f66.google.com with SMTP id i8so25268090edn.13 for ; Thu, 12 Sep 2019 15:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uw+By8uPhtt1B4rmiquJCFolZneVMTSbfQHHffSvIIQ=; b=H+x8OaMwIVhaQKjfeCoic7a24QjeAQPuJJocr2jMyn+QXyrVvZs9p37huRZtIsi4TW BXo9pQJRqUgJeizoGJkSR1BIah7CTPiic0FmVyqByMwdzsyJmBKDrsOZ86RQVS9acyqj Ci4acuuGe4J0jem2ju6d0EbSWs/3KQPPcH1VE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uw+By8uPhtt1B4rmiquJCFolZneVMTSbfQHHffSvIIQ=; b=KxeP/KnpJKJ0iadXgMGARpao/cQY+mWPHWet6IQ8OffQhe9ZY/JGfueC912YOQWEAO MPwpYDXb2vHCYDs/gDauZa7DnN91avG8D0OEy5u1FAeKD8GEkpIjsWuZKUAO6hTMhb8K 7ccYI9yH+Bb7lraD2rdWoK/WXfUGl6ApXZ/Wk+1E1Hm902EZp2uCDqbXmw/uwC15SbSK qVQnzWyTevmMmuWysV/d/OsMEEeZutaNMe7BHbJTGfHAy51X/+dXzEx3vyIskqtRlM1z i5lvgl809eBzJFxqjDzF8zBRqf7pafFDofINZVWskfXKrKMlaiqessGvVvNy/CYxUvSv Ji4Q== X-Gm-Message-State: APjAAAVXLzRzwpllB2Wxty/S2EMHLUh5v/Lg3ZlCBvwVLYnOF6KtlgkA 1FSAu2/R/wpmxZMx8C388mu+Pg== X-Received: by 2002:a17:906:4547:: with SMTP id s7mr4297335ejq.55.1568326364163; Thu, 12 Sep 2019 15:12:44 -0700 (PDT) Received: from [192.168.1.149] (ip-5-186-115-35.cgn.fibianet.dk. [5.186.115.35]) by smtp.gmail.com with ESMTPSA id d24sm5071574edp.88.2019.09.12.15.12.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 15:12:43 -0700 (PDT) Subject: Re: [PATCH v2 4/6] compiler-gcc.h: add asm_inline definition To: Nick Desaulniers , Segher Boessenkool Cc: Jakub Jelinek , Miguel Ojeda , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , "gcc-patches@gcc.gnu.org" , clang-built-linux , Masahiro Yamada References: <20190906163028.GC9749@gate.crashing.org> <20190906163918.GJ2120@tucnak> <20190906220347.GD9749@gate.crashing.org> <20190906225606.GF9749@gate.crashing.org> <20190907001411.GG9749@gate.crashing.org> <20190907131127.GH9749@gate.crashing.org> From: Rasmus Villemoes Message-ID: Date: Fri, 13 Sep 2019 00:12:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/09/2019 23.54, Nick Desaulniers wrote: > On Sat, Sep 7, 2019 at 6:11 AM Segher Boessenkool > wrote: >> >> On Fri, Sep 06, 2019 at 06:04:54PM -0700, Nick Desaulniers wrote: >> >>> How would you even write a version check for that? >> >> I wouldn't. Please stop using that straw man. I'm not saying version >> checks are good, or useful for most things. I am saying they are not. > > Then please help Rasmus with a suggestion on how best to detect and > safely make use of the feature you implemented. As is, the patch in > question is using version checks. I was just about to send out an updated version. I'm just going to do the check in Kconfig - I didn't realize how easy it had become to do that kind of thing until Masahiro pointed me at his RFC patch from December. Rasmus