Received: by 10.223.148.5 with SMTP id 5csp7229232wrq; Thu, 18 Jan 2018 02:42:14 -0800 (PST) X-Google-Smtp-Source: ACJfBovGr6i82S66bl+i7ZCgCEtsJS54G6ceyRSClzS0pYYpyoUDoqfKXRrPzsubShg6v5u/0QZ0 X-Received: by 10.84.248.134 with SMTP id q6mr38623741pll.247.1516272134085; Thu, 18 Jan 2018 02:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516272134; cv=none; d=google.com; s=arc-20160816; b=M62kUM1H6iyG3+5sCDD0JcK17ApyLQoI2SJvKuQbNBZ3fTPVJuGl/L0D6JHh5fqcSL gLY/+FlLzYek7yMg4eHJfsS2R87PYXxJP+CiJInA8tmjM32r8VTACEcc96uOWUoIx3oj bxb/gxTvHGQ/60bCELj4sIgjMeQbjUO+en5XfuobO3znYddXheZwfbTAnZn5Vv2JJ5B7 qsJg2oh9MUCDfdaHEmaQlUWgVVuzFy+dp4u31U5tP64aiWd8QqqJr/9aIWr1yqLFAdZG 89UJbfnYTFrnnSfyOVdRgG9IQpRLxEjYMQTVbMxnNpxJ4e6xM8zZsyUb855Lk9RXCLLA xgkA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bLaltIemH7pvr9sugMZDYHwhmSGcK3DViuk+7Gs4L/M=; b=w3sVTogOfCp9DnYLA5Cx0u7B7eWL31HVmAmX12y5wVx748dKIdqiXTs1FmprZ5V1Ub 66fn6Y0LE8c+DEB557lyc6er7L/kQ4Invy6cXzY38ClMyTsUznXeonDY8UWYVOMjNQ9x FU3MjajQ92/UqPqD9vBW+Ighaq62W+pyJQS0l9D3Ig8pD6XH2hd+K1znvv8bPvpzxgJi DJAG1/iYEOPQkI/4AGaOD4B+pUpHXMSiRV4LdY+D9MYxT14FTLa+RCG4p37PRAD/hB9v nrh3t9JicgK6mqOtHfkTNRxkxD0rw47tQB3/uWJMc9TozRgHWwsYky0j+fE3pHiCSmnR MXww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ATINU2dR; 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 n126si5550528pga.216.2018.01.18.02.41.59; Thu, 18 Jan 2018 02:42:14 -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=fail header.i=@gmail.com header.s=20161025 header.b=ATINU2dR; 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 S1755725AbeARKla (ORCPT + 99 others); Thu, 18 Jan 2018 05:41:30 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:35118 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753505AbeARKl0 (ORCPT ); Thu, 18 Jan 2018 05:41:26 -0500 Received: by mail-ot0-f195.google.com with SMTP id 53so19668236otj.2; Thu, 18 Jan 2018 02:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=bLaltIemH7pvr9sugMZDYHwhmSGcK3DViuk+7Gs4L/M=; b=ATINU2dRecXNc5rx3gjnu5PdgXDNuu/GYvKf7AXM0u1V9GtoWPU2PImL7/UwmfqP2h devKqtt4KUFMDvmQaUpmrujdNncMwBx3GtQWBd20HMAB4LknteBqBEzjne0n2EU2+WNC s2w/Et9I/qs7UqLyw6nKD0XU/iG6WlLMv5z0oOsqJAkZm6vB17pDlWUkR+MaxPNtbKWF ers72bjwyAR0mhkM0k+QGiSKslabbwhxTfG7eUZpDEpWIQ9Rx4RLXpSdBunfgOCp7OMj EhChFJuu0GDSamuUd+3SHY+2hNeRb67UvgU2mzfo/X+mzJ3n8PxOc6/OfdpxQW5vyg1l 1Hpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=bLaltIemH7pvr9sugMZDYHwhmSGcK3DViuk+7Gs4L/M=; b=otXUdB5BGAzSsqHTXELWK/xq+s5P024MU0TY05cxzJganW1pU9HaXPqYbXHv7iobd9 SpCRo79hTKteQg5Hn8CxJ0kyvW4vXawVS4c8vxS823NRD2i8Rl7fJR80zqP5qIDd4N8n m+ytw2+aJwn9dvjU0r8nUPJmiPVNNMPlINELwoFoBcpoTqgZyZAHudMeTmJAi5nIxTdR DHhaBAD1T/29TM1mVn+8+c+Cpp9/PoyrCsPbinhexi3boj1jSJ3oJCbGPP4QR9r+NTOr QOaeuDCokWL0e4nL4txFqnjr5kZaqN4oLDCrWq8uRzEFh0pq4zafKAVrbopkZxxmn37Q 4x1w== X-Gm-Message-State: AKwxytc+L6SCL8nWOUvs4bLBDPu9lDvXinhjBAIu2brFcxeX54EC+J0r NVWl8v8/z23why4yEKy3wXNjtDWe5RDv3ZZgWtQ= X-Received: by 10.157.65.169 with SMTP id p38mr3273711ote.38.1516272085464; Thu, 18 Jan 2018 02:41:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Thu, 18 Jan 2018 02:41:25 -0800 (PST) In-Reply-To: <0a0789a3f776a5248ebc01706d502a3a9823cfac.1515766253.git.green.hu@gmail.com> References: <0a0789a3f776a5248ebc01706d502a3a9823cfac.1515766253.git.green.hu@gmail.com> From: Arnd Bergmann Date: Thu, 18 Jan 2018 11:41:25 +0100 X-Google-Sender-Auth: vxuQGiCQI5BnUhM6B2FTKatp06g Message-ID: Subject: Re: [PATCH v6 24/36] nds32: Loadable modules 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 , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen 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 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