Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3630505rwb; Sat, 12 Nov 2022 09:17:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Mebi+cWPI6fMAcf0MZnCySvVbAxRuHdcA5JEFXQnoQ2HrAdKo+ulDsOR5xTv+SrLv3Nzc X-Received: by 2002:a17:902:8601:b0:186:9fc8:6688 with SMTP id f1-20020a170902860100b001869fc86688mr7378153plo.22.1668273468317; Sat, 12 Nov 2022 09:17:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668273468; cv=pass; d=google.com; s=arc-20160816; b=oIQXv+zjvzvvVNcdjePvj/fnw5KQm4g0SFx0/l4LZELoLKE69s4tgQtwCxikEdPSfa Fo1JlmkLcKL6vVKBzAghulNnCvv+rxzX4JwjQkSjKvyleEPDmyafCtfFFSnOzAjjb7At JiohFP+KSXWR9HJKl6bhcqktKV86ZNV54YzAc7xABNOIydvPjfDENGgo1Z9IzCwROGiH 88aLSDk4nKAbm2LgKM8+gD16ts0GQ8Ols5/qxcp1iMGc80e34e/jc4mKEbYF5PyxxXEO x6BNcAPIxd3wM2ZT7DbnuVLvz8gQ1SRWldHfLvlBi7sDRjQPODY8Mkrr128dMccQfI2r RA2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=BgjDRUXpzdiJriELDVGw8SLgCUCfYx0kRho3Yjy7mgQ=; b=YeOYpdLe9EuKZ4UVJ/8Es+GbxptTmwuDVAo2wnmS2yylLJRvZMGqSm6f+XDj5zfEXC YmeT+dYobU3pssI5fySCSDhdYxWehGiKKXFj0cYgkv6ZHIsv/FZ7wPQ/zDZp3o1TIrgj cliXXwQkvwl7Kvc8FEoFr2Mm9isr5a2NoMGcnIp2Ut9qhDREvMLF0YVY/2zVTMTEsdOy k4kERwfHCfSXeA1WIFD8Wydl+Z/8ATPPyPLmFW2X567Uv9+TgKnpPQoaVe1GrAxqSqh4 r4h5vK1lLgKwhqsKJhzOzBU8y94HwUI5gnz0uix7IC3zeBarXQ+H2iCuiZrx/xoWn0mI pY8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.cowan.aero header.s=dreamhost header.b="I/oF149P"; arc=pass (i=1); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cowan.aero Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a17090a0a0200b0020354bcfe09si5026219pjo.129.2022.11.12.09.17.36; Sat, 12 Nov 2022 09:17:48 -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=@linux.cowan.aero header.s=dreamhost header.b="I/oF149P"; arc=pass (i=1); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cowan.aero Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231570AbiKLQpE (ORCPT + 91 others); Sat, 12 Nov 2022 11:45:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232659AbiKLQpB (ORCPT ); Sat, 12 Nov 2022 11:45:01 -0500 X-Greylist: delayed 456 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 12 Nov 2022 08:44:58 PST Received: from poodle.tulip.relay.mailchannels.net (poodle.tulip.relay.mailchannels.net [23.83.218.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DFAB17064 for ; Sat, 12 Nov 2022 08:44:57 -0800 (PST) X-Sender-Id: dreamhost|x-authsender|ian@linux.cowan.aero Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A129B7E14ED; Sat, 12 Nov 2022 16:37:17 +0000 (UTC) Received: from pdx1-sub0-mail-a241.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2A3D67E11F6; Sat, 12 Nov 2022 16:37:17 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1668271037; a=rsa-sha256; cv=none; b=Gmz0q2EC7TG0HoDArFAxbgxDmdba1pbRuzfEyas3gMfzN34aRO/07LQTm27+1coibqYQSL fcsMWOCnqmA6Jy8jmmL/7iWHnIDDF/6w9e1gSiuMRrZlwFzpxpiVP1CfzYx9tn02Ph2Z9x HC0S/LkFXF+0vhRbQBTAjZTKSYj+dmNl9aSBzrCh0DoC/Kd/bNahQcP/xN5cASZq5u+5os bV3XlpJjAJObn3WII7NmLGgQ4QQZmic9Ha5SqLMy0/ZSn0LZCyj2wOF4Yyg0cXreEGvClV XWb1edh0mcHLH33VY6KjY6DJLStDSyYawv6pZq3uFnjsjF+HS/0xsszno7ncyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1668271037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=BgjDRUXpzdiJriELDVGw8SLgCUCfYx0kRho3Yjy7mgQ=; b=qyF36bMuI+qiNrS2HVTIZFLEk6KmPlslwBfMJ6BTtxMavLiYk8oQliDDqv3q9GFwbn9g9Q kdbBQB2uwRqDnQweS4llDUITHNFSlwg9Pxi5VcE1euEZcI0rJacSG903vvYm9cM8kEsIRg 4+b8JSuaclMe+Ac+MA2NiDpotMAkWlZFh/J7OwBRBInmrG4KRtBx6QFsqNEwcjcB+H7fwQ tUHT20TG5uKZwJ/kyx6hcPgXNe7v9NIIBiZu6ZhIznoOBIGh+GtSp+SZ4+Vgau4Oi0AJLr +ESd6edXzjKfo9TOyNNSm6nZaN0YUeCsy6MIo5EV/yIaXp6H/IeSWnmH3GoTZA== ARC-Authentication-Results: i=1; rspamd-7f9bbcf788-84scr; auth=pass smtp.auth=dreamhost smtp.mailfrom=ian@linux.cowan.aero X-Sender-Id: dreamhost|x-authsender|ian@linux.cowan.aero X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|ian@linux.cowan.aero X-MailChannels-Auth-Id: dreamhost X-Squirrel-Stretch: 2a467fd87fecc014_1668271037473_2029597070 X-MC-Loop-Signature: 1668271037473:154212069 X-MC-Ingress-Time: 1668271037473 Received: from pdx1-sub0-mail-a241.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.116.179.71 (trex/6.7.1); Sat, 12 Nov 2022 16:37:17 +0000 Received: from rhino (dsl-50-5-144-34.fuse.net [50.5.144.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ian@linux.cowan.aero) by pdx1-sub0-mail-a241.dreamhost.com (Postfix) with ESMTPSA id 4N8h7J0Pvcz2F; Sat, 12 Nov 2022 08:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.cowan.aero; s=dreamhost; t=1668271036; bh=BgjDRUXpzdiJriELDVGw8SLgCUCfYx0kRho3Yjy7mgQ=; h=Date:From:To:Cc:Subject:Content-Type; b=I/oF149PzMbJZPcxOgJDsqzq++dX7exG73gHNdVfAgd/Qfi4o0Jtz8TrWWEO5/3QT rWIRjFMQFFVSovbu74lMznLxKtK7RC2zBJ43tO5zLOLe9cglkO8ZxOGU3BFZeJE5Gg 32Z102edYF1zoAnRDjEACjzla90aJLhCN6FBxcV402eBPBtwyZ9qlhPPoizQ6kKHXz 816fD/FJ4p3Xz7mM02MxtdhNE+GIe5gIRDrcQd7ZvUazJ579OEUX53FNmoidthWRcL ZGzpqKnyH1ioU0gY+YaxiVX5VmQceUrL6FtQn6FUEiIANEoSxZZgZVkEchTvi6rjMp 1I+l9RWkJSUyA== Date: Sat, 12 Nov 2022 11:37:14 -0500 From: Ian Cowan To: 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, ian@linux.cowan.aero Subject: include: linux: slab: kmalloc_trace undefined when compiling drivers Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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.