Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5681184imd; Tue, 30 Oct 2018 23:48:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5e3EpeTdEjgm3BYuK7G8WIReVjolDneG+kf2WMTFTRKqKy3P9fBsOurJPYEt2VWNM0c3NW2 X-Received: by 2002:a63:7986:: with SMTP id u128-v6mr1931131pgc.111.1540968488742; Tue, 30 Oct 2018 23:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540968488; cv=none; d=google.com; s=arc-20160816; b=yJ+68bCkrTWuw5rRl6p5FS+s62NHVvaXubIgRKpzzG0gdIy3+zZcMMdnXW07OqwDa4 HMRJbSEYya9DoLG7ehI8QAlN/3DFrl0d2UYhPZBzK3Ku8vfLVoPVpRWJDPQxPy+FKsVh 7B1NiGqc099FuHYybwyRArfxLoKTM+RexNTwLKk0x7HB7EKqfWbCPaZPlRBlxLgISk5U X50Y6hQOcs9IVNkDH1ZRZ5n3fATTe9HPXe92JkabaprJ0v0rxDpu7/ZDTDZvrH6A4GrP DrY/qpKzuwwkdmvJnqtrXJA8cMhQxRGyVgMQeBWLyTu812nGc3c4TaP+ECkIUVf69Vth TZtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=6Fbt1DrvQ5WLpCxOHM0qCKLv5iGK/kb8b9uOh/P5ZQg=; b=DonXrVG2uUasHMD+E7Om9zOyOVvEYwZVWD1Yn8EcZDWA/UPlA/8A800OvOmZ099BBC tphAONACwYpQUMy+PsJXR9EV6K/LjfGGPxvc4RUPxsGoXy48F4vyDELTZG8v/P4kAZQ7 RPetCRBNUqbBUq0OVHdkTurDTqzKLZcYQaawMO2CSAeuQPQkrajiqZDBqtnj82G2V4gA 8N+0Gxorw06g+533ZY7CbipItLb3beg1pUW0OAF9s66qpu2ioPijpqUK+shEIrX4if7U m0FjIJ0NQliVFjKr4eXoL+4lI1jhorsTAndbpm+7JtCkktxNe71DSYgTHOHDwStqnl/d F7gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b="G/cJk7Wi"; 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 e7-v6si26842044pgn.82.2018.10.30.23.47.54; Tue, 30 Oct 2018 23:48:08 -0700 (PDT) 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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b="G/cJk7Wi"; 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 S1729219AbeJaPoK (ORCPT + 99 others); Wed, 31 Oct 2018 11:44:10 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33356 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbeJaPoJ (ORCPT ); Wed, 31 Oct 2018 11:44:09 -0400 Received: by mail-pf1-f196.google.com with SMTP id a15-v6so7146150pfn.0 for ; Tue, 30 Oct 2018 23:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6Fbt1DrvQ5WLpCxOHM0qCKLv5iGK/kb8b9uOh/P5ZQg=; b=G/cJk7WikN8Jxaj2TMSNLJDR23Db8rkhdwuz/k6aCXGFo4rJbKhLrzgNQCJ54GW6JK E/RUc66YxFf3Fik67aUvbzRzIqwc9sNeqfEq329jo4NRXic3LeMp7OnXiftm1nEEo1p0 J553lRpV7peDL17dABbHRockRmtuUIPnDPRx6boVJckAJ1mdpQvl1FbV3/9u8P4Wis+3 be3f0ysl8PiKrvuDKwnwxvRY6l39/XXoHwBW8y/abS0lp25x3X33b8cMzNq6kTrR5RxD V381rl/lE3lbnvjjn5CFVo6Xdngw8IolmPHrASPGCexe7+MoG42iPDnuMfiPTafWn8OV zFmA== 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:in-reply-to :references; bh=6Fbt1DrvQ5WLpCxOHM0qCKLv5iGK/kb8b9uOh/P5ZQg=; b=Zsk4tJ7+ooyY2N5rV4urMCMs9XvhvQ91B0bmy7zAfNF7SkDhnnk5XyAQ7ZTlhFvF7G LJZnrgTy9YX6M2m+BGwBklrP1u279mMJKx0rOHbJMSKKSeCZVz+2ZKlCPx773FyXark7 q64dOdHpk9QlEdUde4sY4ah3h9/KAFVJZCnt0i2d1qH6o+mHFz4cMyeqVFX3SQW5jYRy K2GSGygR4Qq6hK77dMl6S8+b6wg6JCaguebHZIbNGvXG8Ysnd70qIBDU0P49CwexpS6p d1x1GWcxL6ebo5zq5ipFUoBTqQsOKgA/mwfRbZIz9B2Yjqo7EkNT2IPtQ9BiCuzeRBR9 6pMQ== X-Gm-Message-State: AGRZ1gJASTUwA1PjieEiIbUqY/IhusRJvjrriXfFEmbzZMs56AtW1SQ8 10zBISKz7ER1KadSgHZnIRO+1w== X-Received: by 2002:a63:6b08:: with SMTP id g8mr1910867pgc.119.1540968441269; Tue, 30 Oct 2018 23:47:21 -0700 (PDT) Received: from localhost.localdomain (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id z7-v6sm12127306pgi.42.2018.10.30.23.47.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 23:47:19 -0700 (PDT) From: Olof Johansson To: Palmer Dabbelt Cc: Albert Ou , Zong Li , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 1/3] RISC-V: lib: Fix build error for 64-bit Date: Tue, 30 Oct 2018 23:47:07 -0700 Message-Id: <20181031064709.30981-2-olof@lixom.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181031064709.30981-1-olof@lixom.net> References: <20181031064709.30981-1-olof@lixom.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following build error from tinyconfig: riscv64-unknown-linux-gnu-ld: kernel/sched/fair.o: in function `.L8': fair.c:(.text+0x70): undefined reference to `__lshrti3' riscv64-unknown-linux-gnu-ld: kernel/time/clocksource.o: in function `.L0 ': clocksource.c:(.text+0x334): undefined reference to `__lshrti3' Fixes: 7f47c73b355f ("RISC-V: Build tishift only on 64-bit") Signed-off-by: Olof Johansson --- arch/riscv/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index 5739bd05d289..4e2e600f7d53 100644 --- a/arch/riscv/lib/Makefile +++ b/arch/riscv/lib/Makefile @@ -3,6 +3,6 @@ lib-y += memcpy.o lib-y += memset.o lib-y += uaccess.o -lib-(CONFIG_64BIT) += tishift.o +lib-$(CONFIG_64BIT) += tishift.o lib-$(CONFIG_32BIT) += udivdi3.o -- 2.11.0