Message ID | 20191123132727.30151-15-yamada.masahiro@socionext.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp736247ilf; Sat, 23 Nov 2019 05:28:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwuI8AqRZbfY8F+InJIhNBGCf/ULFnfT+gi4ha7ODWkEqJsyt9KcjTnix5s5HxNNyI76Mst X-Received: by 2002:a50:f284:: with SMTP id f4mr7100536edm.126.1574515722640; Sat, 23 Nov 2019 05:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574515722; cv=none; d=google.com; s=arc-20160816; b=PDsveodVeHBcP0M9eTIRCLJhZ5VCsck8moFt8/cXne6g625NceHtsqLnR4YgVsJe1E 3/bJd7SW5kaeWn5BhCpP1SenpLx/q3sWqNLJX03JPl+UOP2eE7ZxSCMlyFt5zPWt+kpm MQ5NHijA4J5/vx6/R10V0q6iPglBWTsXGknHE37uTRqBvuq+nswbebPoiVAwMN9AfRD/ UzXHbvLHPi+we4xy0W6uSOk1Cv9uaPh47DV4D9H4K5Tks00hdpxTmJtqROEUp8PZ/nFv /5hC7hyHFO3jEmtaMEv5z5IoTM/1FItA2OH0X9BjMktwml/qVhcidqsswL5kuZbY0ptb kQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=nDLRImXyMlZ9Sa0C3TUQcIOX+p9zCip3EBLry72jMm4=; b=SFo6/nxdDFTozAOdYxH5+QFznIS/ZqgJpjMDM4qUOdbqHYi/RJVyE649rgXToL/pGx OmMw7bUQ1SARexr+eu7gjhrJX9suQngiyLu4z9mfxbl7KyasaTyXqbZyGNUhN5l0pxeD 7oioDJ7TsZFNWNUWsjuCdnoOjBfxJu4roEqHCQfS7zXaA5IRXAdz06AfZZOfrNWupGKK 4diw0AF+RGNjYX1v5+liBUsnvF6rBD3l+TB8bARaue0UvD50zXygKrkYr+lJryZ+YW3N AGDfhVo77lyWyPRS/i1zIrFW2sbHGGVwloJHlL3qcgtsvPx58l5EmL3pHQCTc7F0Gi+H WwXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NyXRf2mr; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si909715edr.9.2019.11.23.05.28.42; Sat, 23 Nov 2019 05:28:42 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=NyXRf2mr; 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 S1726833AbfKWN2g (ORCPT <rfc822;lee.jones@linaro.org> + 26 others); Sat, 23 Nov 2019 08:28:36 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:39547 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726813AbfKWN2A (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 23 Nov 2019 08:28:00 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-10.nifty.com with ESMTP id xANDRbkn000733; Sat, 23 Nov 2019 22:27:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com xANDRbkn000733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574515665; bh=nDLRImXyMlZ9Sa0C3TUQcIOX+p9zCip3EBLry72jMm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NyXRf2mr61YPIKX/D1c5VdBLre5GK/iwkCt/CzSlA9jOkVNB+Y6ic0XuFR2KR17yr f+9dQuPGW5CiPdHgZfp2KJykooh8fWlgdA4o65ICk+wKjMJ7d9XOCuQIk6JoDO2ba7 3slvx8/uwMbimUgTO1HNFXZPxm6BAtx2O40WiI2MxQ29z26+KRFaaubLNt1KWlCLD5 raUEPQP8krxcqenzLnDA6V3kA2T5m8BPSuYv97Cv0ZR1/IauVqUOxZ7PIh4mPCL4TZ J0LtmJ2O5j4xvVxxgTjGQoJ8pPMkzhr1Z5+2GAL91hZtd/wT4MzHf55zR2mtnjshH+ s3yLvNsFAwJ1Q== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada <yamada.masahiro@socionext.com>, linux-kernel@vger.kernel.org Subject: [PATCH 14/16] scripts/kallsyms: check no valid symbol earlier Date: Sat, 23 Nov 2019 22:27:25 +0900 Message-Id: <20191123132727.30151-15-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191123132727.30151-1-yamada.masahiro@socionext.com> References: <20191123132727.30151-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
scripts/kallsyms: various cleanups and optimizations
|
expand
|
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 144f43363c4d..919cb45ce9db 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -608,14 +608,14 @@ static void optimize_token_table(void) { build_initial_tok_table(); - insert_real_symbols_in_table(); - /* When valid symbol is not registered, exit to error */ if (!table_cnt) { fprintf(stderr, "No valid symbol.\n"); exit(1); } + insert_real_symbols_in_table(); + optimize_result(); }
insert_real_symbols_in_table() does not touch table_cnt, so the no valid symbol check can be moved before it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- scripts/kallsyms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1