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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94449CD98C0 for ; Tue, 10 Oct 2023 21:47:19 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R1ejKUzy; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4S4qHn5hrHz3vYG for ; Wed, 11 Oct 2023 08:47:17 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R1ejKUzy; dkim-atps=neutral Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (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) by lists.ozlabs.org (Postfix) with ESMTPS id 4S4qGq6kYXz2yGW for ; Wed, 11 Oct 2023 08:46:27 +1100 (AEDT) Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4S4qGm2NWxz4x80 for ; Wed, 11 Oct 2023 08:46:24 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4S4qGm27MHz4xQm; Wed, 11 Oct 2023 08:46:24 +1100 (AEDT) Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R1ejKUzy; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=intel.com (client-ip=192.55.52.136; helo=mgamail.intel.com; envelope-from=lkp@intel.com; receiver=ozlabs.org) X-Greylist: delayed 64 seconds by postgrey-1.37 at gandalf; Wed, 11 Oct 2023 08:46:23 AEDT Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4S4qGl5nMmz4x80 for ; Wed, 11 Oct 2023 08:46:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696974384; x=1728510384; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ziS6XIH7FCuChzdyXDqrdUsxUPHcm6FUfN7d0RKRbXo=; b=R1ejKUzy9sQYE6bSHu/uU68FFwNkA8Pqy2nEbCGwguT9Fh5p5tGxgo/N s3TxC/YPMK7xFjNKHlerA1KI2K9hkDZLzui1MEyFfomDZ3LrJLbyyOFm9 JqP+1UtAHfiecFlvRTr02oRblS/gV1hX0S0LzWQydpEEysduo2wP6AgUY 39M7w2B6QbNaj37psaag/qrtiWyp2AoMuGsM4fo/cyN6EShWMuE5xUOTR uMvKWtKYOOsg7IkBkthNpFGy9X4uScXxGkKtceASRfVEiNzxOskKXK2HF 2gu+F7ukA0tsi3hQWcdlcA4bf1dDooVf45lCRbFGfb0BWvPIfix8VaKIQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="363865881" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="363865881" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 14:45:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="703459431" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="703459431" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 10 Oct 2023 14:45:12 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qqKXO-0001Ey-09; Tue, 10 Oct 2023 21:45:10 +0000 Date: Wed, 11 Oct 2023 05:44:31 +0800 From: kernel test robot To: Sourabh Jain , linuxppc-dev@ozlabs.org, mpe@ellerman.id.au Subject: Re: [PATCH v3 1/3] powerpc: make fadump resilient with memory add/remove events Message-ID: <202310110546.Idw21uuR-lkp@intel.com> References: <20231009041953.36139-2-sourabhjain@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009041953.36139-2-sourabhjain@linux.ibm.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mahesh@linux.vnet.ibm.com, adityag@linux.ibm.com, hbathini@linux.ibm.com, oe-kbuild-all@lists.linux.dev Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Sourabh, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes linus/master v6.6-rc5 next-20231010] [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/Sourabh-Jain/powerpc-make-fadump-resilient-with-memory-add-remove-events/20231009-122519 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20231009041953.36139-2-sourabhjain%40linux.ibm.com patch subject: [PATCH v3 1/3] powerpc: make fadump resilient with memory add/remove events config: powerpc64-randconfig-003-20231011 (https://download.01.org/0day-ci/archive/20231011/202310110546.Idw21uuR-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231011/202310110546.Idw21uuR-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310110546.Idw21uuR-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/powerpc/include/asm/mmu.h:143, from arch/powerpc/include/asm/paca.h:18, from arch/powerpc/include/asm/current.h:13, from include/linux/thread_info.h:23, from include/asm-generic/preempt.h:5, from ./arch/powerpc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from include/linux/memblock.h:12, from arch/powerpc/kernel/fadump.c:18: arch/powerpc/kernel/fadump.c: In function 'fadump_free_elfcorehdr_buf': >> arch/powerpc/include/asm/page.h:210:2: error: passing argument 1 of 'fadump_free_buffer' makes integer from pointer without a cast [-Werror=int-conversion] 210 | ({ \ | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void * 211 | VIRTUAL_WARN_ON((unsigned long)(x) >= PAGE_OFFSET); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 212 | (void *)(unsigned long)((phys_addr_t)(x) | PAGE_OFFSET); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 213 | }) | ~~ arch/powerpc/kernel/fadump.c:1401:28: note: in expansion of macro '__va' 1401 | fadump_free_buffer(__va(fdh->elfcorehdr_addr), fdh->elfcorehdr_size); | ^~~~ arch/powerpc/kernel/fadump.c:795:46: note: expected 'long unsigned int' but argument is of type 'void *' 795 | static void fadump_free_buffer(unsigned long vaddr, unsigned long size) | ~~~~~~~~~~~~~~^~~~~ arch/powerpc/kernel/fadump.c: At top level: arch/powerpc/kernel/fadump.c:1810:22: error: no previous prototype for 'arch_reserved_kernel_pages' [-Werror=missing-prototypes] 1810 | unsigned long __init arch_reserved_kernel_pages(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/fadump_free_buffer +210 arch/powerpc/include/asm/page.h c4bce84d0bd3f39 Michael Ellerman 2022-04-07 203 bdbc29c19b2633b Paul Mackerras 2013-08-27 204 /* bdbc29c19b2633b Paul Mackerras 2013-08-27 205 * gcc miscompiles (unsigned long)(&static_var) - PAGE_OFFSET bdbc29c19b2633b Paul Mackerras 2013-08-27 206 * with -mcmodel=medium, so we use & and | instead of - and + on 64-bit. 4dd7554a6456d12 Nicholas Piggin 2019-07-24 207 * This also results in better code generation. bdbc29c19b2633b Paul Mackerras 2013-08-27 208 */ 4dd7554a6456d12 Nicholas Piggin 2019-07-24 209 #define __va(x) \ 4dd7554a6456d12 Nicholas Piggin 2019-07-24 @210 ({ \ c4bce84d0bd3f39 Michael Ellerman 2022-04-07 211 VIRTUAL_WARN_ON((unsigned long)(x) >= PAGE_OFFSET); \ 4dd7554a6456d12 Nicholas Piggin 2019-07-24 212 (void *)(unsigned long)((phys_addr_t)(x) | PAGE_OFFSET); \ 4dd7554a6456d12 Nicholas Piggin 2019-07-24 213 }) 4dd7554a6456d12 Nicholas Piggin 2019-07-24 214 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki