Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1730333ybk; Thu, 21 May 2020 13:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuYjcaTMcmmokqFBGhu0wpn1VzXmTDYtlBsFzTV7g+hS4nULJioZIIJIgE7LguihMMUvRl X-Received: by 2002:a17:906:780b:: with SMTP id u11mr5076455ejm.341.1590094534176; Thu, 21 May 2020 13:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590094534; cv=none; d=google.com; s=arc-20160816; b=TEGZMz1CxyaVblTwgGwu6VW5wDGyqbqvasl/nlt/7s38vyBaPHPRPTPdBnI+uDs3pd q5X53LsQ5kr1Ku6XyXGrhV9gVi91ckGnT2Fw1jx8BelV+/A1RyHSPUjgXnpX/U511Z2v VvqDB429mvaZczj+YcR2tBt6JS1htuqxx67iGwsDEuiDhoahHoK82Y2Fx8pESLof3P3d PQF9hwqWK6CGADGEsNpI9pG84GEnGSplrNGJXdv2/qTSXYCM0Rhr4Raoox0C7PWNdYY7 yPjsrnDe6IUZhch0scahtxJmQsj6XoetajeoI9/dBf8kM2b0ZIZ7X94lsa8GmPzM+QOu fgGA== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=H6dqckf1vTL0+A9F3eub9FsB+SNy/hjV+N0HkKmEeVI=; b=BQfzlDtokTiAFdjgQ6ohp54G9YmPjSjlRGCCth4uv40IlDmxhPMr1PxAPQvJkLNj0w /V7Ic7D7qTjhbWtJup9rNVcUIrQlai9/FM7f49xwYHjiwtC03BmDpPreQh2VdB5ib/T9 zugE+PBgHvd/IEWfg3kZsNN6caxVRHThVHMGl0BI0jpkkewt0a53Fy3Svg4ePf85Rayc qImK5D/nuHOQsVKK/WrtG/G/Hyp7y8t6/KEPAj6LpmRCcjMjYwd+ILQLnnsv1EFDpfLS DAq6lh5PRnvyqOWV7gKtKswauEskcs0FqWbkn/WKxA5IbsjcclG98s17KGsWCYeYN63D uVCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RDFrFy3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu16si4050553ejb.600.2020.05.21.13.55.11; Thu, 21 May 2020 13:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RDFrFy3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730025AbgEUUvn (ORCPT + 99 others); Thu, 21 May 2020 16:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729538AbgEUUvn (ORCPT ); Thu, 21 May 2020 16:51:43 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2B9FC061A0E for ; Thu, 21 May 2020 13:51:42 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id f15so3433614plr.3 for ; Thu, 21 May 2020 13:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=H6dqckf1vTL0+A9F3eub9FsB+SNy/hjV+N0HkKmEeVI=; b=RDFrFy3ov/aGsnUPaB0stZXoE0ABQ4rYXo9u6vo64Wka9qQ5Ip677wBiOOO4ti7m7b 7bdkb270ao4fLFVqp03QuW9N10vSSExILol4Vju1tgR6CLePeLQCKKzz7+gBP9YVAjft ohwJob5MiJkgWON81j9KYKoUQRX8b1RR7Ot95LcYdQ+SKfpObt84NmVre2uAPo1oUNvD mR/O6pEK6t1IoP0HABsAJ397okttkiiOG7xhLa0O14PFRyNLUS0mCPeB6STd/4Ai2dn1 QDzj2jTs8mIvzrwwHj2IuwpWFVQRcpk3AT4Boo4tFN+P1RsHYIlNB73Ecu7qpM2kWhyr LQ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=H6dqckf1vTL0+A9F3eub9FsB+SNy/hjV+N0HkKmEeVI=; b=f14UJwccwv8moPyTcL3v7qDyuoys+fJ91oocY8Sxa0GbziZE6oBeaCsOoX6Q7M8ajy cxrx8jzjzTznAm135bmlZI1BD5vKFJmsx9Tj84ikAfy3zDsQJ29gPiQJ1k+n0xvirfaN JtInYNnnunvj5h3UMvC0Ki4UNGfyazBc+GFiWKatFRcJJoyCn50AkXY8RhJH0MMDUEEo U5268iqLpx8JvEPSg4UWxEolwiSXX3TCcDQBcHk3Fo1p+COAZi/x23OvQTkCz/eZnVEj GgqAAkeXk60biIYLntekcF0uaEFXeWlrjJHvWL9hGRjaoI083BbUr80p6dONK3D7EGHs l4bA== X-Gm-Message-State: AOAM533HzrcK2AbPjsKtC/xI60b6KT1q2/MVOASmCBJm/WYZP9YCw98f Ghx4Inpube9Vp7SpvbzqaIpbJQ== X-Received: by 2002:a17:902:d907:: with SMTP id c7mr11675558plz.200.1590094302242; Thu, 21 May 2020 13:51:42 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id lj8sm5220209pjb.1.2020.05.21.13.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 13:51:41 -0700 (PDT) Date: Thu, 21 May 2020 13:51:41 -0700 (PDT) X-Google-Original-Date: Thu, 21 May 2020 13:50:30 PDT (-0700) Subject: Re: [RFC PATCH linus] RISC-V: gp_in_global can be static In-Reply-To: <20200518050227.GA13086@f1dbffaf4744> CC: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: lkp@intel.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 May 2020 22:02:27 PDT (-0700), lkp@intel.com wrote: > > Fixes: 52e7c52d2ded ("RISC-V: Stop relying on GCC's register allocator's hueristics") > Signed-off-by: kbuild test robot > --- > process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c > index 610c11e916068..3b2933839d492 100644 > --- a/arch/riscv/kernel/process.c > +++ b/arch/riscv/kernel/process.c > @@ -22,7 +22,7 @@ > #include > #include > > -unsigned long gp_in_global __asm__("gp"); > +static unsigned long gp_in_global __asm__("gp"); > > extern asmlinkage void ret_from_fork(void); > extern asmlinkage void ret_from_kernel_thread(void); Thanks. Looks like this is actually a real bug: gp_in_global was supposed to have the "register" keyword, and missing that appears to cause the __asm__ to be ignored.