From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753901AbdEISIy (ORCPT ); Tue, 9 May 2017 14:08:54 -0400 Received: from mga09.intel.com ([134.134.136.24]:2908 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbdEISIx (ORCPT ); Tue, 9 May 2017 14:08:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,315,1491289200"; d="scan'208";a="99984942" Date: Wed, 10 May 2017 02:07:57 +0800 From: kbuild test robot To: "Kirill A. Shutemov" Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Ingo Molnar , Matt Fleming Subject: arch/x86/platform/efi/efi_64.c:212:15: sparse: memcpy with byte count of 0 Message-ID: <201705100220.4Hbrp2En%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 commit: e981316f560482c001dede7f5b29259bde0b8afb x86/efi: Add 5-level paging support date: 6 weeks ago reproduce: # apt-get install sparse git checkout e981316f560482c001dede7f5b29259bde0b8afb make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> arch/x86/platform/efi/efi_64.c:212:15: sparse: memcpy with byte count of 0 vim +212 arch/x86/platform/efi/efi_64.c 196 num_entries = pgd_index(EFI_VA_END) - pgd_index(PAGE_OFFSET); 197 memcpy(pgd_efi, pgd_k, sizeof(pgd_t) * num_entries); 198 199 /* 200 * As with PGDs, we share all P4D entries apart from the one entry 201 * that covers the EFI runtime mapping space. 202 */ 203 BUILD_BUG_ON(p4d_index(EFI_VA_END) != p4d_index(MODULES_END)); 204 BUILD_BUG_ON((EFI_VA_START & P4D_MASK) != (EFI_VA_END & P4D_MASK)); 205 206 pgd_efi = efi_pgd + pgd_index(EFI_VA_END); 207 pgd_k = pgd_offset_k(EFI_VA_END); 208 p4d_efi = p4d_offset(pgd_efi, 0); 209 p4d_k = p4d_offset(pgd_k, 0); 210 211 num_entries = p4d_index(EFI_VA_END); > 212 memcpy(p4d_efi, p4d_k, sizeof(p4d_t) * num_entries); 213 214 /* 215 * We share all the PUD entries apart from those that map the 216 * EFI regions. Copy around them. 217 */ 218 BUILD_BUG_ON((EFI_VA_START & ~PUD_MASK) != 0); 219 BUILD_BUG_ON((EFI_VA_END & ~PUD_MASK) != 0); 220 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation