Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3401973ybt; Tue, 23 Jun 2020 01:07:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw64nD/zk8eKS1rMOp5rUnWgERkl5ZAs5Vh6WdB9SlQYUf0cWH7QOr2xnT8Dbcg4x5gFjS6 X-Received: by 2002:a17:906:9382:: with SMTP id l2mr19831326ejx.8.1592899631386; Tue, 23 Jun 2020 01:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592899631; cv=none; d=google.com; s=arc-20160816; b=Jm/4DfPp56/pgYk8qy6MHAJeUIattXQmMXql4sc7CFK+bHVtz7foHfpgtbJdV9RsuH 5usYUihwEqMD+pPCiSsLmK5JQbeehe9mGEMbEA0NUE3xlAvfVULuuVH0IogBEhYduMSW n7Ty/tmiwoFlOb6iejYmpiVSo4+94WI/hQMBuZv3XzmWEqYGlU2dil90QJ9UUHZzpb+Z d6klLfzaTFUK5wOLkqt1L9vb7fIgtXFkIHy08GNAEdkrFcCe71OIfm49uemm3yJyjGHP S532t11PMRIy06j+lKd7ewALoNEgV+HVndAeMAJppisy9lJuUPng0vAbo6IQ+C8kE4Lf 8u0w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=hkybhU2AskH+tLaUzjkvNsrbOoQ0oKQ9jwUemN4czi6Irdk+tNzsmTFAIGinc4lpr7 lyAzOd95oPJQE/NQGt7fTVAf/S2cP6ZoMpIvfRba//qMZeX2bRs+ehIX5M38Xa34QU/E wGpbuxvVe0oPRBXIhhqKCgmWdZLJjP7dr1BTsa9SRu1kBZgb5BaJ3kxjkpUtHfHjPpMx Zq8O7FIdP557pg73NB6K4qCFUeRjt/cMDpEKwfBYkGOuWRgaFsZexst0Gx5D4GEupZ2W vd7i7bY+/7sCqcQ6KHTM/B4R7HI+zVPMONTazfthyfjlikDpJytGlAwpkRfLrC94eggg Y5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=TuCRazjm; 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 y18si10536117ejc.318.2020.06.23.01.06.48; Tue, 23 Jun 2020 01:07:11 -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=TuCRazjm; 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 S1731659AbgFWICn (ORCPT + 99 others); Tue, 23 Jun 2020 04:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731158AbgFWICn (ORCPT ); Tue, 23 Jun 2020 04:02:43 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64CD3C061573 for ; Tue, 23 Jun 2020 01:02:43 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id e9so9492553pgo.9 for ; Tue, 23 Jun 2020 01:02:43 -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:mime-version :content-transfer-encoding; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=TuCRazjmS40grkDqJhwcvAh8RwtyFqD92Ki4Rz3qIjFPjt58XSWg6p6In9ykDmJJXW D3wx0UiR2A2t/JmpXXWckro9KUZ2IiR3myo9lPlRAzg4gewNK3N94Awjn2EkVJCNCO9Z r5FiCzfabQxxs3j+1xsO5xTazRPMCoxqm0vB6VKJnpzF7cx+Tt049EbnFJqbF0BNcsi9 ghT/EtvEJ4WBCErg8YDKPlIwDOb1uMhaz4R2GveUKeYxGwq7bdN3d38NGbV4qEJaj7r6 jHg8Lu4FuJGVKC+P1s8KOBQKvGCJSW+R/CJKlSoKyRhKKrik1eA+N+aHIdkFVuNhpH6Y FBTg== 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:mime-version :content-transfer-encoding; bh=ru8jPTPnBePyvGJchZOluuKt4Npgi7HZT0olX4LUWXA=; b=WpSjRUv3bpcOCFO6EvWGZvsnGogSuaguypPYUPVSg9zA3HQPGrvYbHxtTpQ9volEw4 UR3GRhYP+Rc0Pks3k2bqVqvzErD8HFUorM8UfHOcPpPphqKTfaGUVBHkmxnkdgua9VHq EUcsgi/0CeyNnQUPv6ZJfC4IJVBGNIhJLP42FsglGpTubaTpYe2bKDaMfiH2hSJ9IgrT 4Y524shLiQgyxE42UxeeV4Yf4bKFu7wLqae9fUxHiQ5IoahCWPto0ef5T05ipv5Jybdc w5Ng4fMnFrgVSF8kHE7He1+px3lIR3+i7lc+tgZdypkdUIHsO+8afbArnNrAsvERbQnu hTTw== X-Gm-Message-State: AOAM530VJ0pB3cNwoB3M22S5hQJlJbRkOCqjfyg4SDY4aqsZa3fza4xg UoHia0GoujvCuNKXYZfqpT3KYA== X-Received: by 2002:a05:6a00:7c8:: with SMTP id n8mr23161403pfu.116.1592899362851; Tue, 23 Jun 2020 01:02:42 -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 x4sm15499868pfx.87.2020.06.23.01.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 01:02:42 -0700 (PDT) From: Zong Li To: paul.walmsley@sifive.com, palmer@dabbelt.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH] riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO Date: Tue, 23 Jun 2020 16:02:38 +0800 Message-Id: <20200623080238.122973-1-zong.li@sifive.com> X-Mailer: git-send-email 2.27.0 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