From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E9093F0755; Thu, 9 Jul 2026 09:30:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783589434; cv=none; b=TFJFh//CNwP9pELd6nMvvwSO4aarUI/11mOxfEQ9AQbf/mBU1T8ikevfeS3yoeQTIf2wTFJs5IBVTy9CggFQqZFaWyHaDU5zxWWlBiULZx7In+I/hZ3hgx5hetzfFZ/XxHKJMA9dRcI4UYMSax2PJqCfCcs6wV8CXzG66Wey4Ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783589434; c=relaxed/simple; bh=gkbcCKmYABm1VJL9iiBAv1PML9K/4RhD0DsCywNLHaY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VW93fWV6Vxi59i+Z1e8vfPA4C4DbZzLpup2YhaLBJHfXPd9zdh5vctql0mQecvVtVRuhbUvMGvULG/ACXAbP8I0zbzh9W6a2TxLrHZY2kNuvoueTA/J3mwbRParThWoCsiqPJCpMtGmk6sZKHuP/775jvqAOeOvnbmKSRDscC80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=BX2yr5ox; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="BX2yr5ox" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 365A9357B; Thu, 9 Jul 2026 02:30:27 -0700 (PDT) Received: from [10.2.200.62] (e119884-lin.cambridge.arm.com [10.2.200.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 993D33F66F; Thu, 9 Jul 2026 02:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1783589431; bh=gkbcCKmYABm1VJL9iiBAv1PML9K/4RhD0DsCywNLHaY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BX2yr5ox0DG6qH7q4NuvQvr7KxQiLF4K926Df7ZqT+BCbYaxFW2q6FcTYmNAGmCyT vQdfDowStNCbGHFgPC7riR/WOSAh87CLArzkG0pBpmuV2IiIkCA8Z7xxzCFrQSD0Aq WRJgLwVE5AgoLrk0dNS7vbbDuYKDpI1n01Zvxa8c= Message-ID: Date: Thu, 9 Jul 2026 10:30:29 +0100 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/6] vDSO: Automatically select HAVE_GENERIC_VDSO if necessary To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Andy Lutomirski , Thomas Gleixner , Thomas Bogendoerfer Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org References: <20260709-vdso-have_generic_vdso-v1-0-d2e1061f268b@linutronix.de> <20260709-vdso-have_generic_vdso-v1-4-d2e1061f268b@linutronix.de> Content-Language: en-US From: Vincenzo Frascino In-Reply-To: <20260709-vdso-have_generic_vdso-v1-4-d2e1061f268b@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 09/07/2026 08:28, Thomas Weißschuh wrote: > gettimeofday() and getrandom() in the vDSO require the vDSO datastore. > > Enable it automatically if either one of them is enabled so the > architecture code doesn't need to know this. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Vincenzo Frascino > --- > lib/vdso/Kconfig | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig > index db87ba34ef19..eedb04974fd5 100644 > --- a/lib/vdso/Kconfig > +++ b/lib/vdso/Kconfig > @@ -3,10 +3,9 @@ > config HAVE_GENERIC_VDSO > bool > > -if HAVE_GENERIC_VDSO > - > config GENERIC_GETTIMEOFDAY > bool > + select HAVE_GENERIC_VDSO > help > This is a generic implementation of gettimeofday vdso. > Each architecture that enables this feature has to > @@ -21,7 +20,6 @@ config GENERIC_VDSO_OVERFLOW_PROTECT > > config VDSO_GETRANDOM > bool > + select HAVE_GENERIC_VDSO > help > Selected by architectures that support vDSO getrandom(). > - > -endif > -- Regards, Vincenzo