From patchwork Mon Apr 17 22:02:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13214814 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A95CEC77B76 for ; Mon, 17 Apr 2023 22:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjDQWDB (ORCPT ); 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 ); 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 To: Luis Chamberlain Cc: Arnd Bergmann , 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 Precedence: bulk List-ID: From: Arnd Bergmann 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 --- kernel/module/stats.c | 1 + 1 file changed, 1 insertion(+) 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 +#include #include #include #include