Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4995932ybl; Tue, 14 Jan 2020 01:36:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxTtWI3zY9FlUlq19e2a/JCBUh+lnyhvdrNT2t/vaHyHj56F4xBAR70M6Pp5pPAYMo1wrNR X-Received: by 2002:a05:6808:a11:: with SMTP id n17mr15465248oij.94.1578994567400; Tue, 14 Jan 2020 01:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578994567; cv=none; d=google.com; s=arc-20160816; b=z8YeCVO1tQl3NDm9xeFh+mcETyLgnvNB+FYRCbV46cP8H0alU2aL0rafa9MHipkDgS EhLj3f7OSDHEKRywwE5kuytGmQzfS9nrAMxPBN8DZT3Xr21s80J4SU1uFpVPbc7SHtKM 1+dkkeK9XkdsEF6otiFAI4cR5iIVY5UIfwjdarhkl9O9/DxGn+koTnob8dHOUOpX+QP6 YQqaEFmbNsZByJKeEhpqrnrCCvt23VhZz5spf+z2KG2y/J38B3xtQz86KBpe8sHKyl+U 6/ri/mGbu4hfCZu+NqCm1V/J7m6PfsCR9dCGyHyQairHziikMjsLGdlRO7wFeOFVseRJ uWZA== 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=dogpnvH+XbCMd6iror0NQ+WyLT4mQkrk2h8DKb7OUmY=; b=DKTrzvQkYbwR0eSzYkEQlU7FiLp3a0BJodx4rp9zzSaQIjopHq8v6Gm0IAhopVsZUn 8Egxz8ry1g9iPd/4B22V+cSyB+/2ZzVc1mCquCL/6dtC03Yuls7lj3VwsOmbFeQevZSc fyNyf9D9d+qw9xObbiMV+ZhC6Kp7vqvPKhOhy4YmLP1Rtwzv11xw0ug8UyGCeFBKgD0J K6FAUkfHanphormL1aE/hF00hX3fpEpvScQjJoz526k+7NXddsYghgG7QP0hLi7Zrjze esO8eiEY4s7KC0iqOKb1vukeRER6BHhnmb7N6Urn6B10nzCQBwB8AFRD5/RmNv8KNgah FfDw== 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 g9si8755856otq.68.2020.01.14.01.35.55; Tue, 14 Jan 2020 01:36:07 -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 S1728799AbgANJeB convert rfc822-to-8bit (ORCPT + 99 others); Tue, 14 Jan 2020 04:34:01 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:42106 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgANJeB (ORCPT ); Tue, 14 Jan 2020 04:34:01 -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 1irIa7-0006V0-A2; Tue, 14 Jan 2020 10:33:51 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 90C00101DEE; Tue, 14 Jan 2020 10:33:50 +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: <87tv4zq9dc.fsf@nanos.tec.linutronix.de> References: <20190830135902.20861-1-vincenzo.frascino@arm.com> <20190830135902.20861-3-vincenzo.frascino@arm.com> <87tv4zq9dc.fsf@nanos.tec.linutronix.de> Date: Tue, 14 Jan 2020 10:33:50 +0100 Message-ID: <87r202qt4x.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 Thomas Gleixner writes: > 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? Bah, it's not fixing it. That's what you get when you compile the wrong tree...