Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3638811rwb; Sat, 12 Nov 2022 09:28:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4J6WCyffPKC/WWzjL0ZjxaEFvQjkdGBLHedhGGbzRRNzfjnatU3KWj1k1XVhKd04D0Ats8 X-Received: by 2002:a17:906:1c03:b0:78d:3ff8:6ec8 with SMTP id k3-20020a1709061c0300b0078d3ff86ec8mr5541630ejg.568.1668274123706; Sat, 12 Nov 2022 09:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668274123; cv=none; d=google.com; s=arc-20160816; b=xbC8171iubo+5iOa1iXJCg7W1GCw4iB/H3hb3j+lD4z4nwgCEeToqaTC4oCrDZjmT8 wVkRyCKsLCAJpouztp2vCOwXYu9eoIxbxau2by909vpZ5GcduU20nVHS9Iw06EcBKVZe +jwjx/54QIVT+uJ/dK2fUQPcOHgOshh87Ujxkpl9/wpA8cnQY/czBPOZUp110y+yE/Kj 31wdgXEqpa+BtmLPEnoxyXpJ1NGWPWrHPj2avaNyD6ZK9Lt75tzYKvVPCiRn9wOZchmJ mnV6QHrLE71DHLZrgRC9hnJ6BSCiEYXLOfzc9i3y4YZOFOvn67fKnTdbIMl0Y9bu1DfQ ruMw== 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=w19pb6HJ2xuGUcdr6XnHaANHKpqgufdmt2JVPqsUfnY=; b=dYKEMSJeC/X9ZwCNVrIMHYJmt+nPz2sVHfmqnidCYBae2DRRXTMdmzBT/KJYRn5aq+ 4cP7j/cKqu7PyXI2Fo2hJ/yospFH12o0IYdDx1JI3qwjXcpQ/RANwIxNRdkvbuaP0qJo XmUgOkZ8XimxjxZSjAZSmE/x01XATTaPnNjlDlFOFimlsCJizTxcmTVIv0WyFY9/L/yf Y9Lz4bRynsAhG7rrnT3IgYvclE0ZpJzcZl3e5H4Wet2lNm219T3qT0Zv0o3ErQ0efisS koiKnG2POSfDqOWf2XeB96LLuSPOYtEUpCzDx1H6VvCO5HqxKmxWEifnKUNrj8sJxY9f Mq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0zkUEhHo; 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 q1-20020a170906a08100b0078a10c159b4si4191251ejy.290.2022.11.12.09.28.22; Sat, 12 Nov 2022 09:28:43 -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=0zkUEhHo; 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 S234964AbiKLRVx (ORCPT + 90 others); Sat, 12 Nov 2022 12:21:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiKLRVw (ORCPT ); Sat, 12 Nov 2022 12:21:52 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F144D10B77 for ; Sat, 12 Nov 2022 09:21:50 -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=w19pb6HJ2xuGUcdr6XnHaANHKpqgufdmt2JVPqsUfnY=; b=0zkUEhHonU3lvwQjMwFRxTpkft /MCGnRRSH20IqktHD6F9gHWW2wuF/46Tbs2ijXiA4j+fuw6krRlP11FG8eObUGyn2pmIoNr1k5waa EJWSOfoiWW7JzlMNGeUjMCJNHz91Vl8nDlxJ8yAZfpLY35Eh5XwVHOxXbmdCPacs6sAvLUPp6QtAr s5nUB36HHK3Kjce4ktu+LRpz6kyEpeWFezCBpeI2ZbYbczQAQyxYm69dJ8AdR8bLhck1ScHkNwU/N PnS4XSETze92bQy+pY5xf/WSh++tunmIMol1aUC0ML2aldg0DShZEF4SyYOPdAfNw5ZO2NWflzidd 6T/TElJA==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1otuCH-0070Np-OU; Sat, 12 Nov 2022 17:21:37 +0000 Message-ID: Date: Sat, 12 Nov 2022 09:21:34 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: include: linux: slab: kmalloc_trace undefined when compiling drivers Content-Language: en-US To: Ian Cowan , cl@linux.com Cc: 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: 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 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: > > ERROR: modpost: "kmalloc_trace" [drivers/pci/hotplug/acpiphp_ibm.ko] undefined! > > This only occurs when I have 'CONFIG_TRACING=y' in my config, and I > have traced it down to the slab header where the kmalloc_trace is > defined. It appears that when CONFIG_TRACING is set, the kmalloc_trace > and kmalloc_node_trace do not get defined by the compiler. I do not have > enough context in this area of the code base to propose a fix or to even > know if maybe it's a local compiling issue for myself. It looks like > there are a few recent commits from August that did some refactoring in this header, > and when compiling prior to that refactoring I am able to compile the > specified drivers without error. > > I will mention that I am using Red Hat gcc version 12.2.1 and make version > 4.3 and am on Fedora. Please post a full failing kernel .config file for this. Thanks. -- ~Randy