Received: by 10.192.165.156 with SMTP id m28csp1086865imm; Wed, 11 Apr 2018 12:09:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/WPTngRN5AJ0aGUdOiNk2a7TAROI4ldiK2aVpn8KfrRhTrtkuB84q3aZyoeyfGkU41cguz X-Received: by 2002:a17:902:3001:: with SMTP id u1-v6mr6484920plb.164.1523473766773; Wed, 11 Apr 2018 12:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523473766; cv=none; d=google.com; s=arc-20160816; b=ZOwuubE02FYKEGKlm66pD77zCaGfO8YN6amKRhdcxOJvgifBLOfrfA9FB0oaXbAHMA ewaqJH/CxpsyU0WlER+hy2C4DRNlZyuuV2pWgNAf/xBTQI+ig2VOm1p4FQHE0NEuj4PN N3Bdyjuk33Jns4P033Tp3DAz4AvzUwBsgz1+kcg5+B3SjXh4U7FnMCHvIT4WlXY1MVPq RtH9hy6ncYxIM3/XHwnKfufFiDa27DqhtYGTixx2FvJCAMfwLg8CI5pMjO8NvtBp86Bt pErts5SFXZSJTIx48HgHilcCbYk9PAs+yr/78r4aAC9PI7BpyjJ+F4Z+bdzWU9n022kW j6hw== 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:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=IvMrEoigGNerqOiAI3kgsbnONlytbATQH1SoVDN/ZJg=; b=I49zSNSm4mL6BtZa3BL5xe4j8I3UDGujmtozBKN0pFB+UMfkaaHqi9mB7UY2rp0+BS ek5mQUitpBbIVeR2zM6xKoO3AIm7cxvS3atT2UXCjHFfd81VzenFBJBsF5sHMXG27l5B JOhiRVP5BxvTgozQydfX37IcOLfDSAVb6/DlyPcXpu44beylVNVGhAbldXiF96YbERYR +h/RDZOtRBJm28UYJly13SKa62ZGUpx2Jlo3WKKaixWZdgqJ03HCwhKEUaoAAakwY7EK ziRspIIsU9AD7HpXAmvTVgRNsJAoVkINNPN074FNMvBNKidMvSlA4qcE86xiJ34cgcIe uo4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ErvkFNBX; 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 k12-v6si88725pln.103.2018.04.11.12.08.50; Wed, 11 Apr 2018 12:09:26 -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=@gmail.com header.s=20161025 header.b=ErvkFNBX; 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 S935047AbeDKTF1 (ORCPT + 99 others); Wed, 11 Apr 2018 15:05:27 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38580 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934973AbeDKTFV (ORCPT ); Wed, 11 Apr 2018 15:05:21 -0400 Received: by mail-wr0-f194.google.com with SMTP id l13so1747580wrb.5 for ; Wed, 11 Apr 2018 12:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IvMrEoigGNerqOiAI3kgsbnONlytbATQH1SoVDN/ZJg=; b=ErvkFNBXywL785/0CZZ6FJ3TOO++YC7AP5RUgCgrj5osOxTPidjiamajNqoEUI+dBb JgC6QN5D6HOKNcVTAlZuRlTFDaZ/LGv0/JkHogaikI4hlVRc8KmLFZ4Rk9njRKyvUzco YPT0WuNHzeaspHc5R8KaK0ewj/3D5Lps4e/3/42GFtoBRJVKDk1RdiRGE1+cS+WMna1K 4uqJcJ9mfC/nQo36+u84qye2LycVW+eP7AEiP9Il6xFV8Jngw6paMFC4Xlo5xGYosEP9 VZz0qO5ywJ4Pidbc2Mc164nannn5DAkQAN2qh22eOV83OUmww7vgpopTnLLwnU4K7exE y/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=IvMrEoigGNerqOiAI3kgsbnONlytbATQH1SoVDN/ZJg=; b=lmyAozrPF4aFjTz72ZjYJAvHlR9s41HpSHznKpWfT4aqb8uOoyQOgnxc/+69LLJ6gt PaczaLk/y+JhssWr7HaBQkL/aD7uW+bCTBmlgEvDMuUnOCe/cF+1v7ewnj8uUZjB5beI LiJxS1VoIxKJ+Z9SGgxFPYO5wMgrYRRehhy9ZY6pTBVuRvCGQtBYGDB0hDQ02JF/NZ36 4T8M3/1H1mfR0dJETTqiWWtMIhv+2LnBaPGXRehy5hEtzzSKUszQhIr4e5rOwP05pBku RYvExKwvuxnFPGBGZ1lL/xW/nd+0n8IjDjgrv8GfbJOIbLPG4nJyQImNWsOLHAAvpNOQ wdDA== X-Gm-Message-State: ALQs6tDEM8qdXAlE5rKwBr0xw9dF93UTyuDyi2Vuaigb9PBro5s6v7gC OVNn+pSJwUHWDKf8oGzk7zA= X-Received: by 10.223.227.18 with SMTP id b18mr4067514wrj.247.1523473520351; Wed, 11 Apr 2018 12:05:20 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id m4sm1315981wrj.47.2018.04.11.12.05.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Apr 2018 12:05:19 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 3589110C04A9; Wed, 11 Apr 2018 21:05:18 +0200 (CEST) From: Mathieu Malaterre To: Jessica Yu Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] kernel/module: silence a gcc warning Date: Wed, 11 Apr 2018 21:05:09 +0200 Message-Id: <20180411190509.24995-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 8c8ef42aee8f ("module: include other structures in module version check"), the function `struct_module` was renamed to `module_layout` but no prototype was added to `include/linux/module.h`. Remove warning triggered at W=1: kernel/module.c:4378:6: warning: no previous prototype for ‘module_layout’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre --- include/linux/module.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/module.h b/include/linux/module.h index d44df9b2c131..28046e8b7e9d 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -786,6 +786,14 @@ extern int module_sysfs_initialized; #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x) +#ifdef CONFIG_MODVERSIONS +void module_layout(struct module *mod, + struct modversion_info *ver, + struct kernel_param *kp, + struct kernel_symbol *ks, + struct tracepoint * const *tp); +#endif /* CONFIG_MODVERSIONS */ + /* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ #define __MODULE_STRING(x) __stringify(x) -- 2.11.0