Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp134400imu; Fri, 16 Nov 2018 19:10:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fS0KsSzFJ0xx99u7syPDnFlYwmcZWMCcXvTwyndOHhWGn795N+acJElX6syhP30mDFWYNU X-Received: by 2002:a65:624c:: with SMTP id q12mr12326190pgv.379.1542424245247; Fri, 16 Nov 2018 19:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542424245; cv=none; d=google.com; s=arc-20160816; b=Sq4u2hxRnwOIm2HQleD4OUzAdDPlwFpStBncUdqX4VD3U6ZgwZgbAA9gJBH2EK9Hv9 STooAIjHO0mf5u7JljUiXwmAMzF1f9IACiy4h3WntKFIGiA8PAm0iT1RjmHqFk3790yz wyDCUHgESp0OTpab4PP4PJ4Dv2zBzuWO9xd2ClZ8fJDbgz73z3Ai9bg1kdruGHQHssxN 6xBl1jLn0HQseuqRqKkfwzatvnoYRS30ZUzwCKp3LHB6SM+VaEO9k676wqfBaiSEQT/P oF2FWmnZHlfAvmXIsHFoAtvNp1TMhKdGmrf8HEr9QweXoKQ2qvV3XRb4V2KjsWFA9q8R Cz8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GdXTma+heCG1NQmiQLpbKj/0h295HXhNL04xMwtD4/c=; b=C5iTz1oEjSw9rsA5rNjR8FRjEJqY6BaNkAkaDoxxEr5INuHio7XzPqOZX2xqPLWXpD 32np5DE7L4UQYVfjOevQ5+JWoNJL90IdWmxix5K44O+NkeAwv1H9YbtptzDJ2Q5M1PYl fZx22f19AgBQ6gAxDnlVKTUzv2B7qw1E10eIOl4rtIBiWRh5NIHyEGrLHAbUIrW8Q0/q UQMOfL2SxgBL4pDi8S7qGUm6U4oSzRmbS+fza3CnRYlsmTW6CJU35hDFjfZS3xc4Wf98 a05/GlD1AJgcvOQ8QskXJfYOpHIPlQvmUJHGHGzWqPRJ6J5R8pU025qGyYmk9zJi5pZc zgoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b="UC8/H4si"; 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 s9si32530403pgv.397.2018.11.16.19.10.27; Fri, 16 Nov 2018 19:10:45 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b="UC8/H4si"; 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 S1729862AbeKQNYw (ORCPT + 99 others); Sat, 17 Nov 2018 08:24:52 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:40658 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729714AbeKQNYv (ORCPT ); Sat, 17 Nov 2018 08:24:51 -0500 Received: by mail-it1-f195.google.com with SMTP id h193so162317ita.5 for ; Fri, 16 Nov 2018 19:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GdXTma+heCG1NQmiQLpbKj/0h295HXhNL04xMwtD4/c=; b=UC8/H4si50DBfyCs4w0RGJGkRQl6Le9lijQ/wVvOHmGtV3/nBrKrlwKWPO5GNaGClO snFE9Dcqcy3Hj1HsmWd/gsGSiM3IJvmvgwz8ur+GQ4gGS9g9PC3zNSrR3+dzzNRN6q0V AZ/NL1beNAqFom/oeCzh7eNBS7DIX0XrqpfKaNcDlOQtCfsst3Oet+SyL0DC0VL+YXV4 X73R8b6+QHzj6kYpFoJC2ELmdLl1Rn7KazVd0ysigqK0pAoFSB5rDCi65C/i5ty3NggY 5OAXXq2rnY4UlmT5n+sDR8ryRsOOiONoB7X/idKXofo3bJhkEw/FlEXxRa+HICN1KIuz grUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GdXTma+heCG1NQmiQLpbKj/0h295HXhNL04xMwtD4/c=; b=HgSIj/usfXVOjjHzouQD3PSAmOJ1puqnH1vms6YiBOq/aQPXyU96wWDqzW0RdW5eO3 YQIeJFw8dOkEnd4tEN7o0d1INZGs1uHDsetW7sbnnjfmxHI4IUvcQal4cHJf9zX+7Iz7 TiEJ6uYlum2aUSHflu87BuRXYI+n7IyyNZhpzDKZIGA2PkFVxFW49SjZ9/i/dBsfyjnf lG2FI0GouoS2+tBbXDdEyFt0oVABY0hMfWqrSkz+Y+5YAqGAm5PJpHXRlhKQknvatgpY tNVhqkdil8I6a5TvzATLvrKA5KkDc7e7pWuo6+DJYKjWp5+DeiW6rJkqdYVYre+C2Iir KfxQ== X-Gm-Message-State: AA+aEWai3M1VD6Z2E46gKg71UA3UNQ8jbZnTLkKMRL4nqgj8qyzR2h5u 17nLsT8KazhQQU3PgVPQlCicfzzSAh4g0aycjBYQLJLI8y8= X-Received: by 2002:a24:70ca:: with SMTP id f193-v6mr732552itc.59.1542424186888; Fri, 16 Nov 2018 19:09:46 -0800 (PST) MIME-Version: 1.0 References: <20181108190700.30825-1-david.abdurachmanov@gmail.com> In-Reply-To: From: Olof Johansson Date: Fri, 16 Nov 2018 19:09:36 -0800 Message-ID: Subject: Re: [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h To: Palmer Dabbelt Cc: David Abdurachmanov , Albert Ou , linux-riscv@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -Olof