From patchwork Mon Feb 4 01:53:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 157374 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3364962jaa; Sun, 3 Feb 2019 17:54:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN6VS91xmDydo+lriaPXtfu0zovVozmyPXKAjFj9jhpkGpkI0dTeJ/lZrZCiyKrnVh8GrVUS X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr50748610plb.17.1549245286829; Sun, 03 Feb 2019 17:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549245286; cv=none; d=google.com; s=arc-20160816; b=a7i0Ia8SwzV995/bSDvJiC+AVFxx1OwyUr39dzrMY9wvKPUJHPZJU9O67BwZ9MekqZ 5VhbjBb40xH9pZ2FPWwcHPeJWUYYWAwWYTxWTn3I1R7BWZ68j/7wd38x+Con7EgNENyH Bt2f9aHxvut39Gwvzp/faJPVzsvWpi47s6bwidjMsi1+61MZHnv9604D/3K/HsIekWEb 9c6hugOJOKvSRFAUulLaCSbCvQotvG8PyAnrdA667Yzmd542Vt1VAM249pC+/85uamFO gbJ/bKMz29KgwwtqsYmPwaOgyVn3Sx6I+ddXDCszpBiJ/pZMXZHvezeW2PIKPqJjqbae 2kvw== 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=3ZnGgtKPoc0ZuFDxzJZCCpJljtU9NUQgpqwHwbBwNSk=; b=cTwWdfJTut0Cltyesb50QaklR5rhdeXiI5/ifcp0Y5+uLs3nLIVZT36R/kWNZh3HJW Z7XPK1DN1Vk+hk9NuGx2kz+QKVcv0rGKjdHoUSShbe0v03nnvQvqbhume4dVGkx6jbTG 8F6mZ33xblEYtthRl+XgEwW/dA0sOD2Pi41Jnbeq3uRB5Md5Z6fjJkHFlI4ylX5w7xat yv4dQ7H7mfrRh0hhFOuGoXc8NBpPCA1vnzpBkH+3aK10204wrgTnMZtC/RC5L50G9yoA 5TB/zs5cytI2JpQy6eLpqRJOWFaMDcl8EKwvm7lpQvCuHadUWZEG3duHkDVnh2sfbBm3 54TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=LLp3cF71; 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 q2si1940825plr.204.2019.02.03.17.54.46; Sun, 03 Feb 2019 17:54:46 -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=LLp3cF71; 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 S1727928AbfBDByl (ORCPT + 31 others); Sun, 3 Feb 2019 20:54:41 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:47475 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727396AbfBDByl (ORCPT ); Sun, 3 Feb 2019 20:54:41 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x141rNQN008993; Mon, 4 Feb 2019 10:53:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x141rNQN008993 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1549245205; bh=3ZnGgtKPoc0ZuFDxzJZCCpJljtU9NUQgpqwHwbBwNSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LLp3cF71m2uYNFZeSPKqDBh1seL+z8mk1hCJhQ9ZsY6JAuFAr885qIS1iwYW2i6Iq ro3bGuYMMGGn2dqX2wkDQjdmVQEz0PmjXLwfDl0OTm7pRUwVZQcQiKcr+gpcjC0dRW AJo+MZfv1GdhTEjp6c2cnZzQIkHshHdoRdrEh7r+B+QwlAq5N1590LDsVL1+fEThQC dsrLafCzCf4Hj2TObqrSV66mY5OWwIpZgWwt09tjZd52+o0bdtn9XumUpTAxC1VA9E dPqgm1pmx2W3sB4Wcbz1S/xnIPgnoJ43K66dQ+LUKuCwBN8OaQzHRUGwddHJcTd4eY ilsyWhHgCKFjQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , nixiaoming , Jan Beulich , Cao jin , Sam Ravnborg , linux-kernel@vger.kernel.org, Ard Biesheuvel , Mathias Krause Subject: [PATCH 2/3] kallsyms: remove unneeded memset() calls Date: Mon, 4 Feb 2019 10:53:17 +0900 Message-Id: <1549245198-6182-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549245198-6182-1-git-send-email-yamada.masahiro@socionext.com> References: <1549245198-6182-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Global variables in the .bss section are zeroed out before the program starts to run. Signed-off-by: Masahiro Yamada --- scripts/kallsyms.c | 3 --- 1 file changed, 3 deletions(-) -- 2.7.4 diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index fc00bb0..f1b5749 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -596,9 +596,6 @@ static void insert_real_symbols_in_table(void) { unsigned int i, j, c; - memset(best_table, 0, sizeof(best_table)); - memset(best_table_len, 0, sizeof(best_table_len)); - for (i = 0; i < table_cnt; i++) { for (j = 0; j < table[i].len; j++) { c = table[i].sym[j];