Received: by 10.192.165.156 with SMTP id m28csp884366imm; Mon, 16 Apr 2018 10:13:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//AOzL1LHkUha6dq2RFyf9Mtm2q/acrdRJ2N3AhLcVP5kIZvZ/gvM1rqE/vzA75RomVKMN X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr15778402plb.299.1523898793667; Mon, 16 Apr 2018 10:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523898793; cv=none; d=google.com; s=arc-20160816; b=ab7YxqCra+YgIWnGMESUOV44dkCH8fcXhQ/6N3p69IbmOxZBw/UMkSRb43detaBrbu R0bsq2Zj39nm4/s6a381b8WXYNTSpjmxqQR5PZNf10wEOlU23nRlx5w90z9kbyIOugDT fWZXIqc1OHbYBDJW1NryNT4JpadpNvhbxuRtG/ST70b3IE0EJj0d9eBngtEiyupXXOff YdPIXoDVEizmy0ddDN3WLPuM7JVkpHCvU5Bc6lQX9uFHh0LW31TxfP3v3XHjTLLNA8ns YQTsr3oNjs/4xKMDDkdaE0DBC8nzM2mxT9wclgzMgat2w9q8s5VnXmj6kIfbs6uubaBo z5Ng== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=LJxX2foLwqbDEBARfZY2XpgCwf/DsHfztpm5m5ZtbXY=; b=Eg65cBPCUiotwIPS8g8/O0PoKUsS0RFmgQ40DWEZE53G52D1GVK/qI2ATPQHD+hwhX Jfi+02309q3j7o2VGZoLi7XgMRNzim0gmmfACtKsXiK+wexp8DdfjVKlCXaHzVqT05cD RKiBgEwUhTmoCreKT8eDQ5hdLI1YRyUODwxwUdFFc8avtUmdIYbA24HSAvEXdUPPsW1I U0ygPlGbZ6eXHCHgOKA2ZATG8IihdekbMShQZBqD3FfEIOj6Ji/UArCEaycX4xn9WVVw xeONnwoNSBr3T+smDrE6D1DrLyXFo+HGezrK5tEiAftQrvmH9vaxkKXzOIexWhEq26tE 46ug== ARC-Authentication-Results: i=1; mx.google.com; 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 t16si11183312pfj.10.2018.04.16.10.12.47; Mon, 16 Apr 2018 10:13:13 -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; 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 S1752881AbeDPRLO (ORCPT + 99 others); Mon, 16 Apr 2018 13:11:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbeDPRLN (ORCPT ); Mon, 16 Apr 2018 13:11:13 -0400 Received: from redbean (ip5f5adbe2.dynamic.kabel-deutschland.de [95.90.219.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F6E321776; Mon, 16 Apr 2018 17:11:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F6E321776 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jeyu@kernel.org Date: Mon, 16 Apr 2018 19:11:06 +0200 From: Jessica Yu To: Mathieu Malaterre Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/module: silence a gcc warning Message-ID: <20180416171106.rlm2nrvrxfoodcvf@redbean> References: <20180411190509.24995-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180411190509.24995-1-malat@debian.org> X-OS: Linux redbean 4.15.3-200.fc26.x86_64 x86_64 User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Mathieu Malaterre [11/04/18 21:05 +0200]: >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 */ >+ Hi Mathieu, We're going to need a forward declaration in module.h for struct tracepoint to address the kbuild warnings. Thanks, Jessica > /* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ > > #define __MODULE_STRING(x) __stringify(x) >-- >2.11.0 >