Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp778955rwb; Mon, 26 Sep 2022 05:53:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EiHVKnsIIcVhrmEuQwohfd/IKtxa6bXY1D9/yp/nr6MQU7w9MuHWD8+fRzxYdyeV3xDHW X-Received: by 2002:a17:902:ce85:b0:178:292b:a87a with SMTP id f5-20020a170902ce8500b00178292ba87amr21758537plg.167.1664196816069; Mon, 26 Sep 2022 05:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664196816; cv=none; d=google.com; s=arc-20160816; b=CC2bQuPi3JfNG2OTeB9w4/4nvXeW4AcF2czfSPpy3jcm7D/qNyWLkSt5jaLkO/2sgg TgrL67yyjC02cTVYoo74zOPuCH2L6N+3M2DcCLzwUMFQjfz+M6nGgBcm9reyjJXCIOD0 JW9Oy03ZxCztjKmP7lnRF6SZY2/I3qhDowwa+vaDM5OQHyKxiuP7NxEEpRKwaFC+KaWx X5GCA79hxACoY7Ik9m5C+YhZNaAKKFaZZ5ZZaUYb6liRp9HdNCdQloLWipavfw9gNlJ4 47pDq9Rc0od6NdT9jYeXC5KUF7Epklk0Qoh7k7uwireoWjBNpUIXBPJk6dj27Oox0WmX 7lFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ln0bYS8L/eKuUfqqhbiEk6H7Zi4eJbKcxNF0L2EDjIg=; b=JbIgxabj3l+yiwKyqVdcvSsun6lBgJv1fi+5ucrJxlpgc7L6j0uy9D0mZo7xBRftzS Z08Mv/RHEmcwFlEbGe9/02f3uOvkDmmD1HgA0AFrqawYGyeVxY98EuVHTWgEjR7TtR2N Ic6gXX7Dby2qOM5UcSpPV+GU/U5wes8BM/chry+mLciX41GcCBKlJS+BEu6v4yl5gCak 0IVrmT7PyRPZr33jSydavHyANwvwODkKjGYV9k8vfQ6eVvPLHbBCqssjkKa67FmhzTXp qKCkXFJIth8GA7j2MjcjtVhLMj/tMBBgonS+xZk/R7VL3nJgbdJktmAWaqXDyQVLMklT KxPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=utQ1AlSF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga22-20020a17090b039600b001f561cba131si11145153pjb.179.2022.09.26.05.53.24; Mon, 26 Sep 2022 05:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=utQ1AlSF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235630AbiIZKaJ (ORCPT + 99 others); Mon, 26 Sep 2022 06:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235352AbiIZK1r (ORCPT ); Mon, 26 Sep 2022 06:27:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 529A24DF1F; Mon, 26 Sep 2022 03:18:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 52823B8093B; Mon, 26 Sep 2022 10:18:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88813C433D6; Mon, 26 Sep 2022 10:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187519; bh=4rwkvD/DNcjNXfcsWGkTsOeqnSDE+8I7hUNF1BK6CT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=utQ1AlSFcPw0HyY7HPmnQYcV1Q4ZHQRlGk5ZoQFFt8KK/Vj9zrMRij4ltMtpJ1jlm sLei4jx2w16w7WHg5GHD3sjfmZBGDrfR81X+diIzk4JwJTbDh8TbCaidKPrJmLQKR9 w17hYyQCX+ezWohxCBL7cmebZCdIExU3DZV6Tf+U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Youling Tang , Masahiro Yamada , Sasha Levin Subject: [PATCH 4.19 16/58] mksysmap: Fix the mismatch of L0 symbols in System.map Date: Mon, 26 Sep 2022 12:11:35 +0200 Message-Id: <20220926100742.028511893@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100741.430882406@linuxfoundation.org> References: <20220926100741.430882406@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Youling Tang [ Upstream commit c17a2538704f926ee4d167ba625e09b1040d8439 ] When System.map was generated, the kernel used mksysmap to filter the kernel symbols, we need to filter "L0" symbols in LoongArch architecture. $ cat System.map | grep L0 9000000000221540 t L0 The L0 symbol exists in System.map, but not in .tmp_System.map. When "cmp -s System.map .tmp_System.map" will show "Inconsistent kallsyms data" error message in link-vmlinux.sh script. Signed-off-by: Youling Tang Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/mksysmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mksysmap b/scripts/mksysmap index 9aa23d15862a..ad8bbc52267d 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -41,4 +41,4 @@ # so we just ignore them to let readprofile continue to work. # (At least sparc64 has __crc_ in the middle). -$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2 +$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)\|\( L0\)' > $2 -- 2.35.1