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 E89ABC433FE for ; Sun, 13 Nov 2022 00:34:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3DA516B0074; Sat, 12 Nov 2022 19:34:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 38A5B6B0075; Sat, 12 Nov 2022 19:34:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 252946B0078; Sat, 12 Nov 2022 19:34:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 14EFC6B0074 for ; Sat, 12 Nov 2022 19:34:35 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A10D41205DD for ; Sun, 13 Nov 2022 00:34:33 +0000 (UTC) X-FDA: 80126548026.09.794A0B1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf24.hostedemail.com (Postfix) with ESMTP id C174F180004 for ; Sun, 13 Nov 2022 00:34:31 +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=XE1oCfqJOfs2FHdZ2Qk9hMOwWip4dAstO4FN/Ti2yFQ=; b=WOatxRCnU82L+5XSl25dh6pJYy LwtkUGp5ZEiyUOGKJVNSveR2j0+OtTz4lNFc8IQIWSDHNrioh3q35KKlSs3KRTQ/jl76YDlvag5CA 9iLOOTNa1HAssljutvzb5M3KMwMlcB7YEJcl21/lwa1Lt1s0N0LiA5EF6UNxS/I0FNDerzN0gscDP QvXe20i5bhFWdBoAegTXLkjyJaPrdLC496pPPN0cyvJ90dz15R96rbzKnM6ELHlwef2kXaa2f759n 3zvskks87fTcjMezfERzQePRdE0w3EaM5oOq98BEEO4zXFf8ej/2qF9XiYZxJ0pXY90fL35D4LrDz swPOEoMw==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ou0x2-008YkT-LR; Sun, 13 Nov 2022 00:34:20 +0000 Message-ID: <1df133ef-d5e9-f323-7c67-fc9ffed04274@infradead.org> Date: Sat, 12 Nov 2022 16:34:18 -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 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: Content-Language: en-US From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668299673; a=rsa-sha256; cv=none; b=gvjJnOy1PD0v7jaKOXKiXRlR35W6MFeye8AtfwaNg0eQpCuRatucl3ZVxys1cTGRGzDSHz wNj9OwBexENT6pN2gw2RF0A0NLvViUwvoD54NJCSFR/xL4VRwdLxovCuHsvLBYXN9m68Sz WNmypKO74uMi4y0DN01IWPyu0Lu/LNk= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=WOatxRCn; dmarc=none; spf=none (imf24.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=rdunlap@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668299673; 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=XE1oCfqJOfs2FHdZ2Qk9hMOwWip4dAstO4FN/Ti2yFQ=; b=e1DITqhtO08xKWDYc7sUsNUiFLIcVkWJCM1Pm0jsif/iH0B2jrXwe+eP7/Zy58KB5VdfQs 8HzMegiiAzr2alOyl3zl8m+44dp028d5jgZ/u9NEnrR9VQIA9QULQ0Yo2fp/tfCpeEqtKv 37mEJmlet/mfFlDIzRA20RyQO4E8vts= X-Rspam-User: X-Stat-Signature: qftxys5mdtqxu98wm6bxdd4f3ubguhs1 X-Rspamd-Queue-Id: C174F180004 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=WOatxRCn; dmarc=none; spf=none (imf24.hostedemail.com: domain of rdunlap@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=rdunlap@infradead.org X-Rspamd-Server: rspam03 X-HE-Tag: 1668299671-7989 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: 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. >>> 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 >> > Below is my .config file. This is pretty much a default Fedora .config > (copied from my system) with possibly a few additions to make sure the > modules I needed to compile did compile. I was compiling using the > command: `make M=drivers/pci/hotplug`. Sorry, I cannot reproduce the problem. Hopefully someone else has some ideas. -- ~Randy