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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53A2CC433EF for ; Wed, 9 Mar 2022 03:56:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbiCID5v (ORCPT ); Tue, 8 Mar 2022 22:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbiCID5t (ORCPT ); Tue, 8 Mar 2022 22:57:49 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E726910CF1F for ; Tue, 8 Mar 2022 19:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646798211; x=1678334211; h=date:from:to:cc:subject:message-id:mime-version; bh=zhSDdYxcmWbPFkEHjI2OSnPMDeq/jFMcT8jeubKQfIY=; b=HaXMEwUBUj3B15PEEFaNXJg+FjcNQ0ZZV+IUqKVkzXtRJTRjrlHUs7oT 9FTfSEKOSSJvWYNFB+SeK+wk55jQsn7zmjLRxJUVNqcBQkwB6Ezvql3fK 81K+SlvDAVxFhH4jvsbb4NEigCitVLduPHSZO+ur5PtsJ9aoRCKb3G7z/ s9hRS2Zywf9GHofHnTk0IyM0mpWdHF52s9XwR0Ji/qhtbbhkYdkD7HJBT baGHcN2UoxOATZTyL9wnUlM06EjE3eznv+Jm+1MDOEHLOMLZiiBSBgCyQ dRDbYJH1QZE/ZBN/WJdHZ+J0Ms9pkBhWDE7ef7upu8SLfH6zgsXZmaTRO w==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="315596427" X-IronPort-AV: E=Sophos;i="5.90,166,1643702400"; d="scan'208";a="315596427" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 19:56:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,166,1643702400"; d="scan'208";a="711790402" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 08 Mar 2022 19:56:50 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRnRR-0002XF-Lx; Wed, 09 Mar 2022 03:56:49 +0000 Date: Wed, 9 Mar 2022 11:56:14 +0800 From: kernel test robot To: "Eric W. Biederman" Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [ebiederm-user-namespace:coredump-vma-snapshot-fix 1/5] fs/binfmt_flat.c:121:50: error: invalid use of undefined type 'struct coredump_params' Message-ID: <202203091120.1aKGFQ4H-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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git coredump-vma-snapshot-fix head: 390031c942116d4733310f0684beb8db19885fe6 commit: a99a3e2efaf1f4454eb5c9176f47e66de075b134 [1/5] coredump: Move definition of struct coredump_params into coredump.h config: riscv-randconfig-r042-20220308 (https://download.01.org/0day-ci/archive/20220309/202203091120.1aKGFQ4H-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 11.2.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/ebiederm/user-namespace.git/commit/?id=a99a3e2efaf1f4454eb5c9176f47e66de075b134 git remote add ebiederm-user-namespace https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git git fetch --no-tags ebiederm-user-namespace coredump-vma-snapshot-fix git checkout a99a3e2efaf1f4454eb5c9176f47e66de075b134 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash 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 include/linux/kernel.h:29, from fs/binfmt_flat.c:21: fs/binfmt_flat.c: In function 'flat_core_dump': >> fs/binfmt_flat.c:121:50: error: invalid use of undefined type 'struct coredump_params' 121 | current->comm, current->pid, cprm->siginfo->si_signo); | ^~ include/linux/printk.h:418:33: note: in definition of macro 'printk_index_wrap' 418 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:499:9: note: in expansion of macro 'printk' 499 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ fs/binfmt_flat.c:120:9: note: in expansion of macro 'pr_warn' 120 | pr_warn("Process %s:%d received signr %d and should have core dumped\n", | ^~~~~~~ At top level: fs/binfmt_flat.c:118:12: warning: 'flat_core_dump' defined but not used [-Wunused-function] 118 | static int flat_core_dump(struct coredump_params *cprm) | ^~~~~~~~~~~~~~ vim +121 fs/binfmt_flat.c ^1da177e4c3f415 Linus Torvalds 2005-04-16 111 ^1da177e4c3f415 Linus Torvalds 2005-04-16 112 /****************************************************************************/ ^1da177e4c3f415 Linus Torvalds 2005-04-16 113 /* ^1da177e4c3f415 Linus Torvalds 2005-04-16 114 * Routine writes a core dump image in the current directory. ^1da177e4c3f415 Linus Torvalds 2005-04-16 115 * Currently only a stub-function. ^1da177e4c3f415 Linus Torvalds 2005-04-16 116 */ ^1da177e4c3f415 Linus Torvalds 2005-04-16 117 f6151dfea21496d Masami Hiramatsu 2009-12-17 118 static int flat_core_dump(struct coredump_params *cprm) ^1da177e4c3f415 Linus Torvalds 2005-04-16 119 { 4adbb6ac4b807e2 Nicolas Pitre 2016-07-24 120 pr_warn("Process %s:%d received signr %d and should have core dumped\n", 13c3f50c914e6a5 Nicolas Pitre 2016-07-24 @121 current->comm, current->pid, cprm->siginfo->si_signo); 13c3f50c914e6a5 Nicolas Pitre 2016-07-24 122 return 1; ^1da177e4c3f415 Linus Torvalds 2005-04-16 123 } ^1da177e4c3f415 Linus Torvalds 2005-04-16 124 :::::: The code at line 121 was first introduced by commit :::::: 13c3f50c914e6a51d11e1aba4a85c2223e197e13 binfmt_flat: assorted cleanups :::::: TO: Nicolas Pitre :::::: CC: Greg Ungerer --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org