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 BDE82C77B61 for ; Sat, 22 Apr 2023 00:11:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C32556B0071; Fri, 21 Apr 2023 20:11:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE2D96B0072; Fri, 21 Apr 2023 20:11:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A831C6B0074; Fri, 21 Apr 2023 20:11:48 -0400 (EDT) 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 980706B0071 for ; Fri, 21 Apr 2023 20:11:48 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6E7FD1C6B5E for ; Sat, 22 Apr 2023 00:11:48 +0000 (UTC) X-FDA: 80707098696.30.9EF4031 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf30.hostedemail.com (Postfix) with ESMTP id A11588000E for ; Sat, 22 Apr 2023 00:11:45 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hTdwEuI3; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682122306; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/PckajIeAwIhZTlLNR6RZaFoI2Fk6RNokwqTRZmA/Rc=; b=apP64z06cFPSkWX+cZsVAS9caclJdYHPt9iPqnYbAXtHuhe8maTjytXPsOgI/BFZESlADU l0dcs4Qe6H7W2oZ/hKZyhPqj1oS1QbIi4AzPejn6Stw38klx4YiIEp+48TqooQguWZxHf2 wzQfIuxiR/5FvyWrzyWXMLzBLEKH8TA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hTdwEuI3; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682122306; a=rsa-sha256; cv=none; b=eZND/cfkNobUIe6EFCQ/rvcwT9GpVVGb1B89riMh+sgkvpEshUEw2XRjmKp7HxXRGGjcED 6KBIl78dPC2B7B1H/66xwhESj98ZtkS9lQPcDrxZ9ppAHqOh5vsLaqskx6UUYbN/31U4yA MU+tgb8mjU86pkQD566BjZ2IK8CDlPI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682122305; x=1713658305; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+id0SKURZQTqnIN1PkOKngvU/Tc+6miOnK4qEArTJ9E=; b=hTdwEuI3pEthe5OmpLpwwO96XjXXe2+rdg857avKIRxuP5Tg9oRATOmX DaXnYas9sYrdz8Xsc5cJj64z13Qu0IVwCQS81ZZVN8f8yPtJU2nWjDZRL AZmCt27Lliv+SXeoMGBx1vgHtG8tVukqLOwGWOscz++bG5X/JRcMlHd+4 vR1Weij8EeApUqOhtxVXBTf3ztafusf6wk3W6FXmNcG+vx+9vhIeOmtyx OMzoTABkK0U1cePDsDSaCbk6MLGsaOjI5OjaCGcA0W5HFKeX3VS168Uy7 zuIz9S6PThKo2hHJZCvUrW6FVgLfB0aqtTuwwBGkRjx4htYMUXgBO9XBp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10687"; a="348020635" X-IronPort-AV: E=Sophos;i="5.99,216,1677571200"; d="scan'208";a="348020635" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2023 17:11:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10687"; a="642689892" X-IronPort-AV: E=Sophos;i="5.99,216,1677571200"; d="scan'208";a="642689892" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 21 Apr 2023 17:11:28 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pq0qd-000gwm-2i; Sat, 22 Apr 2023 00:11:27 +0000 Date: Sat, 22 Apr 2023 08:11:07 +0800 From: kernel test robot To: Oscar Salvador , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, Michal Hocko , Vlastimil Babka , Eric Dumazet , Waiman Long , Suren Baghdasaryan , Marco Elver , Andrey Konovalov , Alexander Potapenko , Oscar Salvador Subject: Re: [PATCH v4 2/3] mm, page_owner: Add page_owner_stacks file to print out only stacks and their counte Message-ID: <202304220715.syaqgRUa-lkp@intel.com> References: <20230421101415.5734-3-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230421101415.5734-3-osalvador@suse.de> X-Rspamd-Queue-Id: A11588000E X-Stat-Signature: h44ezpmozrkax1h9s7whemzwxfn8tnws X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1682122305-103193 X-HE-Meta: U2FsdGVkX18sxsyAkV1McaVJGFDK4zYOgkODa96/jZjkmh4hMTfPE0c8qunhqEkJXJC1nmZTPejaHDS5+pfFUsP/jzzEMgEfklTzI4TRxHvSTjrW9REmmCYIPu576G81mkXdnWaT8SU+t+tU+JKDzbrs40Bu1IlEzLmSW4gPUlVdX00TEB8TbinWt64wh+k7FDDVOiCEv/gyIFthGmcxKI93hF6a2mCygb6nCfHxs3pjAjzy6ycicylqecStfhFysoudedYg4fEm/rXKhi8VTC/Dh9PM6eUbS2cNZXOpYznpa0xY6lGJvl8qaSTiV4VxYfSGzP5VlJ4vUBYDDl/0PUqOWhXSMXW+UY8gyCv3KoQRLMLco/XepA+5Iu2Z2VzcaaK45HxtAf24AskAl8oj1H3hFPYzQYtHJOblO1mwriZxgLRnyhZu/hHMNYe771mseV4QKV52Cq62t3nJJgEjrOjZ/Gt204sjWcGS6v6OwiDsMmvIJ8P9miYcgoRdOtJ9nNDl1mq2+cy0NnrJVIzbPFwBv7opbL3EWFKZE4eQsQZQzARRuVmpUTNQ0XQDuAGeoK+rO7bKyxVPI1KXnIwqft/0BvSt9aHIsGbpGP/rplLgYt6H/veIKeDAQY2IF/son18whwL2LtLSvFSheO01h7tR/LVDOPdME18WxrTuPooh46DyhzgsVKhY3eXzP9VleqX8fSL+0k2jk7Qdtn46reO3pbQmY89IvuMWasYDhSKR0X/F8oj1eT6h1+gSxYLhu/SoxflXzFy0ubxOxGQhGFp0uXSmiqUJn7WmslIdJILQg4MU1g6r1Jbr44KV7vctamBF8cQ6j97/oKjudNaoMBaphL+XOQBEAlSFfY/8uH1aT0cAr/JY6mHYc3V3b37aSB6/p3+uPz95J69CckTxrrLm8XHIhF7f4Vh8t3Wy3+CTvkxhmoEC8wQ8eqQcSbx74MRCIWgKp+3FcXeOg1g liYNZ/gg RD/Y+wPmQUYWK4HYtc1QPxc/3lFtl0W0GNZgHtHGf5p7KQ5SsB9SVs2GHd4jSL5Cu/2dkVyH11AroDswK53ca65yDzExZdUAl6OZFZAdrFfUtpBm+oXb7nEd5Ocjj6y0QiNtySilXuvietA566Fya4IwVxq8O9R918lq4sGKj01yQkNyJvdB/+4RWSfa/mQo+JI8uubvZLqsvGW1NigQdfNZFtaylZ9+DGBFTv+eJL+O22jik8tjDKUeQOiPDks6y2CkHe+Yuc9kcO7mpKAFYatexeSX+CBxYTHSu415vR5XLENAVJPKsD/2Xjqhgrwesd/CEbdvUU0cqG1FCnXzkr1T6JWZ5ZMIdL93hm1WRjsZKNYI0JV0cGjEaaBam3piHyBQYA7AtyuOTYHaGJVEmQnsksD94GRLb2hiJPHJMOho2HQa/JrxsqQrfGbl3SbM4y33ZvzxmPxuMeYvnD77sf7eBY1eljtpdhsiX 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 Oscar, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.3-rc7] [cannot apply to akpm-mm/mm-everything next-20230421] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Oscar-Salvador/lib-stackdepot-Add-a-refcount-field-in-stack_record/20230421-181709 base: linus/master patch link: https://lore.kernel.org/r/20230421101415.5734-3-osalvador%40suse.de patch subject: [PATCH v4 2/3] mm, page_owner: Add page_owner_stacks file to print out only stacks and their counte config: powerpc-randconfig-r026-20230421 (https://download.01.org/0day-ci/archive/20230422/202304220715.syaqgRUa-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/6c6dfc43015e1939f433f4371d33418ab4d03411 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Oscar-Salvador/lib-stackdepot-Add-a-refcount-field-in-stack_record/20230421-181709 git checkout 6c6dfc43015e1939f433f4371d33418ab4d03411 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/ kernel/dma/ lib/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304220715.syaqgRUa-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from lib/show_mem.c:8: In file included from include/linux/mm.h:22: In file included from include/linux/page_ext.h:7: >> include/linux/stackdepot.h:120:26: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_start(struct seq_file *m, loff_t *ppos); ^ include/linux/stackdepot.h:121:25: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_next(struct seq_file *m, void *v, loff_t *ppos); ^ include/linux/stackdepot.h:122:24: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] int stack_print(struct seq_file *m, void *v); ^ 3 warnings generated. -- In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:22: In file included from include/linux/page_ext.h:7: >> include/linux/stackdepot.h:120:26: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_start(struct seq_file *m, loff_t *ppos); ^ include/linux/stackdepot.h:121:25: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_next(struct seq_file *m, void *v, loff_t *ppos); ^ include/linux/stackdepot.h:122:24: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] int stack_print(struct seq_file *m, void *v); ^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :214:1: note: expanded from here __do_insb ^ arch/powerpc/include/asm/io.h:577:56: note: expanded from macro '__do_insb' #define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :216:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:578:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :218:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:579:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :220:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:580:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :222:1: note: expanded from here __do_outsw ^ arch/powerpc/include/asm/io.h:581:58: note: expanded from macro '__do_outsw' #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :224:1: note: expanded from here __do_outsl ^ arch/powerpc/include/asm/io.h:582:58: note: expanded from macro '__do_outsl' #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ 9 warnings generated. -- In file included from lib/stackdepot.c:20: In file included from include/linux/mm.h:22: In file included from include/linux/page_ext.h:7: >> include/linux/stackdepot.h:120:26: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_start(struct seq_file *m, loff_t *ppos); ^ include/linux/stackdepot.h:121:25: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] void *stack_next(struct seq_file *m, void *v, loff_t *ppos); ^ include/linux/stackdepot.h:122:24: warning: declaration of 'struct seq_file' will not be visible outside of this function [-Wvisibility] int stack_print(struct seq_file *m, void *v); ^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :217:1: note: expanded from here __do_insb ^ arch/powerpc/include/asm/io.h:577:56: note: expanded from macro '__do_insb' #define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :219:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:578:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :221:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:579:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :223:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:580:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :225:1: note: expanded from here __do_outsw ^ arch/powerpc/include/asm/io.h:581:58: note: expanded from macro '__do_outsw' #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from lib/stackdepot.c:29: In file included from include/linux/memblock.h:13: In file included from arch/powerpc/include/asm/dma.h:22: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :227:1: note: expanded from here __do_outsl ^ arch/powerpc/include/asm/io.h:582:58: note: expanded from macro '__do_outsl' #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ >> lib/stackdepot.c:505:7: error: conflicting types for 'stack_start' void *stack_start(struct seq_file *m, loff_t *ppos) ^ include/linux/stackdepot.h:120:7: note: previous declaration is here void *stack_start(struct seq_file *m, loff_t *ppos); ^ >> lib/stackdepot.c:523:7: error: conflicting types for 'stack_next' void *stack_next(struct seq_file *m, void *v, loff_t *ppos) ^ include/linux/stackdepot.h:121:7: note: previous declaration is here void *stack_next(struct seq_file *m, void *v, loff_t *ppos); ^ >> lib/stackdepot.c:552:5: error: conflicting types for 'stack_print' int stack_print(struct seq_file *m, void *v) ^ include/linux/stackdepot.h:122:5: note: previous declaration is here int stack_print(struct seq_file *m, void *v); ^ 9 warnings and 3 errors generated. -- In file included from arch/powerpc/kernel/align.c:17: In file included from include/linux/mm.h:22: In file included from include/linux/page_ext.h:7: >> include/linux/stackdepot.h:120:26: error: declaration of 'struct seq_file' will not be visible outside of this function [-Werror,-Wvisibility] void *stack_start(struct seq_file *m, loff_t *ppos); ^ include/linux/stackdepot.h:121:25: error: declaration of 'struct seq_file' will not be visible outside of this function [-Werror,-Wvisibility] void *stack_next(struct seq_file *m, void *v, loff_t *ppos); ^ include/linux/stackdepot.h:122:24: error: declaration of 'struct seq_file' will not be visible outside of this function [-Werror,-Wvisibility] int stack_print(struct seq_file *m, void *v); ^ In file included from arch/powerpc/kernel/align.c:22: In file included from arch/powerpc/include/asm/emulated_ops.h:10: In file included from include/linux/perf_event.h:52: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:43:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :220:1: note: expanded from here __do_insb ^ arch/powerpc/include/asm/io.h:577:56: note: expanded from macro '__do_insb' #define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/kernel/align.c:22: In file included from arch/powerpc/include/asm/emulated_ops.h:10: In file included from include/linux/perf_event.h:52: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:45:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :222:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:578:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/kernel/align.c:22: In file included from arch/powerpc/include/asm/emulated_ops.h:10: In file included from include/linux/perf_event.h:52: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:47:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :224:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:579:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/kernel/align.c:22: In file included from arch/powerpc/include/asm/emulated_ops.h:10: In file included from include/linux/perf_event.h:52: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:49:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :226:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:580:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ vim +/stack_start +505 lib/stackdepot.c 503 504 #ifdef CONFIG_PAGE_OWNER > 505 void *stack_start(struct seq_file *m, loff_t *ppos) 506 { 507 unsigned long *table = m->private; 508 struct stack_record **stacks, *stack; 509 510 /* First time */ 511 if (*ppos == 0) 512 *table = 0; 513 514 if (*ppos == -1UL) 515 return NULL; 516 517 stacks = &stack_table[*table]; 518 stack = (struct stack_record *)stacks; 519 520 return stack; 521 } 522 > 523 void *stack_next(struct seq_file *m, void *v, loff_t *ppos) 524 { 525 unsigned long *table = m->private; 526 unsigned long nr_table = *table; 527 struct stack_record *next = NULL, *stack = v, **stacks; 528 unsigned long stack_table_entries = stack_hash_mask + 1; 529 530 if (!stack) { 531 new_table: 532 /* New table */ 533 nr_table++; 534 if (nr_table >= stack_table_entries) 535 goto out; 536 stacks = &stack_table[nr_table]; 537 stack = (struct stack_record *)stacks; 538 next = stack; 539 } else { 540 next = stack->next; 541 } 542 543 if (!next) 544 goto new_table; 545 546 out: 547 *table = nr_table; 548 *ppos = (nr_table >= stack_table_entries) ? -1UL : *ppos + 1; 549 return next; 550 } 551 > 552 int stack_print(struct seq_file *m, void *v) 553 { 554 char *buf; 555 int ret = 0; 556 struct stack_record *stack =v; 557 558 if (!stack->size || stack->size < 0 || 559 stack->size > PAGE_SIZE || stack->handle.valid != 1 || 560 refcount_read(&stack->count) < 1) 561 return 0; 562 563 buf = kzalloc(PAGE_SIZE, GFP_KERNEL); 564 ret += stack_trace_snprint(buf, PAGE_SIZE, stack->entries, stack->size, 0); 565 scnprintf(buf + ret, PAGE_SIZE - ret, "stack count: %d\n\n", 566 refcount_read(&stack->count)); 567 seq_printf(m, buf); 568 seq_puts(m, "\n\n"); 569 kfree(buf); 570 571 return 0; 572 } 573 #endif 574 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests