Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3731004pxb; Mon, 4 Oct 2021 08:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywofTwxaHaJXNdqkkXA89Z/V+aI9FlIJDmZSuQ3ybImJejUTXPwCXrG2SFooj8Ibr8B7d3 X-Received: by 2002:a17:902:760b:b0:13b:122:5ff0 with SMTP id k11-20020a170902760b00b0013b01225ff0mr299143pll.22.1633361126991; Mon, 04 Oct 2021 08:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633361126; cv=none; d=google.com; s=arc-20160816; b=YqPjRIeaeD4uB/UK4ilolqVC5mLm4NZ8e6s5m9bqC8wsyHwkRU7wO4N9//y8H0EdXt F3wuO77OWUJApXM9qrw+8RIhUhCd/J6rr+jsExgMHHL02zjYHPMww8iTMstk3/HHrQc6 An5/eWG3K426OCXN4jQ8on4UiA1wB0dAGwJscgB+5tODOxus3d36b9UkEAv9w5FTf39D 5PUNqt7pI+etEP4wpdGR/YA0E7N6HmXkC4XpkPyNCpIFkk3A9KtfAUSmxdywvqOCYNi0 JTtubqxwdVXHBptp7+1sIihUEPz9nZnS/ojOq4Pp474F/xV2k4orNzz2lrR0cXLpHZ2d wQeg== 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=hGT3RyMcaxFy1N6snfRb6NvqdPmKBdZvHkbv6Iawdsc=; b=tOhF0syvGe8MY4PwiGt0KLLiGrZVvmFOUpDBVR6r31sb5WQyHp0kT5a9sJctPYH67Q kOsCzvh94k2CpDo7VB3nZ2VmLzCh/swrQL9DMBSs2jsPfDTNtJ6fCXHebwq8PCuR5rFO 0m2uTViKE5pg5AadRml3jepEpfzDVo1xEvXz0zl2dOnuw+CoXGbDYV+FVXU+dnO4T6kw jOGWybI/0iRW8dq5uPmVNNozCkJWX1X8+CCXkA/Q2FtFgTQIbt6UpgSrV7yiI/svC5M/ nEWZq0n0WFQjVdRI6H+gFMm8lT2Juftyfm0gL/UZv7C6RtwX1hdw3Uu5MV+vgcTMG9rN vC2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0fcxHI3s; 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 l7si18383304pgs.17.2021.10.04.08.24.56; Mon, 04 Oct 2021 08:25:26 -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=0fcxHI3s; 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 S235689AbhJDNOk (ORCPT + 99 others); Mon, 4 Oct 2021 09:14:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:45770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235634AbhJDNMm (ORCPT ); Mon, 4 Oct 2021 09:12:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A48861B7D; Mon, 4 Oct 2021 13:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633352694; bh=xvb0BHosjtP7JTAoWsTComR2+BIC2m1Uxu0qABGC6IQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0fcxHI3slSJ7NiTlEEj2Uib7zv7SjBd5AqK3iRVb6ZswAwdVwaRpzYnMxxeAxc2Il Dd7SI0w69fwMrw1DPZFbeDcxSn0sYliSrKOZO1AMWKSkoXVxtTUoNFRDMTyToFx8to bSOdm9fB4iZ3R3NRkSlb3f/1sSm90DY5CpuNXZGk= 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 4.19 84/95] ARM: 9077/1: PLT: Move struct plt_entries definition to header Date: Mon, 4 Oct 2021 14:52:54 +0200 Message-Id: <20211004125036.325905574@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125033.572932188@linuxfoundation.org> References: <20211004125033.572932188@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 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 @@ -14,10 +14,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)) @@ -26,11 +22,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;