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 E5ED0C433EF for ; Sun, 30 Jan 2022 22:29:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DBB036B00B8; Sun, 30 Jan 2022 17:28:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D67F46B00BA; Sun, 30 Jan 2022 17:28:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2F826B00BC; Sun, 30 Jan 2022 17:28:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay037.a.hostedemail.com [64.99.140.37]) by kanga.kvack.org (Postfix) with ESMTP id B069C6B00B8 for ; Sun, 30 Jan 2022 17:28:59 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 56E5560917 for ; Sun, 30 Jan 2022 22:28:59 +0000 (UTC) X-FDA: 79088394798.01.83A09E3 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf30.hostedemail.com (Postfix) with ESMTP id 2907880005 for ; Sun, 30 Jan 2022 22:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643581738; x=1675117738; h=date:from:to:cc:subject:message-id:mime-version; bh=6mnn7teCe03fQDahwdWoGE6gC/Up48SsngYBV2Y6sbQ=; b=ACo7pdqfF78UqNeuAYC7vcL3x6w+6hH219g46VnXmiwiDwKPVOhr4d0g LwG+9XI7+RiqNIGnMTJhQErE4dkMTi/Rg0TF3QeZfVG5vjQC1OgkgyQDX 1N4SgI6c7Q782g+WtOnffWqHyrQd+W2k0r5PP7sCq8UwfbW0/hNwZReql 4WEMXIAVW4JKOb5V0hDJuTth9gxt80JRgRZvJrMU/WoSbT27uIEklog7m LDb05eCVD+hcWiI6acNjq4Jt086GwpGxox7fPt+BjaR8vyNI8SvrWgw9y cNTDlw47GiqoYaox6h5PqGRlVEpd6nTQi2ckUwB0kKZbYKEPcbJk6jb4t Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="333735622" X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="333735622" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 14:28:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="522405546" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 30 Jan 2022 14:28:54 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nEIgn-000R3O-RT; Sun, 30 Jan 2022 22:28:53 +0000 Date: Mon, 31 Jan 2022 06:28:34 +0800 From: kernel test robot To: Aaron Conole Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Andrew Morton , Linux Memory Management List , Sasha Levin Subject: [linux-stable-rc:linux-4.4.y 6439/9999] include/asm-generic/bug.h:159:2: error: implicit declaration of function 'no_printk'; did you mean 'printk'? Message-ID: <202201310535.VmQma3Z4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Stat-Signature: so35776smat71drucbjp51nqux66uotr X-Rspam-User: nil Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ACo7pdqf; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 2907880005 X-HE-Tag: 1643581737-284328 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 Aaron, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y head: 26e2ad2acac73730fe99e6cfd43a2019b904d983 commit: b60b53d4980f879884740e672d83155980d74445 [6439/9999] printk: help pr_debug and pr_devel to optimize out arguments config: h8300-randconfig-r026-20220130 (https://download.01.org/0day-ci/archive/20220131/202201310535.VmQma3Z4-lkp@intel.com/config) compiler: h8300-linux-gcc (GCC) 7.5.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=b60b53d4980f879884740e672d83155980d74445 git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-4.4.y git checkout b60b53d4980f879884740e672d83155980d74445 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash lib/842/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from lib/842/842_decompress.c:23:0: lib/842/842_debugfs.h: In function 'sw842_debugfs_create': lib/842/842_debugfs.h:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ARRAY_SIZE(template_count); i++) { ^ lib/842/842_decompress.c: In function 'next_bits': lib/842/842_decompress.c:115:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (DIV_ROUND_UP(bits, 8) > p->ilen) ^ In file included from arch/h8300/include/asm/bug.h:7:0, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/asm-generic/preempt.h:4, from arch/h8300/include/generated/asm/preempt.h:1, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from lib/842/842.h:76, from lib/842/842_decompress.c:22: lib/842/842_decompress.c: In function '__do_index': >> include/asm-generic/bug.h:159:2: error: implicit declaration of function 'no_printk'; did you mean 'printk'? [-Werror=implicit-function-declaration] no_printk(format); \ ^ lib/842/842_decompress.c:72:3: note: in expansion of macro 'WARN' WARN(1, "pr_debug param err invalid size %x\n", s)) ^~~~ include/linux/printk.h:114:17: note: in expansion of macro 'beN_to_cpu' printk(fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/printk.h:289:2: note: in expansion of macro 'no_printk' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ lib/842/842_decompress.c:205:2: note: in expansion of macro 'pr_debug' pr_debug("index%x to %lx off %lx adjoff %lx tot %lx data %lx\n", ^~~~~~~~ lib/842/842_decompress.c:71:54: warning: signed and unsigned type in conditional expression [-Wsign-compare] (s) == 8 ? be64_to_cpu(get_unaligned((__be64 *)d)) : \ ^ include/linux/printk.h:114:17: note: in expansion of macro 'beN_to_cpu' printk(fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/printk.h:289:2: note: in expansion of macro 'no_printk' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ lib/842/842_decompress.c:205:2: note: in expansion of macro 'pr_debug' pr_debug("index%x to %lx off %lx adjoff %lx tot %lx data %lx\n", ^~~~~~~~ cc1: some warnings being treated as errors vim +159 include/asm-generic/bug.h b607e70ec6a982 Josh Triplett 2014-04-07 155 b607e70ec6a982 Josh Triplett 2014-04-07 156 #ifndef WARN b607e70ec6a982 Josh Triplett 2014-04-07 157 #define WARN(condition, format...) ({ \ b607e70ec6a982 Josh Triplett 2014-04-07 158 int __ret_warn_on = !!(condition); \ 4e50ebde32bed6 Josh Triplett 2014-04-07 @159 no_printk(format); \ b607e70ec6a982 Josh Triplett 2014-04-07 160 unlikely(__ret_warn_on); \ b607e70ec6a982 Josh Triplett 2014-04-07 161 }) b607e70ec6a982 Josh Triplett 2014-04-07 162 #endif b607e70ec6a982 Josh Triplett 2014-04-07 163 :::::: The code at line 159 was first introduced by commit :::::: 4e50ebde32bed67a9aec8c239bbd89e5d0b8727b bug: when !CONFIG_BUG, make WARN call no_printk to check format and args :::::: TO: Josh Triplett :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org