Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4545126ybl; Mon, 13 Jan 2020 15:51:16 -0800 (PST) X-Google-Smtp-Source: APXvYqx6vljzXZPEwKLBCAo3d1EkJgfAbdcRIndhF8Se9OA3xcwfDKpyfWteZ54ZcR9FCdOWRZPL X-Received: by 2002:a05:6830:9a:: with SMTP id a26mr15573976oto.131.1578959476746; Mon, 13 Jan 2020 15:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578959476; cv=none; d=google.com; s=arc-20160816; b=dtilMKGXY9gTg9LiXlDeECqEwl5UyU5NLXs/O+G9PsOIiFX8n5w+IkTGahz81l0r2B +QZ5qBdK6YrvGz0IM/iLTA7KADZRTVlaV7C1cffYKRB2mKwUWbn+FueG1t5mSiGy0poe 5gD2qIcNay+mnZfbrlAdTOBUYtGTj55GGLmU0j48pPBZLx9lQfZUvxtd2l4iK0XKHxua 23kf2MIRElMKmQ2jg7Udr3ge7ixAUkrgntnUTfUn1vc+QsGMR7Sfy2sSO3z/BpxiV+YW GlOhfOd27PuLeKm1WhW/zNgVLdupMtW+M+tGc9ousiz1zpqstJdN9Iw1m69i/NKj4bl2 ThmQ== 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:references:in-reply-to:subject:cc:to:from; bh=uF6yWZ1QCzPVnT+78NFnRVdACYtMiBM1TzN20LT8jV0=; b=bGNyFk7I84ynQAEhT6I9QusSr8Hw+NeZktaYkrEqIZQGp/gxbycY4eiJxVGtHcWSS/ tQiXG2QTBytPGd77sC4w7evjAw8yblbYnB5IVzwJEP42QYPg7bKxUe+H8omiaZ14Ew9O +tlwiWRzuhy68MRZ0JPgz4orUb1eCHKzuYEiBa6iD+gufX3u5vUZ6+wwciTBjgfbgmk8 4aORePIzqPeU/FhAJMpyBMP41187EZuTAK+JbdTWM4mMrGbmNLU+NO5iiyaTbTp60L6o JljSG22VE8ozfGKfbvhO1E1vZYc36DdzgqVut9l1eUPne/cW6czfT2Hw7yAt2goFnkbw J5vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si5255727otf.84.2020.01.13.15.51.04; Mon, 13 Jan 2020 15:51:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbgAMW2m convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Jan 2020 17:28:42 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40483 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728819AbgAMW2l (ORCPT ); Mon, 13 Jan 2020 17:28:41 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ir8CG-0004Yk-9j; Mon, 13 Jan 2020 23:28:32 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 40F6F105BE6; Mon, 13 Jan 2020 23:28:31 +0100 (CET) From: Thomas Gleixner To: Vincenzo Frascino , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: catalin.marinas@arm.com, will@kernel.org, paul.burton@mips.com, salyzyn@android.com, 0x7f454c46@gmail.com, luto@kernel.org Subject: Re: [PATCH v2 2/8] lib: vdso: Build 32 bit specific functions in the right context In-Reply-To: <20190830135902.20861-3-vincenzo.frascino@arm.com> References: <20190830135902.20861-1-vincenzo.frascino@arm.com> <20190830135902.20861-3-vincenzo.frascino@arm.com> Date: Mon, 13 Jan 2020 23:28:31 +0100 Message-ID: <87tv4zq9dc.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vincenzo Frascino writes: > clock_gettime32 and clock_getres_time32 should be compiled only with a > 32 bit vdso library. > > Exclude these symbols when BUILD_VDSO32 is not defined. This breaks the ARM build with: arch/arm/vdso/vgettimeofday.c: In function ‘__vdso_clock_gettime’: arch/arm/vdso/vgettimeofday.c:15:9: error: implicit declaration of function ‘__cvdso_clock_gettime32’; did you mean ‘__cvdso_clock_gettime’? [-Werror=implicit-function-declaration] return __cvdso_clock_gettime32(clock, ts); ^~~~~~~~~~~~~~~~~~~~~~~ __cvdso_clock_gettime arch/arm/vdso/vgettimeofday.c: In function ‘__vdso_clock_getres’: arch/arm/vdso/vgettimeofday.c:33:9: error: implicit declaration of function ‘__cvdso_clock_getres_time32’; did you mean ‘__cvdso_clock_getres_common’? [-Werror=implicit-function-declaration] return __cvdso_clock_getres_time32(clock_id, res); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ __cvdso_clock_getres_common cc1: some warnings being treated as errors The patch below 'fixes' at least the build. Can someone please confirm the correctness? Thanks, tglx 8<---------------- --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -14,7 +14,7 @@ targets := $(obj-vdso) vdso.so vdso.so.d obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector -ccflags-y += -DDISABLE_BRANCH_PROFILING +ccflags-y += -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO32 ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8 ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \