Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5637120imw; Wed, 20 Jul 2022 09:24:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tqSdudU7rUwwE2llLuWQWo9Nn1WkRV8AWnFsEDNF8FN4jgnEtipMrBJ0CJKjubKNXijT9t X-Received: by 2002:a63:4a62:0:b0:412:8c83:a36c with SMTP id j34-20020a634a62000000b004128c83a36cmr34078387pgl.404.1658334247105; Wed, 20 Jul 2022 09:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658334247; cv=none; d=google.com; s=arc-20160816; b=pcdMoXZ4j9shOYL+hjfiOpaG/NmtF0MgugX/hwZDnX1EKr7ZmPMOs5TfgQ9epXwPoc Uym6WCVIE8XagD+N7jSn+GttiTtSED1UyYk90cjQTnmf0mpTVhEHCyPkZS3I7SJuVGgf vCMo55SeSHEWRkkjOs6xbo3k+RDZeO5v1wO8XKq/G6TrSN2CMOVJmAE2fJNMWm3s0VY1 uFWpIy9U7+CJU3Y0tSq3VTrBcryeQZ0wSpquklezWR0dvXnRSiQuKaia74g9CQ37V7B4 1OzxJhb9SaiLFJEQXSdgEryTlEELYcEpZUlakgPdl8RukKZauCqXjwItsTZVrUo2k0ku sR0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=S/PYK/F1OUkzM1OmVclu1O4NyXj+xvEhXpk50nCDxps=; b=kCWsmd2/CZHa/FM2ZAQTC5nvxLkwoVa1aBx+a0sCOteMgPWSrl5lVfPo0JGPveWrX1 A68Wy22VS/3LT1MJKP/+yOLYEEY72KC6pAq7POBbWtHg5igZ5RHGRiI/2Gfj0ZYduZBf ZMVAtvmHOUYNBFGwtSZxx4CrhwnpMjd5LUHWUNA9Innsgo6uEuioaHuYcC+bvvoo+vPJ aIk+i9/ckvaOHzr8iaV0yAaPVM33q+KqWY/Ed3kHZh7Yky+SFJlgDDcnvL4nYdayMasV B5WSmLI87koLUDNKs/1z/aGNKsDmFsXvLSh1RKc6Pec6TNDtLEu1sYg7uto0050nM3SG L9rg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a635809000000b00415e193e493si1814876pgb.397.2022.07.20.09.23.51; Wed, 20 Jul 2022 09:24:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235337AbiGTQE6 (ORCPT + 99 others); Wed, 20 Jul 2022 12:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiGTQE4 (ORCPT ); Wed, 20 Jul 2022 12:04:56 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7219154645; Wed, 20 Jul 2022 09:04:55 -0700 (PDT) Received: from mail-yw1-f177.google.com ([209.85.128.177]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MMnnm-1nxlGj1Jvo-00IlIQ; Wed, 20 Jul 2022 18:04:53 +0200 Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-31e623a4ff4so46327067b3.4; Wed, 20 Jul 2022 09:04:52 -0700 (PDT) X-Gm-Message-State: AJIora9VFbjSWqE0yAW684JDbjMp6QHJOrmzEPWOvEP1V/23FEt1PodM 9S+ZNHkMuAzkvah77BWokav2XKksCwBQDWM0vOU= X-Received: by 2002:a81:d93:0:b0:31c:d32d:4d76 with SMTP id 141-20020a810d93000000b0031cd32d4d76mr44777721ywn.135.1658333091704; Wed, 20 Jul 2022 09:04:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 20 Jul 2022 18:04:35 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: build failure of next-20220720 due to undefined calls in modpost To: "Sudip Mukherjee (Codethink)" Cc: Hitomi Hasegawa , Arnd Bergmann , Linux Kernel Mailing List , Linux-Next Mailing List , Thomas Gleixner , Marc Zyngier , Linux ARM , Julien Thierry Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:mEQBt476N+DiiM9UOjZmVwHEiEnRSxKy5ASTinKn68O58S5coPK dynYjfkbJOuHD6Hj0zFCzAwreziMqTFjxCuuszAjbkfOF5nWjOnW7jFofOK2z20BdZG2itS mK3AtIdqXw41uc4jYS9pwzCStkxK1Fbf7pbCpWTIa6GQoVIx8qu/gZqrgiJzoNLdLME4nIT xbJI6fgzF6fQ3JGzdJAdw== X-UI-Out-Filterresults: notjunk:1;V03:K0:cO7owcCQF/g=:zLTawiKNYPmKXLnDoYFBAA pUOK9+//rx4YWKXhPnjzajWddpjcSZkicdjyjQpqFOJNpwGO7L5E2cb6td5jW7MZYdRAjxs9y OnytaDwss4KZClGJVlNRznl3i1LKhHVpEruboaYt3kshFc/y081ADbezAyUrT1lPZVp0oBTaC odDsl2YBwlK+2Nzq1BJZF1SAfaZ3QVRqK2kYzXe0UQB5sT6bCaWiq8eKsokugaTSZ2sl3uOtw RNTCSd3RNCCUiJQ590i2bQdWkprL6tPF0sohkqA3/9oIkt7TUf3zzo0fVzCRDmZ0GDcOelp8Q BibC/dViljZFlWEkSWz2NlLYrRAocBqC95BvRPoh82Z3cSLQa91RVMEUkRVfemSp/SGP0PFlY OffTLJmn44KDKhIeo4AJ7MU6md49ODbO0P1Ex2of6aXCMus9AP2UAgKYIdzD8UlHd9PDyhwwU Zfctn3KLzUgxYJ6S/B3AOxyFj7S448bTQS5Qv8XCyHujFB5BjLf4SCebEl8/rP6pS95vxcvfA baMEaWXddnfplDUvarI2bHgEZWJJ97BUUCA5eUVXuCy9Ugwgf+9ZElNMprOYZkn/p2fY50NBo gpW1+6vEfjcTa/VCo3CUtdAOaxdc82/oS6zF9WeCgwvcatLe/calIsdFh6XjkuV02xs973fHt xkpPXR592nPdTjd+TDA9tJo9S11GD38u0gbheVo2r8Kb9jm9w/X5K/X7OkTJvAieOJjkJ3GLT CNEoduqKTCLsJkN4RXvS9bccsxcyIDZKAG41NNxQBFy4ZPNk2O7qJBIio8Bimk8rAIXDMtu89 Lb/z7BODrBwm+EiJM9ZGhKblZhUcXtGOuvQMulRz4s3lOnXYH0DE1QLdeMEcUfS/RfFvtuilJ ryVlUWT9VsUR7HQ5NNZA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 20, 2022 at 5:28 PM Sudip Mukherjee (Codethink) wrote: > > Hi All, > > Not sure if it has been reported, builds of arm64 allmodconfig > have failed to build next-20220720 with the error: > > ERROR: modpost: "free_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! > ERROR: modpost: "request_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! > ERROR: modpost: "enable_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! > Thanks a lot for the report, I had not noticed this myself. It appears that this is the first driver in a loadable module that uses NMIs directly. Adding Thomas Gleixner, Marc Zyngier and Julien Thierry to Cc for the NMI infrastructure. There are two ways to fix this, either the driver can be made built-in only or we export those symbols. I've applied a hotfix on top to do the Kconfig change for the moment, see below. It would be nice to allow this driver to be a loadable module. If Thomas agrees to added exports, I can send a new patch that adds the three EXPORT_SYMBOL_GPL() lines to kernel/irq/manage.c instead. Arnd 8<--- commit f740949d41a7ff85aa23ce62c29d095066e5e6d4 (HEAD -> arm/drivers) Author: Arnd Bergmann Date: Wed Jul 20 17:58:18 2022 +0200 soc: a64fx-diag: disable modular build The NMI infrastructure cannot currently be used in loadable modules: ERROR: modpost: "free_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! ERROR: modpost: "request_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! ERROR: modpost: "enable_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined! Disable this for now to make allmodconfig build again. We may revisit this and export those symbols instead in the future. Reported-by: Sudip Mukherjee Signed-off-by: Arnd Bergmann diff --git a/drivers/soc/fujitsu/Kconfig b/drivers/soc/fujitsu/Kconfig index 56275b44b293..987731e80612 100644 --- a/drivers/soc/fujitsu/Kconfig +++ b/drivers/soc/fujitsu/Kconfig @@ -2,7 +2,7 @@ menu "fujitsu SoC drivers" config A64FX_DIAG - tristate "A64FX diag driver" + bool "A64FX diag driver" depends on ARM64 depends on ACPI help