From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7FDBC04AB6 for ; Fri, 31 May 2019 05:59:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6CFB2642B for ; Fri, 31 May 2019 05:59:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A8coVky0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726386AbfEaF7O (ORCPT ); Fri, 31 May 2019 01:59:14 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40374 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfEaF7O (ORCPT ); Fri, 31 May 2019 01:59:14 -0400 Received: by mail-ed1-f68.google.com with SMTP id r18so11745353edo.7 for ; Thu, 30 May 2019 22:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oRZZxg7tDoM8gwloKtClf27SzDwp8B7TsYDCaKJVOAE=; b=A8coVky0PFlp0UI9C/61TmFtN12f1QH8fwYv2NGftjQQxUimgrLpXsjGAr5Vz9njoE f6VL6r5IyYbPpTrfVPUWJm+XscQg/5LHgpU2PsHRnjiaerFyCWR1UVV1ne0Gc/LruHa+ d4nMHTLA30dm1JvNLTwefm406y9HLjITprP2NyJ6GS0EJXPB2X9wrVZuCrC3+rFMyeSh g/tVPelBWFVYyhTa5a7Q+Y5vdIDxHCifNeOi1OJjsrzNIfEnaNicdfHGLOrnuS8gIma+ H0aqJT4qtBRslD981ulgHPDByTVn96V0plKz6b0O+PMnsZKSZiQqNrlvjEIJ1dN7CFSE dJjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oRZZxg7tDoM8gwloKtClf27SzDwp8B7TsYDCaKJVOAE=; b=g4VX23I8xmMY0ISiZOtgOB67N864KdSxyP7xJ3/Z9yVia8SZv9TXlWegX87hVGqYgn IVAhT3GQKe9IV6XlnGNH9pxILa5SER2hQr8CO25rCxoG4Au/6u2Kay7tjJR5ow+Qi3IQ ZU1tOcbtgI1mxeMIPaDLdrSWTmIYya5hlAARqTqIb6PBpPrI4Bb9SDnL2bLe8+KDPE8n IDBL2pK1fR5zE/RdlCDUBEioAkGty7G+2XdYQQPy5cdIT1/wqbP1nT8qcTBXhri9GSow VaGKG24BnHv725ZIkwAQ94RTdVptJh091vClal2gSmDiORNdbDdq4tuMpkYTSOQFY9cf K7EA== X-Gm-Message-State: APjAAAU5wJsX6Tl9jpwTcnfO6Be3DgfQkpbviDHB/lYk8YvmmYhwAkz5 ByY7gqdiPaurOtq2HjioxT0= X-Google-Smtp-Source: APXvYqwydF68k9oZlgXlENUUJSmOVSifJgfOokuR//G6+M/9o/jjI5qIldoEMdpM0EBOw0Xiy4x1PQ== X-Received: by 2002:a05:6402:1505:: with SMTP id f5mr7033249edw.133.1559282352194; Thu, 30 May 2019 22:59:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id g47sm1311163edc.33.2019.05.30.22.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 22:59:11 -0700 (PDT) From: Nathan Chancellor To: Greg Kroah-Hartman , Sasha Levin Cc: stable@vger.kernel.org, clang-built-linux@googlegroups.com, "ndesaulniers@google.com" , Miguel Ojeda , Nathan Chancellor Subject: [PATCH 4.19] include/linux/compiler*.h: define asm_volatile_goto Date: Thu, 30 May 2019 22:56:34 -0700 Message-Id: <20190531055633.123516-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.22.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: "ndesaulniers@google.com" commit 8bd66d147c88bd441178c7b4c774ae5a185f19b8 upstream. asm_volatile_goto should also be defined for other compilers that support asm goto. Fixes commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive"). Signed-off-by: Nick Desaulniers Signed-off-by: Miguel Ojeda Signed-off-by: Nathan Chancellor --- Hi Greg and Sasha, Please pick up this patch for 4.19. It turns out that commit 13aceef06adf ("arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto"") was backported without this, which causes a build failure on arm64. This wasn't uncovered until now because clang didn't support asm goto so this code wasn't being compiled. Thankfully, that should change very soon :) include/linux/compiler_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index db192becfec4..c2ded31a4cec 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -151,6 +151,10 @@ struct ftrace_likely_data { #define __assume_aligned(a, ...) #endif +#ifndef asm_volatile_goto +#define asm_volatile_goto(x...) asm goto(x) +#endif + /* Are two types/vars the same type (ignoring qualifiers)? */ #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) -- 2.22.0.rc2