Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1584387ioo; Sun, 22 May 2022 20:05:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUAifz1nkbigLf0Ek8CgFvR016XxHFeah215g//+8S+CT1635hH3v+DyaCCZd8QP21v+6d X-Received: by 2002:a17:90b:3a8b:b0:1e0:548:1490 with SMTP id om11-20020a17090b3a8b00b001e005481490mr14476915pjb.144.1653275138441; Sun, 22 May 2022 20:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653275138; cv=none; d=google.com; s=arc-20160816; b=JhOZ9NxdVLcNItidSBr5VHKxsW1QJN9J+YDHtWsQh7mOWeLKJrBppTtivZKt4gz7V/ EHWtq23woQRXDwjlg/iWPVMtvO4eLtbyKw3h5BU88Pez9RHV0DrIMiMIRaDu6f7V6YyH kVLzQ3nHExvN+g8Thc8xC5aZChw7VmBtYcr61VS/VaRBKfJq34oWM/5Y/95XYmFzt1WU zeouAuC8xikxhClbpC0bKB34Q+8YJkGooOxTUcol9W0NRWCJl8W2AKICD8Xz+X55wrOF ghlLnMYNpNOpeuHQ8ao7lVRvebSxCxovXAwArtBdCcMsYZG6/v43acFGTTRQnIQUYBMb 4yqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=lYIdQvrGXnJfEPI2o8GQsDg21p+9HOoEeh+/i6Oklpc=; b=uR6/u9fnAE/2VqHzINYZXaXD/pPuXkZyCoeqbGxmICW7jMjbmahC12NLKRobu0VIxB VWrUXGXP9IdkFPlCYsYecc4oTAxMB0Xde0geZ4Bt3qruuMBIJyy6tGRe44e0fJNMHVPk d16vIn56g9Monv+LsbyH+BY+4BCEkWKRfZAYAT8AykuxwLOnPToka2PLiidxktJpQLBI 30nZejTDmxF20Fe03peskqE6TnQoqy3b1XFy4WB5G7WgnAOn1FpEifh5BlcXWpXE0VoH 6VlqOuZjO2oZo9hyG+5MsSqXcjBqTdOFI1F6WtuZxr1x3JXbSHt3UMVNpGEpP5zPzP4h AKxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a631503000000b003c1e7f3cae2si9457031pgl.67.2022.05.22.20.05.27; Sun, 22 May 2022 20:05:38 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346664AbiETHxa (ORCPT + 99 others); Fri, 20 May 2022 03:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239607AbiETHx1 (ORCPT ); Fri, 20 May 2022 03:53:27 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50458EBA98 for ; Fri, 20 May 2022 00:53:26 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L4JpS3ZrRz1JC4J; Fri, 20 May 2022 15:52:00 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 20 May 2022 15:53:24 +0800 Received: from [127.0.0.1] (10.67.108.67) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 20 May 2022 15:53:24 +0800 Message-ID: <59b140a2-fd9d-f5a7-85e0-9ff712e468df@huawei.com> Date: Fri, 20 May 2022 15:53:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4] ARM: module: Add all unwind tables when load module Content-Language: en-US To: "Russell King (Oracle)" CC: , , , , , References: <20220401131534.241205-1-chenzhongjin@huawei.com> From: Chen Zhongjin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 2022/5/17 22:19, Russell King (Oracle) wrote: > Hi, > > On Fri, Apr 01, 2022 at 09:15:34PM +0800, Chen Zhongjin wrote: >> struct mod_arch_specific { >> #ifdef CONFIG_ARM_UNWIND >> - struct unwind_table *unwind[ARM_SEC_MAX]; >> + struct unwind_table unwind_list; > > Why is this not a: > > struct list_head unwind_list; > > because, from what I can tell, the _only_ member that is used in this > struct unwind_table is the "mod_list" member - so everything else is > entirely unused and redundant. > > Thanks. > Thanks for review! I have updated it to v5 with two other fixes. Also updated it on patch tracker. Best, Chen