Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8403397ybl; Thu, 16 Jan 2020 16:10:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwnVMuju+pQJEgH/H0pqEMuakSqnruVTvu22X4BEdZ2dGLjpBB8vhLpNs9VVVkzmFIj20nN X-Received: by 2002:aca:f456:: with SMTP id s83mr1401152oih.12.1579219827179; Thu, 16 Jan 2020 16:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579219827; cv=none; d=google.com; s=arc-20160816; b=k9eqGwb8bApME+MpMrKoNUoSa41WMu9otfyXtWEV21ZwugA8bYkwirNPwnjL5AtKPT RhBdwZjxHPxVVXqtW+G6ZIeJvgp5+5uUG3wcAqMADqv8LkgcVsRrFSLBrENyMKNZYNr+ +V6hKGqX6DCCnWiJbKYtluudXWWwG6XzWDkBHR/suA+58NFFtEoT+Ng+bx1BuEDRNDKZ FWTDAiR5pHANwJhTeijnfvGLUp/DsIJpGVhmWLqeHnUcQ+cfPEOdxZuof6LialqehzyV QLn6+Nk1XBvG/cfRhLHzHnSwcKKJgN/vn2GcGHOHPE+eJKXG4N06bukcvcvrs3fN3nm0 HT+g== 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=GWhySWGXiFFhtmbtKoB2C2yRuhKttGGqqWtt/Ptj1l0=; b=BX/kQqDnYIiUCKLk2LJpyJI8ztjUlVrAl0o9gw5fNJJWA3fUCSUrg54qU6eFKSazdW 7mvuDK+MB7sjHcjUTJhWzQdLs48PMMZJ2FWV4wYfiy0MNDtcrBpAoizxybP3DThSoOvf h+9i5i6bFpkczg7Nfw6Yw61blg5ZR6TPQVRRCHod+BoAnMQ6I8LgzHLvSwQk/VO7vrQo DsUlWRscH3zefDDbbbHYsd9ChB8HrOv3HAWzJvRmPKIFl60+BUe3O5YJpAyjImH6WSgO 5li1pjC/mExeFWOwyYNDvk3lAmo/nruYIEs1HopKSZxLLhXKPksuO4ldXQT5BeSkaRUj AndA== 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 i8si12274592oih.206.2020.01.16.16.10.15; Thu, 16 Jan 2020 16:10:27 -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 S1729299AbgAPTnv convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Jan 2020 14:43:51 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53142 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbgAPTnv (ORCPT ); Thu, 16 Jan 2020 14:43:51 -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 1isB3O-0008V7-83; Thu, 16 Jan 2020 20:43:42 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 87FEC101226; Thu, 16 Jan 2020 20:43:41 +0100 (CET) From: Thomas Gleixner To: Vincenzo Frascino , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Cc: paul.burton@mips.com, luto@kernel.org, kbuild test robot Subject: [PATCH] MIPS: vdso: Define BUILD_VDSO32 when building a 32bit kernel 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: Thu, 16 Jan 2020 20:43:41 +0100 Message-ID: <87d0bjfaqa.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 The confinement of the 32bit specific VDSO functions missed to define BUILD_VDSO32 when building a 32bit MIPS kernel: arch/mips/vdso/vgettimeofday.c: In function ‘__vdso_clock_gettime’: arch/mips/vdso/vgettimeofday.c:17:9: error: implicit declaration of function ‘__cvdso_clock_gettime32’ arch/mips/vdso/vgettimeofday.c: In function ‘__vdso_clock_getres’: arch/mips/vdso/vgettimeofday.c:39:9: error: implicit declaration of function ‘__cvdso_clock_getres_time32’ Force the define for 32bit builds in the VDSO Makefile. Fixes: bf279849ad59 ("lib/vdso: Build 32 bit specific functions in the right context") Reported-by: kbuild test robot Signed-off-by: Thomas Gleixner --- arch/mips/vdso/Makefile | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -18,6 +18,10 @@ ccflags-vdso := \ $(filter -mno-loongson-%,$(KBUILD_CFLAGS)) \ -D__VDSO__ +ifndef CONFIG_64BIT +ccflags-vdso += -DBUILD_VDSO32 +endif + ifdef CONFIG_CC_IS_CLANG ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS)) endif