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 F258BC43334 for ; Mon, 4 Jul 2022 08:03:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A7896B0073; Mon, 4 Jul 2022 04:03:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 556626B0074; Mon, 4 Jul 2022 04:03:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 41F026B0075; Mon, 4 Jul 2022 04:03:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 2FBF06B0073 for ; Mon, 4 Jul 2022 04:03:22 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 64A9488B0B for ; Mon, 4 Jul 2022 07:42:27 +0000 (UTC) X-FDA: 79648624776.26.3BBF82E Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf15.hostedemail.com (Postfix) with ESMTP id 69C01A033E for ; Mon, 4 Jul 2022 07:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656920281; x=1688456281; h=date:from:to:cc:subject:message-id:mime-version; bh=sBkoQtlKXPh3TSHiYDeLDi0AKqHX5D1X8cgBYlrxDkc=; b=immK7Yq9QhemDbi/S7qCmbZpz5sV9Luc39YmmMhNX+whCF7Gm3tYcDuT TXRtxy1Y22dnzkH+LFl1rkzXCQR8vt+fzVSiA36S/+QhFqIyyItc/LTUv S07Dcp4vFO9KN7HQ7CqHpHiq8GxXth0WS6gwAW0F+Ly38NPAJ6oBU+Vyp bT9lR0H+j35dMmZxrHU8j4Qe3stBAa6NhCAuNPJjZPgde4IEe6xUnlGMS 7Ch9Dqw6YRx7WbOMjyUU4GMvUBAhymD8hqzCnOzYHYK/2ccBPc+w8jppE B+GA9+ZpQU1yyKczod4ZQQ7P6ydN0IbaHviR33QGQiCMWxUUv+R7msl/3 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="308594648" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="308594648" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 00:37:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="567077227" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 04 Jul 2022 00:37:57 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o8Gea-000Hfj-FX; Mon, 04 Jul 2022 07:37:56 +0000 Date: Mon, 4 Jul 2022 15:37:18 +0800 From: kernel test robot To: Naoya Horiguchi Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 245/249] mm/memory-failure.c:1896:20: error: conflicting types for 'free_raw_hwp_pages'; have 'void(struct page *, bool)' {aka 'void(struct page *, _Bool)'} Message-ID: <202207041521.EwJv2nMT-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656920282; 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: references:dkim-signature; bh=sgzVcyjq4HIPVvIu8OoWNTn5qFqLupZaxK0T3d4ZVDM=; b=w0TC29R/I/pl/JK+ts6uZujedQnmhVoZKQuFmB1LHIt7zyNUOcqUrGhW4tyV3TXYse4MEG 1wh7RVp47ME8Ox//a4a3OBAVQeTL6AZ8YM/VGt0bmCWhybv8sSe9d026r5hASPZYzGT/vs rY5zhzCUwTmaIqzOEY2VkG8oVQIZe+A= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=immK7Yq9; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf15.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656920282; a=rsa-sha256; cv=none; b=GoSRGvRofegHgEKT28SA0JuU8SbFw4dB2f3qiMH2OYuDeoVaByxLUKoESyOO6mKpFm6YUN Zj/DKtGoY1opoQVXoVTL7PCcQcahKmj2k0wd97RQouGm8u7FiiH3kJct0NmU9B1fI14XZI 9Oax7hL9UygLjdPlwyuVDhTnBhmPCoA= Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=immK7Yq9; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf15.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 69C01A033E X-Stat-Signature: r54ux1h1akd7xicjmd5t3niicp1d8uha X-Rspam-User: X-HE-Tag: 1656920281-984265 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: ce4dc6b0378ef1bd305c37c94fb8aabee4c5be04 commit: 06df85861209bbda16524e813ed959c09dee999b [245/249] mm, hwpoison: make unpoison aware of raw error info in hwpoisoned hugepage config: parisc-randconfig-r014-20220703 (https://download.01.org/0day-ci/archive/20220704/202207041521.EwJv2nMT-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 11.3.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/akpm/mm.git/commit/?id=06df85861209bbda16524e813ed959c09dee999b git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 06df85861209bbda16524e813ed959c09dee999b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/mmzone.h:21, from include/linux/gfp.h:6, from include/linux/mm.h:7, from mm/memory-failure.c:37: mm/memory-failure.c: In function 'raw_hwp_list_head': mm/memory-failure.c:1679:59: error: 'SUBPAGE_INDEX_HWPOISON' undeclared (first use in this function) 1679 | return (struct llist_head *)&page_private(hpage + SUBPAGE_INDEX_HWPOISON); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/mm_types.h:334:43: note: in definition of macro 'page_private' 334 | #define page_private(page) ((page)->private) | ^~~~ mm/memory-failure.c:1679:59: note: each undeclared identifier is reported only once for each function it appears in 1679 | return (struct llist_head *)&page_private(hpage + SUBPAGE_INDEX_HWPOISON); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/mm_types.h:334:43: note: in definition of macro 'page_private' 334 | #define page_private(page) ((page)->private) | ^~~~ mm/memory-failure.c: At top level: >> mm/memory-failure.c:1896:20: error: conflicting types for 'free_raw_hwp_pages'; have 'void(struct page *, bool)' {aka 'void(struct page *, _Bool)'} 1896 | static inline void free_raw_hwp_pages(struct page *hpage, bool move_flag) | ^~~~~~~~~~~~~~~~~~ mm/memory-failure.c:1725:20: note: previous definition of 'free_raw_hwp_pages' with type 'long int(struct page *, bool)' {aka 'long int(struct page *, _Bool)'} 1725 | static inline long free_raw_hwp_pages(struct page *hpage, bool move_flag) | ^~~~~~~~~~~~~~~~~~ mm/memory-failure.c: In function 'unpoison_memory': >> mm/memory-failure.c:2353:31: error: void value not ignored as it ought to be 2353 | count = free_raw_hwp_pages(page, false); | ^ mm/memory-failure.c:2363:31: error: void value not ignored as it ought to be 2363 | count = free_raw_hwp_pages(page, false); | ^ mm/memory-failure.c: In function 'raw_hwp_list_head': mm/memory-failure.c:1680:1: error: control reaches end of non-void function [-Werror=return-type] 1680 | } | ^ cc1: some warnings being treated as errors vim +1896 mm/memory-failure.c 1895 > 1896 static inline void free_raw_hwp_pages(struct page *hpage, bool move_flag) 1897 { 1898 } 1899 #endif /* CONFIG_HUGETLB_PAGE */ 1900 -- 0-DAY CI Kernel Test Service https://01.org/lkp