Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp109236iob; Tue, 17 May 2022 20:29:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/pNzbYECP1a8WcyvBFkai2HKjv86MrfNu3zJU85NyAfb3epiDlyhWFv3iDMCU3dTY7i2c X-Received: by 2002:a05:6a00:1acf:b0:50e:1872:c6b1 with SMTP id f15-20020a056a001acf00b0050e1872c6b1mr25197989pfv.76.1652844599201; Tue, 17 May 2022 20:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652844599; cv=none; d=google.com; s=arc-20160816; b=ahzFJs+TUeTSm0uAA+0anp/BISruMCMz3VVJ3DMDTHrFLWDZdourGCIvzmC44vcYl/ XybsJXx82egPWX2mNyKzDBFEe4sQtnRpiuAdkogmA2I+SPXk2KdFpRlhQHfmltDQ2sGp yMl1MkwKwGXM/eGw8wPiUP4tn/7byYb5pMfVsYczf/rNezzeAMbSNcfp1T911eMvn3FK OHhKSvnMLy2WFq3wpRRmJlvFf5EjhQQDLX384GF5vwESCnjhEuiJsL/cJkK/d2IElKg0 Lk6uDusN4xR5tp85J3op+YNxzNLvoqGUmCCty5CgdSiVVU3VFxINvglHa20ZBlXPCqGs Mvcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fQzWuq6EodGqOHx9GjfS0em/RXgWCwpj6VxGmmEdosQ=; b=rDPqfTnQjLEz1bwTi8tvT7bcowuJrU2s5LwxG8WssgcGBeiKfUI8iiRihH0eiRx7EO C/OpsvsN+fyWFQ7WYRZ3iCJk3dnq7rR2QkrcuKhJH2iLQaVkGL1V6hAJYxXXUwiW1P3I EpiMfX4ehGjpvBDsJWjiwIQ8EVM6vUwyNTeMzUUFbxzeY0CPAxXLY8461ecDSJiE6hfV 3CRkDvRscv41BdgcmjbUczjVMCIBo9fBUJCN6pmNK40vGzU6iA+l8ZdORdC/vaig/Fsh OMAqNFuefPxPIlrLrVYrr/DFN3p9OBlXkZqgfoSAL2NPhGTeF9E2RauLtL9QCDfWwfHO 013w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GSTBgEDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c9-20020a170902724900b0015872db9713si1134111pll.131.2022.05.17.20.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:29:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GSTBgEDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C2496D4F4; Tue, 17 May 2022 20:24:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348690AbiEQOTU (ORCPT + 99 others); Tue, 17 May 2022 10:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236741AbiEQOTR (ORCPT ); Tue, 17 May 2022 10:19:17 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9D0344FA for ; Tue, 17 May 2022 07:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fQzWuq6EodGqOHx9GjfS0em/RXgWCwpj6VxGmmEdosQ=; b=GSTBgEDKg243NCQCyGxq80aNwY UFyU1aun29GdmgxMKObbq2Hbt2UesJp8w7dKQHvVHGRXf67gtQFmxsekfTF+fQVtABv8mDgXc/Icf Y9rVTbiiqWz00VT1N9LAWk/eDmZ4v6v2fFdBKW/pU8dkf9m1pLFOqsNF6TpZrnYyWh0CbZ0NUpI9n SToxgqngGYftWPXFOiV8Pyp4s+bUygYNahLOMWMGEKS2LOxu0VmyokMbOVQGKgTgSNSEX60hu7eVu rwgJ7S98vmojp8OkpyaV5QcgivGOwCpJPO6P97f6CfWPFMCrLpDYXRHdS9HRc4x34nG+NhQVE857h viTCLWzA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60744) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nqy2Q-0000NU-O8; Tue, 17 May 2022 15:19:03 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nqy2O-0004VH-36; Tue, 17 May 2022 15:19:00 +0100 Date: Tue, 17 May 2022 15:19:00 +0100 From: "Russell King (Oracle)" To: Chen Zhongjin Cc: alexander.sverdlin@nokia.com, ardb@kernel.org, linus.walleij@linaro.org, nico@fluxnic.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] ARM: module: Add all unwind tables when load module Message-ID: References: <20220401131534.241205-1-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220401131534.241205-1-chenzhongjin@huawei.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!