Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3976222rwb; Sat, 12 Nov 2022 18:09:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Ku06O56CxA1eWryvEys/tWWjt39awdOPhxcKQaORiTOP0/bxqdSLJnvXUg5BcoctvXDr4 X-Received: by 2002:a17:906:6057:b0:7a0:b505:cae5 with SMTP id p23-20020a170906605700b007a0b505cae5mr6543396ejj.648.1668305389341; Sat, 12 Nov 2022 18:09:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668305389; cv=none; d=google.com; s=arc-20160816; b=Mw0/ehIFx/z0Wsu4d1M0m7x1FQL4a/rn7urpsBqF5OvjFqnNvliy3aT26kFfGbEr83 mgFrrtWGOlpR5yIxV3hw3CAnqrcjCE9PNsblIAibUnlBsmgIgQjkv5k5FsLmP1ie5SGf MOQ2jgF0XWnE4S4lEnxy0lm+E8RjVicLtaSHEF05OFbaT17jHsszAh6F5feVPLvCnwrw OSab2oV4T4bUsNPibMquT6NtXm9/22UGZlAEnRxjda5DbaIHoEBuX1u0kFw8GoavvKyv ungF74+VnCkdNosYBmfY8Au8EpjyDt7YYXuPuB67ypWqwWTQjkDF1/recBugvnLtA3ck OLuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ouyz0uvCF051aOaxqe1j8nXB1jO4S3Lii7seD6A2SpY=; b=lxv2IfLhZfLHwE4N+C4ppwnSF8mQXVYgUmNaulSGviaYnai3B6AQL07UzsEquQ5hXm /2y3/TljU2+tzA2ur2VpFGWIEqFCVP4LizX8aDU6HJtaZrWEETjYKIzTX9GksLEakKM7 JXno6Xw8iJGRduL8Bfvf99qXGweNOFB1A2ooQ655Ij6la4lwj0QI7ulyHhWjZ6qrXMBf bn6vKauzmA1/xJiY/eDOeCeDI+XeRKd0REmTeKbUwBsztw1foS0rgSmZi3T/GPMlyJoe 6qDM94lF0gSV8Venr2ZJjLzpzxFyybsfVzp6tLbN/l7yLD66F7RQR+94n0eJ9N1cRjjF xXog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="TS/BlNnR"; 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 wu10-20020a170906eeca00b007a46fa50b26si6087757ejb.517.2022.11.12.18.09.26; Sat, 12 Nov 2022 18:09:49 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b="TS/BlNnR"; 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 S235105AbiKMBLn (ORCPT + 90 others); Sat, 12 Nov 2022 20:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbiKMBLk (ORCPT ); Sat, 12 Nov 2022 20:11:40 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F1513F30 for ; Sat, 12 Nov 2022 17:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=ouyz0uvCF051aOaxqe1j8nXB1jO4S3Lii7seD6A2SpY=; b=TS/BlNnRMj0ZpcsIBKdz3cBcqE c1oPvKn2NWH19F9GncZQcnkqPwh8DC4QIYD+S3srC7mc+LKknQb0nqWYFRyhOjbUBHnCbqJnbNog5 dU+9T7WZAJNT8pRBDgs3TAMXju5K4DvtRItMIrBgGFY4/3V0v3wySkrIHf2Jse+gc/651R6hcdu50 Ni6TK9BnUebmqJ+SmZ+U3sN8HdVeP3AbyoKKk4X4EGoqVDsn8jn2rAq1Y4VXo5IF9XvdlzyQluYrV QjVgibky0B/5Chh9KTy05t0tc4Aijfll0LJDnXhmDoPYYv968r8aPFghK185QS7sNxz7iGAgF5qV6 cNqHPSSg==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ou1Wz-008kzq-5E; Sun, 13 Nov 2022 01:11:29 +0000 Message-ID: Date: Sat, 12 Nov 2022 17:11:27 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: include: linux: slab: kmalloc_trace undefined when compiling drivers Content-Language: en-US To: Ian Cowan Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1df133ef-d5e9-f323-7c67-fc9ffed04274@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 11/12/22 16:43, Ian Cowan wrote: > On Sat, Nov 12, 2022 at 04:34:18PM -0800, Randy Dunlap wrote: >> >> >> On 11/12/22 13:59, Ian Cowan wrote: >>> On Sat, Nov 12, 2022 at 09:21:34AM -0800, Randy Dunlap wrote: >>>> Hi-- >>>> >>>> On 11/12/22 08:37, Ian Cowan wrote: >>>>> When compiling drivers (speficially drivers/pci/hotplug), I am receiving >>>>> the following modpost error for both `kmalloc_trace` and >>>>> `kmalloc_node_trace` on the staging/staging-next branch: >>>>> >> >> Ian, what do you mean by "on the staging/staging-next branch"? >> >> What kernel version are you trying to build? >> >> The .config that you sent is for v6.1.0-rc1. > > I am building from the staging repository (gregkh/staging) and my > working branch when building is staging-next. So I am trying to build > from staging and not a particular version. I have also run `make modules_prepare` > and updated the .config per that script. However, when I do build > v6.1.0-rc1 from the main repository (torvalds/linux), I run into the same problem. Have you built the entire kernel already and then you are trying to build only drivers/pci/hotplug? If I build *only* drivers/pci/hotplug, I do get undefined symbols: WARNING: modpost: "strcmp" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "kfree" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "pci_slots_kset" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "acpiphp_unregister_attention" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "acpi_remove_notify_handler" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "sysfs_remove_bin_file" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "acpi_evaluate_object" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "__kmalloc" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "memcpy" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: "acpi_walk_namespace" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! WARNING: modpost: suppressed 14 unresolved symbol warnings because there were too many) but that's understandable since the object files that would contain those symbols have not been built yet. -- ~Randy