From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v6 24/36] nds32: Loadable modules Date: Thu, 18 Jan 2018 11:41:25 +0100 Message-ID: References: <0a0789a3f776a5248ebc01706d502a3a9823cfac.1515766253.git.green.hu@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <0a0789a3f776a5248ebc01706d502a3a9823cfac.1515766253.git.green.hu@gmail.com> Sender: netdev-owner@vger.kernel.org To: Greentime Hu Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren List-Id: devicetree@vger.kernel.org On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for loadable modules. One detail: You still seem to have both the ELF_REL and ELF_RELA based functions implemented here, you should drop the unused ELF_REL version: > diff --git a/arch/nds32/kernel/module.c b/arch/nds32/kernel/module.c > new file mode 100644 > index 0000000..714a6d6 > --- /dev/null > +++ b/arch/nds32/kernel/module.c > @@ -0,0 +1,286 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2005-2017 Andes Technology Corporation > + > +#include > +#include > +#include > + > +#include include to catch this. > +int > +apply_relocate(Elf32_Shdr * sechdrs, const char *strtab, > + unsigned int symindex, unsigned int relsec, > + struct module *module) > +{ > + return 0; > +} and drop this. With that change, Acked-by: Arnd Bergmann