Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2146888ybt; Fri, 3 Jul 2020 01:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzG+7uW+pN3zRHbL89DmapswBEa035KjlJZsbEKgeS8El+hpAraE5rk3F2FxS4owedchIv X-Received: by 2002:a17:906:fa9a:: with SMTP id lt26mr21808753ejb.502.1593766726853; Fri, 03 Jul 2020 01:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593766726; cv=none; d=google.com; s=arc-20160816; b=Lw4jCLWd1n2okScW/BTcj2UcQ/5xH7EgPboKmcjFOREF8MMIkAP7lqwt+fkCQzDiX8 UuaLSZx0+jIVMunhl8KudgyQxppH8vphtCz5zJx3ulj8MW9t/WOoIv60CzSipriZg5Gu WIhh/WzK2NKnyDSDkkz2ew3blmiFs2SqUKBNAWEzTmckqSVRfAg4PjxWlVHetB2R1oc7 6NPlueLUj/Q2wLdaTXYkgOBEPuWZ4hHElJ0zUqHczumCAUwgzAXdIh6RQTmYC2xmiPoK NC/SYkqCiozvDOHk1CfDNwMy73O6okfQ+Jp3peuBmxmB4iiWwx/82/OxieIBu0kKqzgv gvJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=YpsNm1KkD3zKRvt0Sye3MB/v8Rkx5bvMtnkSRrMyDRrlYNIFGhlCTWZkiAQA1eS2aI FCiAA7Nb0J3qKERN2l0einc0VKFBVw/43eRoSBsUlVxZljcbH1EoKdKfhSdJfj4vEd5+ 6G+1KLqk5J6AxmfxzgVgpP41WDmrxYBWdj0zyiHfwXhrULZE84xuBpdbTuK1gBULck6o PzIFf1CscMJLO0Z99tR4APUtLCF65xEUJnCYShKHCG4EMsG7ulmH1HGIwE7sXSWzG8E+ 4VhYOQP/zPkpOtUvHpTrzwJHHLjPG2NqKZdGePPrqN93Zgp2CbRQdxJrunWyaROmIiNO Z7kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=UOKz7YMB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si7810540edq.445.2020.07.03.01.58.24; Fri, 03 Jul 2020 01:58:46 -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=@sifive.com header.s=google header.b=UOKz7YMB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726343AbgGCI6E (ORCPT + 99 others); Fri, 3 Jul 2020 04:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgGCI6D (ORCPT ); Fri, 3 Jul 2020 04:58:03 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B2AC08C5C1 for ; Fri, 3 Jul 2020 01:58:03 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id c1so6472973pja.5 for ; Fri, 03 Jul 2020 01:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=UOKz7YMBAA7xCoh6IUPLnINGs19MzIg/FeTTNL9SyQ3krPdSHHWxE9imlLWxdVCnj6 SMLoMv5sAXFQe5U3/eLs0J0yhfELchfSq2eAnkx9ubF/dY1msRjhnXHxXD6XRme4U8BT 4U5Q9dyTUB5yPXrEnU0W0tCgO+nlb5o5A10VPkQFJDwSGk5x1JCFlGA29+x0QvYNIsqN WKYkzcRIfMb8Iyu5kYkEyc6/+s39WrbltcztHTYXXqmwtbtBQs4Ymtvsm6/1hDs0lXTx 7WA2GZUxjsJZqVMPrZou7uFHOyd4ro2irxp3OUeDtWEcaCy6zfx/szcaBAf2QapPsCDE 8DyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=sew7Qy4TdyMMF8bsS9FKhRnkne45Djoj3tO+yzqoym0Ie2nU//mBX8ucxno7yIFQkz 7FBJZPtSh1TIspuD5ia1+R1BJtDUxDMirdQB1AJ5eXeB9ycsmfQHQbhO4T9l2zYlZGfT wjQdNm7J9SbNlr4UsexndKvdKgoZ6wANnD/oYqMxJy7HcJ9sBA0HZJYzaVZkewChsXCv rRj0aoOPc4AJMpyQgEPEpPTMQG9AuBwVPehYf3f1I7+Xl2wsk/tQDF2bmScf1XX13yk0 iP6clm2cFkRyEbwIx7z0Rs1kvtSBhRdWpYYI9HVWfXxPx9E4xndRN+qvYCVCUnO4xTPR aKvA== X-Gm-Message-State: AOAM5331RKDXFZ6X/n8vreSk0/QE2DMgJi12kHoC+DgmnQyz7CE/Qo5F 7GkmUewpBDqhc0xcUTb5w3libw== X-Received: by 2002:a17:902:fe04:: with SMTP id g4mr19644353plj.66.1593766682799; Fri, 03 Jul 2020 01:58:02 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id l23sm2126287pjy.45.2020.07.03.01.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 01:58:02 -0700 (PDT) From: Zong Li To: palmer@dabbelt.com, paul.walmsley@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH 2/3] riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO Date: Fri, 3 Jul 2020 16:57:54 +0800 Message-Id: <25223adbad5badb3cd0000df078b407bafc129fd.1593766028.git.zong.li@sifive.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 d86cb17bbabe..22e0ae888406 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.27.0