Message ID | 20230417220254.3215576-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2435580vqo; Mon, 17 Apr 2023 15:18:42 -0700 (PDT) X-Google-Smtp-Source: AKy350b/JCgk1mAQJS5IJWM0f/6PkL8RN2E51u4xJBaBE1xfVu7F6TEYDVIfReTgO4R5fQFeN6yG X-Received: by 2002:a17:90b:23d8:b0:233:fdfd:7122 with SMTP id md24-20020a17090b23d800b00233fdfd7122mr16706953pjb.37.1681769922704; Mon, 17 Apr 2023 15:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681769922; cv=none; d=google.com; s=arc-20160816; b=FFdOi4cCMrV/NsaIELIGi1DaSsp0EyUd80CycJ1iJzGOqmKW1G5YVETHec/wQDoXz2 6KMT0PCxJRHHvYUhWwdmUMQLckSzAoW/3kpEcOS5LVQ2EbA05Y0R8Wph4/EFVybpR41r lmT0RPL4JCFMjJKJxwOXoofYof4pHAcSDvRhzEMzM1u+jixgxyHLizhTMTrgE6+AEMzM kLKW6pr2/RrkuXpE3iQpMw9gJgRHrcYI57ItaIAQn51mLGOTUWrRYjSVhYsiTYqqk8I9 DJ00YucLqmynqq3FTCoTcE7BBQS+3uhRoKHeXLWiN1x5pNPo4+qf4tKYHxrg2T5BNOf+ tMRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DV+pieHdXcz8wRpbvgvePpU+c0qc0qprrXyy7lTpmtg=; b=sbsZXXccRpLeoUYqlZRGmi1i6OJVlcF+SVC/CwQKBiLIy8gIBxmg6WiL9W9+unj9yX yIpMt5BJcuosIvGRtJf5tHxwHakrkOzxhXLJMNXznO5ckQ6j4ty8fpEwxo5rUVQXrvGt embHPgyzJJ3NvV5RQJx4zkeAXzqXKrgiUSpnOoMx9RdyGGqnZ1XwemZs2m+ottvrhiXJ 0qcAX2IQUHbVUjBjpaCRsNGjiEQORoRbDZ7i42gcpOgMUHUm5URw0evSI5bkJfTQ3gdg rvwqQ6c9pUsw0wKnJyWsS9GWxBwwf+7Q9rBpEBEDrq1YndBlbFgPUVYF6x5VsFM9w3X0 U5CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LcD0zOD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a17090a73cd00b00247a0928f5dsi2548755pjk.184.2023.04.17.15.18.31; Mon, 17 Apr 2023 15:18:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LcD0zOD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjDQWDB (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 18:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjDQWDA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 18:03:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5E82108; Mon, 17 Apr 2023 15:02:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1568C61245; Mon, 17 Apr 2023 22:02:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 637FFC433D2; Mon, 17 Apr 2023 22:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681768978; bh=vUU+KW+lRcevWVHbFKGeuCq5A0RIw1YokU/NkRrs8BI=; h=From:To:Cc:Subject:Date:From; b=LcD0zOD12PuE1Ko376iSMy7sb31KU0Wep9/V4PjZ0cS9VI4jY7RR0hH/TjF6IxKWp UlFvogGwAYjMSauoQPfZE8Kvq90CUwEgkcJk/JK8dilaUoZcTgiauqbonWxckUOAkj z0frVHSCKmx+Rbd0hcre3cunNgxYEiOlMUIVyYJH5ePW3co7nAUiXmb8CMZU9VY0sb cCCdSb+xfusR1VjOAi5RS/TUjyE0j6+0ZgfjjmMQ/KpPfOo74nezxaW1J359qbOvp1 8ewtGeA9hhEqk6k0cFMkSkBoBZbLJiK2xZ/eAmNGlhfBWHeaHNZzVzChvwHJKwh6Mq Za7j7tqIPdvdQ== From: Arnd Bergmann <arnd@kernel.org> To: Luis Chamberlain <mcgrof@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] module: stats: include uapi/linux/module.h Date: Tue, 18 Apr 2023 00:02:46 +0200 Message-Id: <20230417220254.3215576-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763463578329435526?= X-GMAIL-MSGID: =?utf-8?q?1763463578329435526?= |
Series |
[1/2] module: stats: include uapi/linux/module.h
|
|
Commit Message
Arnd Bergmann
April 17, 2023, 10:02 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> MODULE_INIT_COMPRESSED_FILE is defined in the uapi header, which is not included indirectly from the normal linux/module.h, but has to be pulled in explicitly: kernel/module/stats.c: In function 'mod_stat_bump_invalid': kernel/module/stats.c:227:14: error: 'MODULE_INIT_COMPRESSED_FILE' undeclared (first use in this function) 227 | if (flags & MODULE_INIT_COMPRESSED_FILE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- kernel/module/stats.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Tue, Apr 18, 2023 at 12:02:46AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > MODULE_INIT_COMPRESSED_FILE is defined in the uapi header, which > is not included indirectly from the normal linux/module.h, but > has to be pulled in explicitly: > > kernel/module/stats.c: In function 'mod_stat_bump_invalid': > kernel/module/stats.c:227:14: error: 'MODULE_INIT_COMPRESSED_FILE' undeclared (first use in this function) > 227 | if (flags & MODULE_INIT_COMPRESSED_FILE) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Applied this 1/2 patch and pushed, thanks! Luis
diff --git a/kernel/module/stats.c b/kernel/module/stats.c index d9b9bccf4256..bbf90190a3fe 100644 --- a/kernel/module/stats.c +++ b/kernel/module/stats.c @@ -6,6 +6,7 @@ */ #include <linux/module.h> +#include <uapi/linux/module.h> #include <linux/string.h> #include <linux/printk.h> #include <linux/slab.h>