Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3033291imu; Mon, 19 Nov 2018 09:37:43 -0800 (PST) X-Google-Smtp-Source: AJdET5cq2P2+u3swhyeGMtWXrRofPXVueDn2jvrOmw+LA+TqMKWYj3exbtVje9dkw1oVhqf0A/YX X-Received: by 2002:a62:42d4:: with SMTP id h81mr23823484pfd.259.1542649063674; Mon, 19 Nov 2018 09:37:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542649063; cv=none; d=google.com; s=arc-20160816; b=XeHs/dJtQnvA+r6p6lKwnRmY1CFyQUQZdmO+AB3QaOS0/C22bt4vpjIWDMHk4fZro0 lmDIXo2hUTi8V/qUDu9eR6NVM16GNM2J3nosfavyavqPVUPp2Bt8T7hBXciY0jT3BLK3 ZUf+4zhRhpPGrKSxhv3mH3K7rIY3zoffUxrmWRC+H0DytuRxrxgZZ7RYJbpWCvpAewuz bLw7SWY88vt0iJRtssmx3ZPwqqhY6LY663F1H3ufvRmR/TO3pQDv+twNGLG+ODjJ5A5I D3H28ToQnglyEYQKYlYupx3ASXxFT/6wdvftt9Wg0tQpEjded1aEZVjlW3pUE91hjU2T AGow== 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=H5owF+wMf79EVakKmOx7q+3qQUQfzmV0sdtOMq5KHco=; b=q92QJHM9r9nXgC1OXxXwTgLKZ5KKf898Xgyx9+SH0MTnsjKfN1yXcj0nneG/WCKpIc tcOqKvapBuGNvAHgirm2NNjpWsnHSmd6nkyccmcUMw6KYMfHOIZ2g2cQGP2FC9QkL3F2 cl0x6Yx2OZHs02sOs26vBjCQLyYqHLlbcloeCtnRS/iWlYt1PjTx99Jg6Md8vBBcAzvP Kbuy/QJcggm/V2YptTiYi5QSt9DN+znDusceAYXKZOwZFrQqr8AiJgEbAXQHJUub8MxX r+/W3wXt0khEvMnBku7Iv7xgB+KsyQwOEhDKvND3xpPMwuW1RXVXLFRUrJfIZsbANjIr LqjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Qy1q0UBg; 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 l123-v6si43024765pfl.200.2018.11.19.09.37.09; Mon, 19 Nov 2018 09:37:43 -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; dkim=pass header.i=@sifive.com header.s=google header.b=Qy1q0UBg; 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 S2390337AbeKTEBB (ORCPT + 99 others); Mon, 19 Nov 2018 23:01:01 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45189 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389785AbeKTEBB (ORCPT ); Mon, 19 Nov 2018 23:01:01 -0500 Received: by mail-pl1-f195.google.com with SMTP id a14so10310275plm.12 for ; Mon, 19 Nov 2018 09:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=H5owF+wMf79EVakKmOx7q+3qQUQfzmV0sdtOMq5KHco=; b=Qy1q0UBgrto8oC1sUXTq1sEixAFaT3JVdkkLf3wT5ngnkF0/nZEz0Stx0phskKD135 vrHRJIyyc1TDeE+4WwFzTFCdYCz0eNjlT6S3ZLsHinu6LPPpJLRAT/Naz/uk0GA+qLLW EM/lsXwHGrWw+JcmREivEP5OylK7SVULEz+b/fmEqPLK+/u8iyVrocrTL4NOQZrTG+vu LuWwsdkpITdY4qO29SGyuFmpjdGQPJn98oVyhA6xcxufU4URMerimvGsobISOJVmQrMf P8Xmy94k0VjpAMBowKAFawpFq+ELUivOTu4CVeNKY0w85bmrBwvxZZcWWEo37QpbpFB/ 0SGA== 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=H5owF+wMf79EVakKmOx7q+3qQUQfzmV0sdtOMq5KHco=; b=T/tWSxEbw+nREn6H1UC0UFxMpej4qJ7LXGDnAbj65DG0Dj0lucphjAQ/fSA5JQQ9cX 6qaXRzqV1uTxHbi9X4ALZIoblPuVJvyJNoV7sP3Khuq6iW5+T/Ri5Lf+I0rpSOKDZGdG cvTCRZL44Nift4GSVnFdmzOkcZSsu/FMpQRIwQUI6t9jGwHp/6idE5s5yCgAGA12sDR+ fVC/oPFW0Gf+pjqCS7A+q4RQM/DmSamJa/uCFX9xKr+jwGjvzYvIR+Wh3OERVIyz5oxN JhhIQU9OcyhG8k0pOheLWTt9P5OaPifoYBuZ3NiXqCNPPwt9fF9+fu2dETN3ge1o0MfS qBFw== X-Gm-Message-State: AA+aEWbRyC5bxBhdH0yi8GQxKo0O9LIWiWwiu2earGoFMALpvONIzCPd q3JrROkoYP/6nbrbc5a2hWf60lan60g= X-Received: by 2002:a17:902:76ca:: with SMTP id j10mr6890679plt.144.1542648993894; Mon, 19 Nov 2018 09:36:33 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id d8-v6sm48404462pfj.106.2018.11.19.09.36.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:36:32 -0800 (PST) Date: Mon, 19 Nov 2018 09:36:32 -0800 (PST) X-Google-Original-Date: Mon, 19 Nov 2018 09:18:07 PST (-0800) Subject: Re: [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h In-Reply-To: CC: david.abdurachmanov@gmail.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Olof Johansson 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 Fri, 16 Nov 2018 19:09:36 PST (-0800), Olof Johansson wrote: > On Thu, Nov 8, 2018 at 11:32 AM Palmer Dabbelt wrote: >> >> On Thu, 08 Nov 2018 11:07:00 PST (-0800), david.abdurachmanov@gmail.com wrote: >> > Fixes warning: 'struct module' declared inside parameter list will not be >> > visible outside of this definition or declaration >> > >> > Signed-off-by: David Abdurachmanov >> > --- >> > arch/riscv/include/asm/module.h | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/arch/riscv/include/asm/module.h b/arch/riscv/include/asm/module.h >> > index 349df33808c4..cd2af4b013e3 100644 >> > --- a/arch/riscv/include/asm/module.h >> > +++ b/arch/riscv/include/asm/module.h >> > @@ -8,6 +8,7 @@ >> > >> > #define MODULE_ARCH_VERMAGIC "riscv" >> > >> > +struct module; >> > u64 module_emit_got_entry(struct module *mod, u64 val); >> > u64 module_emit_plt_entry(struct module *mod, u64 val); >> >> Works for me. Looks like arm64 might have exactly the same issue. I'll roll >> it up into the next RC. > > Looks like it's still here in -next. So, patch: > > Acked-by: Olof Johansson > > (and it'd be great to pickup together with the 32-bit build fix). Sorry, I must have managed to screw something up here and drop both of these from my fixes list. Not sure how they managed to make it into -next without being in the list, but it's been on my TODO list to fix up my workflow scripts for a while anyway...