Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2990004ybk; Mon, 18 May 2020 12:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCcpgXOWaYvWIpgh/XOv3CaMUQP7qCQXuu9WLwcatYaBf9MqZQSyhWd00ca9fS0nKLPa+j X-Received: by 2002:a17:906:4e13:: with SMTP id z19mr15341917eju.339.1589831990886; Mon, 18 May 2020 12:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589831990; cv=none; d=google.com; s=arc-20160816; b=eDk6IkEiGiyJboJ1+cRZ3/LBitjzKGNWp/jrqtiQxKzDOD9VQ64Ma9P1Z2MK0XppZx knQnjv83k5AHbAqbFH1n8gy6O7YTTFIkZ4+gkoppXy9zTVujHp+cXsaB+1EDry9jydeg yHoL77TCmqlzt7GTdRqvT5kjorVJDSDCaDnwwv5elsm2Q06LTxJsNaz5RttR/MSuLFBy wVMvomAC3ZiKsI9zMZgHgqar7zBSlogAxRX2rSQCc38u96J/c3//wSR73RrLQQ2ZZs9r bDt+2hcnm/eSDap2uuCvlHtudyYiBZlFEg1WTwob0MUAhHAuLefP+CdaBuFuTqdnP37b zsZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=3L95FGbLxfO72c93Tn4FBDohVfG33DKrKbf6Ch3xvxM=; b=qyHtJIqApdeMa8crtabeyU1mC3yCy5cL9ruYRV21bU60s6UHnIAEjrhhGW7dFtz/lf dXtE1fvJvd0Pvk0bj/A73p4T8ooDtqEDX5LiCMtS1SKjBaSvfvRaF0KZNymCKuR8CAJ7 P444uv6pPsSDzYbuuvrqRZvHqcPmIaGuO4JBJ4wePYagVyr2UXoXH1HAJ4ZSafo7B0xo iiAf0zeQ8PuyYZlQPuZEf07wEIKHMdGRQyGy7QjbyBvxSEVB/GGGby1K7+WTWLKUCj90 2oZCUlBNXtGSPQGnuiNwFB4mW+l1Qm7OXN4V+0WcKEy6+1U5KWd3dnMw8//Od2w0Ykmu LVnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e3si6860517edj.358.2020.05.18.12.59.28; Mon, 18 May 2020 12:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731953AbgERS3b (ORCPT + 99 others); Mon, 18 May 2020 14:29:31 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:42213 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729345AbgERS32 (ORCPT ); Mon, 18 May 2020 14:29:28 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Mon, 18 May 2020 11:29:26 -0700 Received: from localhost (unknown [10.200.192.41]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 42FFC40320; Mon, 18 May 2020 11:29:27 -0700 (PDT) Date: Mon, 18 May 2020 11:29:26 -0700 From: Matt Helsley To: Josh Poimboeuf CC: , Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt Subject: Re: [RFC][PATCH 5/5] objtool: Report missing support for subcommands Message-ID: <20200518182926.GM9040@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Josh Poimboeuf , linux-kernel@vger.kernel.org, Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt References: <38a0c7a1ec8d98238379a322866c0432befc259b.1588888003.git.mhelsley@vmware.com> <20200515210448.jqseippuz52wx7ct@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200515210448.jqseippuz52wx7ct@treble> Received-SPF: None (EX13-EDG-OU-002.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 04:04:48PM -0500, Josh Poimboeuf wrote: > On Mon, May 11, 2020 at 10:35:13AM -0700, Matt Helsley wrote: > > The check and orc-related subcommands for objtool are x86-specific. > > To make this clear to anyone using the tool return a non-zero exit > > code and indicate in the help and usage output which commands are > > (and are not) available. > > > > Signed-off-by: Matt Helsley > > I think I'd rather the simplest approach of just having the weak > functions print an error and return an error code. At least for now I > don't think we need to go through the trouble of advertising whether > certain commands are available. Technically they are available, they > just always fail :-) OK, that'll drop this patch from the series. > > And, people don't tend to use objtool directly anyway. > > BTW, several of the patches didn't apply cleanly to tip/master, so > you'll probably need to rebase for v2. There've been a lot of objtool > changes lately. Peter's been busy... Will do. Cheers, -Matt Helsley