From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2883C433FE for ; Sat, 12 Nov 2022 17:21:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0001D6B0071; Sat, 12 Nov 2022 12:21:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EF2E06B0072; Sat, 12 Nov 2022 12:21:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE1C48E0001; Sat, 12 Nov 2022 12:21:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CF56A6B0071 for ; Sat, 12 Nov 2022 12:21:51 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9F56CA5CFA for ; Sat, 12 Nov 2022 17:21:51 +0000 (UTC) X-FDA: 80125457622.12.F928E01 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf10.hostedemail.com (Postfix) with ESMTP id 60DDBC0005 for ; Sat, 12 Nov 2022 17:21:50 +0000 (UTC) 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 ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=0zkUEhHo; spf=none (imf10.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=rdunlap@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668273711; a=rsa-sha256; cv=none; b=dXjAa3sQoQYUJVO5exZn89q0ZeQX23EzoQzHghzLOIcF2qAb8XESq5Q3LvAw+HPBYgkN+d qrLj8595BGwSa7P/biqyHd+jk9aAm2s2ijM5WnnKHLR5S4Gh541EKWOv15a6uMWpl47aSb 5Kk6FXRf1Tm6sfFXLf4ONWhApd7Yl90= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668273711; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=w19pb6HJ2xuGUcdr6XnHaANHKpqgufdmt2JVPqsUfnY=; b=tizeKq0y9V/xvfgm1geKXRPO+UvZXd/+CL78/3UZCTKMxiHsb+2OhqSuaoGBG9/pU6+cFJ fdM62HMnQ39mayuUCJor+83gllv9uHHjF1DChdFZhX3E41UdYkrYAPibBA02eZAX81Ou8+ 9/+9GE+P//tV5C98rrEdUo2XitsJpbY= X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 60DDBC0005 X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=0zkUEhHo; spf=none (imf10.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=rdunlap@infradead.org; dmarc=none X-Stat-Signature: buwgi56ysr84kgqidydmwmq3arqf8hgm X-HE-Tag: 1668273710-833257 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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