From patchwork Sat Nov 23 13:27:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180091 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp736100ilf; Sat, 23 Nov 2019 05:28:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwdoxhfAywEWKpKSFqJSgwBYUsGxJqUPzYJUwmcU8M+6l7f0bdN6vu8EA9zJfBxOWpPmwO1 X-Received: by 2002:aa7:c518:: with SMTP id o24mr7017837edq.110.1574515711167; Sat, 23 Nov 2019 05:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574515711; cv=none; d=google.com; s=arc-20160816; b=Q3mIUy0gAep7joi6FzHybFz8vmHZdgi8vwUjGx31qks20273LMfQM8HeKYu2Ai1krL C164cbI1yUYAA+ctfr05BMrEO6lf5LL7a/LGiZ9RPLsYLzYmqbX8OIUQhAsYx4325+o2 bVxEmJKSpUx+gEy3OG5HAe2PuijTNK/95DpIx4uf0+x1c/Zz+Nzf1NPEFeZ9WHc57YuK 8RLvoNmhi0apLVA2TpPR0T/WWuPJEX48TuCFhs6mO2E45GnyKU9KuPFa2iJqmoFeeS/S nAwFwWBKG8aVCRT5lOQwPE168JDy0q7n35ebPgEOutAygt/6ebkfigBjFE0H311vLM4r l8DA== 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=ABZMLzbkwxvv1sZSUxQf78l1xgdh6waH3ITd4vzDgwo=; b=jIhwhJ8LsTmhyJYViPa8mX+DVT7RJJ6/+X1k4PitKQQyBMgGA2TE73pHqIpXBLrkL0 MjS5oF1XS75fy/Od0e/dYoNuKRjGulqcvf8VW8PN+41m9bVTiltv52pm2e+sId5RCqRl RMzZy6us3MnrD9IJNGJtAEsw2Yecz20X5N8NJStUDk8doFLXvefGHHiROy8qIedG4aCk kwakjPumwBCGIeVT25vLc6dSKx+JhlC3IC/A2mDxNiGZukxQgHVx4Lr2TVs61EjQqOFk 0KS0OwFSOnSXiggen+NMWmJAuQusv72oIi00/tNhaJ0TRQ3/2H5lbW7BhaHtkknzFz8P KQ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="F2YKCV/1"; 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 y24si796861edm.333.2019.11.23.05.28.30; Sat, 23 Nov 2019 05:28:31 -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="F2YKCV/1"; 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 S1727141AbfKWN22 (ORCPT + 26 others); Sat, 23 Nov 2019 08:28:28 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:39587 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbfKWN2B (ORCPT ); Sat, 23 Nov 2019 08:28:01 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-10.nifty.com with ESMTP id xANDRbko000733; Sat, 23 Nov 2019 22:27:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com xANDRbko000733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574515666; bh=ABZMLzbkwxvv1sZSUxQf78l1xgdh6waH3ITd4vzDgwo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F2YKCV/1k0N+2w6nTOzMUtwwF5td+ZQanVC8b8+iw8Xi6oJE/NwrybKQsoEvhj2lb pDaQSJFcTQyxe82MOF+em5Fr2oNejhAMkd2Byz9KLi4U/CcOaw5UBYsGx2JPvN5I5M 5ofi/bsZgFyhXWpoujJX3xvVfnmd8bPS6Blq3YiJs2yAaqG3sWsUx8cmhHcqQrcHBF MyH0a8KonGI3VHMnzA4QPWcB+xK+Z5GyJXaGMERIlbSutwPgAz6HVhBm+0sgotEcBz dKHnqs6rbPm2M5ysJgioER7gM6afNFDdAoHHl4EdJ/+ZRsEOrNUN4FpDFxhJWVAGxO /VAC3METJmIdQ== 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 15/16] scripts/kallsyms: put check_symbol_range() calls close together Date: Sat, 23 Nov 2019 22:27:26 +0900 Message-Id: <20191123132727.30151-16-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 Put the relevant code close together. Signed-off-by: Masahiro Yamada --- scripts/kallsyms.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.17.1 diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 919cb45ce9db..22ff206e2533 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -200,6 +200,7 @@ static int read_symbol(FILE *in, struct sym_entry *s) _text = s->addr; check_symbol_range(sym, s->addr, text_ranges, ARRAY_SIZE(text_ranges)); + check_symbol_range(sym, s->addr, &percpu_range, 1); /* include the type field in the symbol name, so that it gets * compressed together */ @@ -215,9 +216,6 @@ static int read_symbol(FILE *in, struct sym_entry *s) s->percpu_absolute = 0; - /* Record if we've found __per_cpu_start/end. */ - check_symbol_range(sym, s->addr, &percpu_range, 1); - return 0; }