Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp916988pxx; Tue, 27 Oct 2020 03:57:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwofMszF0VhlOVcntrxazaeYfqBaUoxSP3BHGAitmVFxvxAsIdRuixd3+Es2+FacC6yoryD X-Received: by 2002:a05:6402:1d2c:: with SMTP id dh12mr1524510edb.256.1603796259135; Tue, 27 Oct 2020 03:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603796259; cv=none; d=google.com; s=arc-20160816; b=o+Ntvj7LroUdwjVUjI78zqqRsJAxPxGOh4XAitdK50Mc4mUBsmpmYlhRoRIqFecM35 SeGILa5aHLhNB8vggOdhED9KaWEez3IgA9Rk+6osWWcJUyAXtM4UDt1s+NYF8qo3PxZD E2/R9aEbXbVeFqJW2V1d7IbSPhiZssrPdNIOHVWvG+PLEwOqrumxYWAHH8BeeK7zE8CR iAUCztnrw+dmAuzFtlYMY102X/ZwiAHlM+k98xtBTSCCXe2r9c+gpODOwE+bnidr7+C8 O8/YS8Z/GUCQ5s7U4eQc1pFPUdNJTUdtRYMcfvPlooPTQ0TliD6q/Yoob9ZjuiGNrIyY CXpw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T8qt7b9RYX0/JbBHAVI6CVR9NfmtygZo5Xy/qDpfcys=; b=q1q2gn1V1JTibCZAjG/Ogpj5NMsc6P4HuEI9y4XXm7723XpdOR2VL1CldiPgia7h5v ql79Vk0TUNu8qrKJTCtRClPYQFIM8IGIBkvPqv71L/e+Fa5UngnHPBYtZhuueKUP7oOh VgmEXindetQHGRiXlvIZo2qm+m1p16P1ddsYsffvf15a7UarHv8Q+tOXJo79lDD8eb07 UtpT4CJ9Rdz9aUEiN7Hhf4XE56O9Xf+dSXWhkPpQZkITyUFb8yEKOzTX/IDXHsTRPkx8 awFHpBDKq8hER4NgPKJzqwABrVFCE2+dpzCurbkFA0cNATpJbLwf0//Zd83Ima+hEF8Y T3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Usd+ALhc; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd17si912564ejb.395.2020.10.27.03.57.15; Tue, 27 Oct 2020 03:57:39 -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=@kernel.org header.s=default header.b=Usd+ALhc; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731709AbgJ0AD6 (ORCPT + 99 others); Mon, 26 Oct 2020 20:03:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:34788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410904AbgJZX4B (ORCPT ); Mon, 26 Oct 2020 19:56:01 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5442E2224A; Mon, 26 Oct 2020 23:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756561; bh=FwGCC5je+qSALh6pUyJFCTlFd8RGLBo3/olgLlei+uQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Usd+ALhc2UfMn04wGNyEGU4c61Q0csHAPHBwVnNeyCCCpjsLTgaznt/dl1Rgc1zzD 86pDu8XHG7Zbsv76iBLRVGMwIU8T/OAqjZBG4kxGU+dSRaJsZzS3UgT8PvUTCs/OD8 cADjfva2W9S3H9m6OOfyM6fy5PMn7HzTarWLhPKQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zong Li , Palmer Dabbelt , Pekka Enberg , Sasha Levin , linux-riscv@lists.infradead.org Subject: [PATCH AUTOSEL 5.4 36/80] riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO Date: Mon, 26 Oct 2020 19:54:32 -0400 Message-Id: <20201026235516.1025100-36-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 */ -- 2.25.1