Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp635136ybc; Sat, 23 Nov 2019 05:30:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyWfNNdkbIHVAO8mim9tPojS+ZkoOk3dtHl9lsVvPe3q/Pd5Is9AFIaFR1zYdZzihm7mLNT X-Received: by 2002:a17:906:4dd5:: with SMTP id f21mr27233308ejw.203.1574515825127; Sat, 23 Nov 2019 05:30:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574515825; cv=none; d=google.com; s=arc-20160816; b=UaQ1VcX7F/60kNwpPp/bJXRYdDHftH8q/LwCw+lisl8KzTm72cq6RzC9Aack0crxBI 5QO4f96Oc0LvuEm/YakeV8xy+z0QfD1jq7MMm48ht9fUhnkcWdwNDTmNsjH3u+ErdMn6 oqNKX2gJdu8f4ULDGIf+6RtQ7tp7ejq+DQ6RA6HoAw52fFR9ZLPNz+8T8lqimmI26vPq p5/lmfYy80BfqtWQ4gd3K2K4TqXpZyq53kkW4qS3IgzQEVujnSL2wm1ylBVTOK1SEn5c kfYchlB2D1MiF50ttzE1s3fezJSCfXtcUYxidsWT5bD+Pr0VR+g9WG1wNVnPt0GZFCcC 7c+Q== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si745693edt.135.2019.11.23.05.30.01; Sat, 23 Nov 2019 05:30:25 -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 S1727156AbfKWN2f (ORCPT + 99 others); Sat, 23 Nov 2019 08:28:35 -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 ); 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 To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- scripts/kallsyms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.17.1