Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1755342imm; Fri, 6 Jul 2018 06:02:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9I2iipTnM6QXwKRLgYy4G8QcQGf0nu4+QzBgY17ecHTDWtx6heiocU/1O+Grq8al1s3Cq X-Received: by 2002:a65:468e:: with SMTP id h14-v6mr9093222pgr.89.1530882176156; Fri, 06 Jul 2018 06:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882176; cv=none; d=google.com; s=arc-20160816; b=NaruqAzR1OHVh3ad5+dNZK0N8JK0Dmi7hTo/4rL1W9N4lboD1HJl3ZzeWM+3YNo//h TOmWXSwq8cImlI8d6KcLnGt1IkrDw+oQrXxOgQ/nq+4BCYS0Jy1EoyIjzboua5WmR2GP XRZ95ps50Oa7H98QZUsM5Wxuk3nMkDV6z5Bq3y1o2N9txQocMxn+wyYYyjr/CVtEUDei muuMrNCGkGDRx0ggZp0pmBht6u/e+jd/+BEiyAxMszTqRbUd1Lieh1T7vcBhzNNLxi2d Z3nANwe/06qB6CfK4JtrUNb5x/3DYSkjEC2Zyslje/EXiuWuWauqVcISH2T2mj+nmr8z lxcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=uzocKREWoHbqMoJpGSZimyjbeTtUgl4/1925mIMB84A=; b=lUzHBneA5q9bC6Yq0r4W0FRE6GnBesgcI21iZSOszC8pnnj10fKCw6Vud/ce46XuaX d7W8oCOochxQJPAC9iEGNgibh6K4R2clBs5Xbk3HuAyQA30LupwLNBg+6zB/lAiSRVK6 IBanRoEZvaRi3kTFLlVjZC7n5sOR62bXg2igD9istdlxC0kQcSG2pab50ylOzbEBVs/t jLjKfHZY2XragWAnpKB5qwgmRtqA4JJMOLGRNXxqGMtdlHvpq62lpzt3DwQHppy/J9qI AvGd5XFX6X9Qk8629rBtOHE6auo4j5z/kzBngXof/Ap6l/29GUkzWMd8Z8XowIFJRIYg 6KRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=H4cDDFlv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si8146403pgk.215.2018.07.06.06.02.39; Fri, 06 Jul 2018 06:02:56 -0700 (PDT) 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=@armlinux.org.uk header.s=pandora-2014 header.b=H4cDDFlv; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932751AbeGFNBI (ORCPT + 99 others); Fri, 6 Jul 2018 09:01:08 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:42746 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932236AbeGFNBH (ORCPT ); Fri, 6 Jul 2018 09:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uzocKREWoHbqMoJpGSZimyjbeTtUgl4/1925mIMB84A=; b=H4cDDFlvkCkiUJ0PMxLIF+QY9 jNeb1q5it+TzPAnkwi0dOpnywxbfAvNFpCzDe24u8jzhgTZ5eZz3IIuOsStL26Zu61z/hA3c0JZV/ Yf5deIi8mfHZhn+ujYegADptZo9nPHM5uLGUX2onxa0MEoI1v6QVABDLv8Jm+CADpOFPI=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:54488) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fbQM8-0005sx-4b; Fri, 06 Jul 2018 14:01:00 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fbQM5-00028a-EM; Fri, 06 Jul 2018 14:00:57 +0100 Date: Fri, 6 Jul 2018 14:00:55 +0100 From: Russell King - ARM Linux To: Arnd Bergmann Cc: Jessica Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: module: fix modsign build error Message-ID: <20180706130055.GY17271@n2100.armlinux.org.uk> References: <20180706124900.3294525-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706124900.3294525-1-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 02:48:47PM +0200, Arnd Bergmann wrote: > The asm/module.h header file can not be included standalone, which > breaks the module signing code after a recent change: > > In file included from kernel/module-internal.h:13, > from kernel/module_signing.c:17: > arch/arm/include/asm/module.h:37:27: error: 'struct module' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val); > > This adds a forward declaration of struct module to make it all work. > > Fixes: f314dfea16a0 ("modsign: log module name in the event of an error") > Signed-off-by: Arnd Bergmann We used to have a general rule that where an asm/foo.h header and linux/foo.h header exists, and the linux/foo.h includes the asm/foo.h, then the linux/foo.h header will be used for including in .c files rather than the asm/ version of the same. Is there a reason why that can't be done here? That said, adding this is no bad thing. Acked-by: Russell King Thanks. > --- > I guess it would be useful if Jessica can pick this change up > in her tree that introduced the warning. > --- > arch/arm/include/asm/module.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h > index 89ad0596033a..9e81b7c498d8 100644 > --- a/arch/arm/include/asm/module.h > +++ b/arch/arm/include/asm/module.h > @@ -34,6 +34,7 @@ struct mod_arch_specific { > #endif > }; > > +struct module; > u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val); > > /* > -- > 2.9.0 > -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 13.8Mbps down 630kbps up According to speedtest.net: 13Mbps down 490kbps up