From patchwork Tue Nov 3 20:35:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 317148 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA76C2D0A3 for ; Tue, 3 Nov 2020 20:54:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1CCFF223BD for ; Tue, 3 Nov 2020 20:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436893; bh=XdfBV4O7FQ+MpSYIBN0zwATrDNmCvhvgZOpgYA+FNng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BKcPd2Ry/HXX4oDD8TTWi1pFwvVFwDkN6UDJnnzOo95IQeW6XJmZPOtpK2kNxtmJA gRnjSyGSSyws6AvOFVuPEI8m5vk8HsxO9okxPlNZu1aPMXegn0WAkUV99hkkqYf9ae 1H7wDlxbk/Se9fqjUdrNIxv++DpKVIXhCR38Q5/w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732637AbgKCUyw (ORCPT ); Tue, 3 Nov 2020 15:54:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:54418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731561AbgKCUyu (ORCPT ); Tue, 3 Nov 2020 15:54:50 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF8E02053B; Tue, 3 Nov 2020 20:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436890; bh=XdfBV4O7FQ+MpSYIBN0zwATrDNmCvhvgZOpgYA+FNng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NY2nSJIjFP98FuhvsF4Ijh65cqz8/P9iuUejWEdifk5uap4LcfKD2zAAYptlw+OHl u4+yO1gw9eQkPvU8/FEp/8+oS0f+kqtwirrLZ6FBn8YT7gtbxm0kgfAEhHzD0QXDyl 0v6AIIGnWAIuYx67UIbijZLJHpqPaaElWDmwbcxc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zong Li , Palmer Dabbelt , Pekka Enberg , Sasha Levin Subject: [PATCH 5.4 055/214] riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO Date: Tue, 3 Nov 2020 21:35:03 +0100 Message-Id: <20201103203255.443459977@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Zong Li [ Upstream commit b5fca7c55f9fbab5ad732c3bce00f31af6ba5cfa ] AT_VECTOR_SIZE_ARCH should be defined with the maximum number of NEW_AUX_ENT entries that ARCH_DLINFO can contain, but it wasn't defined for RISC-V at all even though ARCH_DLINFO will contain one NEW_AUX_ENT for the VDSO address. Signed-off-by: Zong Li Reviewed-by: Palmer Dabbelt Reviewed-by: Pekka Enberg Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/include/uapi/asm/auxvec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/include/uapi/asm/auxvec.h b/arch/riscv/include/uapi/asm/auxvec.h index d86cb17bbabe6..22e0ae8884061 100644 --- a/arch/riscv/include/uapi/asm/auxvec.h +++ b/arch/riscv/include/uapi/asm/auxvec.h @@ -10,4 +10,7 @@ /* vDSO location */ #define AT_SYSINFO_EHDR 33 +/* entries in ARCH_DLINFO */ +#define AT_VECTOR_SIZE_ARCH 1 + #endif /* _UAPI_ASM_RISCV_AUXVEC_H */