Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp814540rwd; Thu, 18 May 2023 04:29:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hrgh3xdacf8Baij7dge3MS7E6AJoR1PGWCTHFQQj26ZQq4c2jYQQYxcNoj6v89P6+l+4M X-Received: by 2002:a05:6a00:1994:b0:63b:5496:7af5 with SMTP id d20-20020a056a00199400b0063b54967af5mr3800475pfl.1.1684409345741; Thu, 18 May 2023 04:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684409345; cv=none; d=google.com; s=arc-20160816; b=f56AhC5aO63KURJukLikAgQIaj981YGm2Nxw7Prf6OxmRr0xoeAQyXN55bnX/JkmEA d9Qe544DPpOdYq+DLlAuvOru11vnLUra0o3KSnSajNn49SfyCL8scJ2NoTOy1uqqRYAS 01DwOExt49BVwCiswZSrTIatRdVjuUqZzzjOQpzJcG7sTyIiHU8GV/i3bBvTQpkG+b62 3XMgQ2XDbU94UPTRmsCnYKLRr3oWfa6Jev+f3GkYtIQP81Vl8ZWwLgSQxsOL7KGNuvFT YGKIuW09OoE7TF/sTm2zwzpMDmchTJikFNjEtuCAZ681tnbNK39zTnGHqvHd5wQ7lhmv vV/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=oCi1DmbpTPgutTsGMxhvkAhYR5c4MoOJ0Tep7lmMR/8=; b=1JYGZSXMuhUnkTUgR4aQYX8rhywzjl6/1rcsiVQh8w/LMNx3t3WBZ94ZU2YYdl5sQi h8bi7VM16JMOUnWayz/LAsa7gJapOLzKzzDuNOackVndNaQps70D5bqa6dLuo6YNMJY9 EtWo6ZLL6iBiQZDDPwpcYlYP7sQqO1kE8WfJUpRI7LFQOWjfsAfMwVaboDY9iZfXqGMc Cs6sR6oNptovoZZX+2nn2Vd+mIxK8Q3f8sqo2eZChwjeydDmbhbXcjnSaBibHWO/SMg2 9+Fx1LOdSfZdUMolTEWz7dJAcsFR8rJ0pEacxcf1FnoySSS/NL1uVKp887i4HTCb549R 2FIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=H6y94iYy; dkim=neutral (no key) header.i=@linutronix.de header.b=f88n1st0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t189-20020a6378c6000000b005074cff89b9si1211721pgc.250.2023.05.18.04.28.53; Thu, 18 May 2023 04:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=H6y94iYy; dkim=neutral (no key) header.i=@linutronix.de header.b=f88n1st0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbjERLIb (ORCPT + 99 others); Thu, 18 May 2023 07:08:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230482AbjERLI3 (ORCPT ); Thu, 18 May 2023 07:08:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DAF4B8; Thu, 18 May 2023 04:08:04 -0700 (PDT) Date: Thu, 18 May 2023 11:08:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684408081; h=from:from:sender:sender:reply-to: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=oCi1DmbpTPgutTsGMxhvkAhYR5c4MoOJ0Tep7lmMR/8=; b=H6y94iYyqFgzX50S9lgITYuAd+JamGsgVgxP6kq2kgsozovmJj5kgFXpQFBcYB4QyXN9eL gOjfS9PUoUwUcklMX4ldWXXrwYHa1HFqk1k8qo3I9vCx9cjc7+mvTHB5klYIZH0MpXmGt2 po/3nijnYC28xBA4zI/7p25vbcQy1gL6hots50r1nh9SVsnwtabDsYx22whwxDeo9romjM GICVskfzrY8gnuMBWYNnulbEcNG0HgiHOfIXD4Jpht/b9dCQoNSPNnRcgiRiYvmDGCNrdj mo8wKGrI9+TILgajfmr9L4rzOApuDUXt0uLXLgZ/n1+TZ1ip8NAopzLuuFuuOQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684408081; h=from:from:sender:sender:reply-to: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=oCi1DmbpTPgutTsGMxhvkAhYR5c4MoOJ0Tep7lmMR/8=; b=f88n1st0iDU3Geimdz71dEw2KU77o4zgZtzECtdl1RCvA9EVV4LJVtrMn6FkLNQza0pohp kt2vFabD0o8ByrAQ== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] tools/lib/subcmd: Replace NORETURN usage with __noreturn Cc: Miroslav Benes , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <168440808137.404.4849730726607986574.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the objtool/core branch of tip: Commit-ID: d59fec29b131f30b27343d54bdf1071ee98eda8e Gitweb: https://git.kernel.org/tip/d59fec29b131f30b27343d54bdf1071ee98eda8e Author: Josh Poimboeuf AuthorDate: Tue, 18 Apr 2023 14:27:53 -07:00 Committer: Josh Poimboeuf CommitterDate: Tue, 16 May 2023 06:31:54 -07:00 tools/lib/subcmd: Replace NORETURN usage with __noreturn NORETURN is redundant with __noreturn, just use the latter. Reviewed-by: Miroslav Benes Link: https://lore.kernel.org/r/c7c83d1e6b3d2b0c3e65dd3790c22c772d3b2527.1681853186.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf --- tools/lib/subcmd/parse-options.h | 8 ++------ tools/lib/subcmd/subcmd-util.h | 5 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/lib/subcmd/parse-options.h b/tools/lib/subcmd/parse-options.h index 41b9b94..8e91473 100644 --- a/tools/lib/subcmd/parse-options.h +++ b/tools/lib/subcmd/parse-options.h @@ -6,10 +6,6 @@ #include #include -#ifndef NORETURN -#define NORETURN __attribute__((__noreturn__)) -#endif - enum parse_opt_type { /* special types */ OPTION_END, @@ -183,9 +179,9 @@ extern int parse_options_subcommand(int argc, const char **argv, const char *const subcommands[], const char *usagestr[], int flags); -extern NORETURN void usage_with_options(const char * const *usagestr, +extern __noreturn void usage_with_options(const char * const *usagestr, const struct option *options); -extern NORETURN __attribute__((format(printf,3,4))) +extern __noreturn __attribute__((format(printf,3,4))) void usage_with_options_msg(const char * const *usagestr, const struct option *options, const char *fmt, ...); diff --git a/tools/lib/subcmd/subcmd-util.h b/tools/lib/subcmd/subcmd-util.h index b2aec04..dfac76e 100644 --- a/tools/lib/subcmd/subcmd-util.h +++ b/tools/lib/subcmd/subcmd-util.h @@ -5,8 +5,7 @@ #include #include #include - -#define NORETURN __attribute__((__noreturn__)) +#include static inline void report(const char *prefix, const char *err, va_list params) { @@ -15,7 +14,7 @@ static inline void report(const char *prefix, const char *err, va_list params) fprintf(stderr, " %s%s\n", prefix, msg); } -static NORETURN inline void die(const char *err, ...) +static __noreturn inline void die(const char *err, ...) { va_list params;