Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1831521pxb; Fri, 24 Sep 2021 13:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys6HJE7wPWFvf1UHgBP6wLEr+wi+8vGLApx7T9y/q2aV5F4239/AuT7JbIOFbRM/gtkLN2 X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr13604792ejg.287.1632513667517; Fri, 24 Sep 2021 13:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632513667; cv=none; d=google.com; s=arc-20160816; b=E2TPsAWgm+XkXr4z8uDOrRJXWrnFBLy3xM2ENe5MKuUQdOOMVmxMhTaW5cN7Bdo9Il mYviZd0vHuO7i1REWkzgAs2foHRg0zTWpa3ki19+ZgVn66sIqdWJw+HBLyATde6c1khj T5vV/dOKr2IPJ/fwWcjr/H9HEBkEIE1SYQ16onvFHWgypap2y4XjXmMDovGkPPUwHWph r+COEJh43/0p+UPD11RvdyS4IOIWLSY+B4pL55MOPaKMIA8dgpDXBVu6UepzrAwaIt2j H7nxc5pvGy3NQBpHQE4nObhGa9jMymkhZVqhGVaclemQuBQuBQDKMrdu8tLT8vTMEtnq V5ww== 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=0jum7tXgZWqYublbf947BtFzR/PMfi8BmwBthdSFNlQ=; b=Bwix+hwTASVkWD6GRHwP7WYZ3TDaZnPLHcxAaqS4uLkD24N9U90bnId5A0toumnx3q yd6fRJUM02/zqUCCiKQYeY53MMIOKADEuMNa1f4PmUXqXz8tHkcsV+y0LUgwo8oSJNic EhrkLlw/bTZ+x6bnHBkziBWcg8YhcafPRMITSiZkUmMhOzMA2veY/pnPVllnu5z4zyqL 8bui+PLtvMp3TumFPRnoYVZWBgE20XCPstjn/wF3L3rRGh/NC3523QQ9sLnqeGfEscHS VzLoh3TBnZ8GQLhTUg+Eqqz2Q+0M9VDr+6lw/tz5CIEpVjbiyoNK+I2nsObPtzbCrHeF kgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iSnZJUNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy1si9375542ejc.545.2021.09.24.13.00.29; Fri, 24 Sep 2021 13:01:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iSnZJUNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1345867AbhIXNLX (ORCPT + 99 others); Fri, 24 Sep 2021 09:11:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346879AbhIXNIP (ORCPT ); Fri, 24 Sep 2021 09:08:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D838561526; Fri, 24 Sep 2021 12:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488237; bh=TSqSsrMkMbdLrEEz5dOB9BJmLY/8BtTV45TdyGfhYbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iSnZJUNE3rvd2Gh9NCBhgyJaSnhWDurbGomyuFIaaFdaR5F3d9Xqumi6/Akjov6Rm CvMgxpWEZpgffq4LwSiIfKFd02mp2MU2gLp23qImdO+JoTfoCBaMMk7HViHBwRmzCw fQvpLc1CmggqExh8Btks0MR/rdTq84dK68j7tpkE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Sverdlin , Russell King , Florian Fainelli Subject: [PATCH 5.10 06/63] ARM: 9077/1: PLT: Move struct plt_entries definition to header Date: Fri, 24 Sep 2021 14:44:06 +0200 Message-Id: <20210924124334.455264798@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124334.228235870@linuxfoundation.org> References: <20210924124334.228235870@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Sverdlin commit 4e271701c17dee70c6e1351c4d7d42e70405c6a9 upstream upstream No functional change, later it will be re-used in several files. Signed-off-by: Alexander Sverdlin Signed-off-by: Russell King Signed-off-by: Florian Fainelli Signed-off-by: Greg Kroah-Hartman --- arch/arm/include/asm/module.h | 9 +++++++++ arch/arm/kernel/module-plts.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) --- a/arch/arm/include/asm/module.h +++ b/arch/arm/include/asm/module.h @@ -19,6 +19,15 @@ enum { }; #endif +#define PLT_ENT_STRIDE L1_CACHE_BYTES +#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32)) +#define PLT_ENT_SIZE (sizeof(struct plt_entries) / PLT_ENT_COUNT) + +struct plt_entries { + u32 ldr[PLT_ENT_COUNT]; + u32 lit[PLT_ENT_COUNT]; +}; + struct mod_plt_sec { struct elf32_shdr *plt; int plt_count; --- a/arch/arm/kernel/module-plts.c +++ b/arch/arm/kernel/module-plts.c @@ -12,10 +12,6 @@ #include #include -#define PLT_ENT_STRIDE L1_CACHE_BYTES -#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32)) -#define PLT_ENT_SIZE (sizeof(struct plt_entries) / PLT_ENT_COUNT) - #ifdef CONFIG_THUMB2_KERNEL #define PLT_ENT_LDR __opcode_to_mem_thumb32(0xf8dff000 | \ (PLT_ENT_STRIDE - 4)) @@ -24,11 +20,6 @@ (PLT_ENT_STRIDE - 8)) #endif -struct plt_entries { - u32 ldr[PLT_ENT_COUNT]; - u32 lit[PLT_ENT_COUNT]; -}; - static bool in_init(const struct module *mod, unsigned long loc) { return loc - (u32)mod->init_layout.base < mod->init_layout.size;