From patchwork Sat Nov 23 16:04:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180115 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp887156ilf; Sat, 23 Nov 2019 08:05:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyx4d0pqlsk5yGYuEY0HljnNxYfW9ZWbat38EBkWL6Fq1k/q1/KtZSH/XVajIfaE5a54OMQ X-Received: by 2002:aa7:dd4f:: with SMTP id o15mr7803329edw.189.1574525158466; Sat, 23 Nov 2019 08:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574525158; cv=none; d=google.com; s=arc-20160816; b=CRn62/K4otzZQzsZE/Q5HVYRf/O0aIFPahb0xw4Nfbv5XT/4BGAbrB14yE1HgMrHw0 zUcCrwANZG5GCY2mgygxMdBLrzbnvpVbWitR/UJ9Y49KyygrXXkJzOdWdDgn2pS8TZM9 7PjpgjBVXnpC25JH/YsWC3qDVGzOrFsstGXjK5YdY2+Uw4Fwn8ObrcExrGjBhNBSev8L ZrkKrOVesN0yQ47MwVHNd/2VzYp3EowIuvBCe+ugBJRICdyKDN35wvrWSZAmh0AwTAVE WEoWSw8GZZKRB6dmAVKHUPZWREHEsMBB8cTIYET6s8Bnh6cJQWETOrCoc3rDnit7Tdfg DrXg== 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=jA3oyA+zBfgpdI/EjevUAFgNYlad6/34++q2OdZf31k=; b=ZCei2C0y2SbztYMQ7YxbE/EJdRIo44Ql0NO/g5jccEgqq/0LbnvJGf68SQsAfOykpw 6FmCz+XncCkQVtxOqfOET90tqqd4SVPEuleaX3fxurwMj4W6apPPOGfnBwKZN0YGfCqX yaVKVnpm7YOttLTPDWyMJATknyXwid7Vzs10H1DvoW6yaHCha5+Hj5gTqrpj9d+1lADS VMWVAVdfM+vrQCtYNAcEsV9GdFvus6cgv6t3/col98hYYDFhpnBZIE7T2HxIWkBLYb/u AgJCLp0QNWaPZFn1QKZEWgmOP/NVEHripLewQOogjUtXwimFZbVfSealte4gZhYdnQhK az2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Ls8Ej6lz; 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 bt28si1019271edb.270.2019.11.23.08.05.58; Sat, 23 Nov 2019 08:05:58 -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=Ls8Ej6lz; 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 S1727270AbfKWQFw (ORCPT + 26 others); Sat, 23 Nov 2019 11:05:52 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:49449 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbfKWQFB (ORCPT ); Sat, 23 Nov 2019 11:05:01 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-12.nifty.com with ESMTP id xANG4l5W019106; Sun, 24 Nov 2019 01:04:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com xANG4l5W019106 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574525095; bh=jA3oyA+zBfgpdI/EjevUAFgNYlad6/34++q2OdZf31k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ls8Ej6lzwh4m25ICQmLvpNEmvovUsuCJ4C3qbnAgD1chP/UidRNAzql0uxWy25+7p 8DqN7YSD3JMYFEfaEC/ah4vFxymxc4YKfGp5g4j5ofQU0Te2JJpl0NBb7Yo1rgqrAS aiZ2iOhmO7JoFZtTxbc5UNgfvyuPpCly4OY/VUK6JcwQEatCPj5McFCYorIzht0tzM QbzLq9AvWdPo4ePLfSH5OvmtQeFhUjBPOOBwge0TWp8x7/dPMxwsv/12xsyZvZI9xz OaDsaYQe+dAX8ySAUxAV1k8Q9OxQepfEcYzj/hZCY3tpXiqlA5tVOHZcgButhqtA5F jPc6R7aUvjYMw== 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 v2 15/16] scripts/kallsyms: put check_symbol_range() calls close together Date: Sun, 24 Nov 2019 01:04:43 +0900 Message-Id: <20191123160444.11251-16-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191123160444.11251-1-yamada.masahiro@socionext.com> References: <20191123160444.11251-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 --- Changes in v2: None 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 f4d5f131556d..b9b1a4cf1c65 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; }