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 2F786C433EF for ; Sun, 26 Jun 2022 00:03:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 647726B0071; Sat, 25 Jun 2022 20:03:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F8136B0072; Sat, 25 Jun 2022 20:03:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4BEBB6B0073; Sat, 25 Jun 2022 20:03:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3DC7A6B0071 for ; Sat, 25 Jun 2022 20:03:44 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 09387209BB for ; Sun, 26 Jun 2022 00:03:44 +0000 (UTC) X-FDA: 79618438368.25.278D62D Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf16.hostedemail.com (Postfix) with ESMTP id 866DF180013 for ; Sun, 26 Jun 2022 00:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656201822; x=1687737822; h=date:from:to:cc:subject:message-id:mime-version; bh=UsOjtWVrQR+RghMaDYnw1SuSnwZABou2U6qEA/CISK0=; b=H51N1aDbDC5hYBnBAK8Q6IuQgU2HXu6YWQu9ogbTIb8p8W1hqJ2g8v7g 9BmJuBaq0vqq05Y9PxDBPHmUt3nyrOZSTYaraLtO4wQXdc4hY8pW+NBOP LyBmeRH3xjtHM3QmxNjGVr+HXbszvkCuFvlTUJp3HGV9g+vLz35CJtAtX /cZ6fGBNNGuXpKEppT5Xi4OiSqsTYmjCjRHgZACUgBfrxUdaaxvcfzuoX s5G8hMILluBnXdsV+UfpLGyJzlXLAm9YThF8O0XZc/pCLppZDEAPG3C/X 9YS56EjYzhJj7F+oJ2iZcI7bhr+remzFahxE7O3nUOL4rXXaHfTY4HYqo w==; X-IronPort-AV: E=McAfee;i="6400,9594,10389"; a="281965371" X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="281965371" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 17:03:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="622119912" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 25 Jun 2022 17:03:39 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o5FkY-0006Tn-Ju; Sun, 26 Jun 2022 00:03:38 +0000 Date: Sun, 26 Jun 2022 08:03:30 +0800 From: kernel test robot To: Baolin Wang Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , Mike Kravetz Subject: [linux-next:master 5107/5720] arch/arm64/mm/hugetlbpage.c:380:9: error: duplicate case value Message-ID: <202206260802.ZqhIhrmv-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656201823; a=rsa-sha256; cv=none; b=iQufwjeMpOPDgys1pLjZK2/l7ZRKZ1cP2zXCam1uLS98qtmePLPF89my0oXRdbCQ2+baah Tad5rr8y3ib/8bpYMGKgN1USFdH3tlZ121w+LhasEoxh0sf+yowEdU6gs2POR+MSQisL5Y 0OnsJutAd0nMmSjVUL48f4LhusjXVNU= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=H51N1aDb; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656201823; 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=XijzTBU+FFd1LBZnvZO5r4NXcPBOVkYjB3WWTGyhzTA=; b=bvCLoKEIhcfKhPzOHiGcqu+BtpvzeRXfIQSLjXdsE8KpnrSb7mppDtIBBXFgAIGw0ZvENp eUWErDgnLjqdtxdfTbUWN0CSwyqLWocBzk7KiBOKoODT6icOVz3vnHYhkLvkMiz1K+6iJ+ VOxrnquFBs02tMQTEmsRQ0kAS/EatjA= X-Stat-Signature: 6eiyxkxfujtuhfo5nrhkqyzqrgfnx3p8 X-Rspamd-Queue-Id: 866DF180013 Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=H51N1aDb; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1656201822-220519 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/next/linux-next.git master head: 2f9cb3d3bd73fc2225d66aa8fcffb632ed3eb235 commit: 8f32147e69adb8259faa07d8e28360ab782363d0 [5107/5720] arm64/hugetlb: implement arm64 specific hugetlb_mask_last_page config: arm64-randconfig-s031-20220626 compiler: aarch64-linux-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-31-g4880bd19-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8f32147e69adb8259faa07d8e28360ab782363d0 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 8f32147e69adb8259faa07d8e28360ab782363d0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/arm64/mm/hugetlbpage.c: In function 'hugetlb_mask_last_page': >> arch/arm64/mm/hugetlbpage.c:380:9: error: duplicate case value 380 | case PMD_SIZE: | ^~~~ arch/arm64/mm/hugetlbpage.c:376:9: note: previously used here 376 | case PUD_SIZE: | ^~~~ vim +380 arch/arm64/mm/hugetlbpage.c 370 371 unsigned long hugetlb_mask_last_page(struct hstate *h) 372 { 373 unsigned long hp_size = huge_page_size(h); 374 375 switch (hp_size) { 376 case PUD_SIZE: 377 return PGDIR_SIZE - PUD_SIZE; 378 case CONT_PMD_SIZE: 379 return PUD_SIZE - CONT_PMD_SIZE; > 380 case PMD_SIZE: 381 return PUD_SIZE - PMD_SIZE; 382 case CONT_PTE_SIZE: 383 return PMD_SIZE - CONT_PTE_SIZE; 384 default: 385 break; 386 } 387 388 return 0UL; 389 } 390 -- 0-DAY CI Kernel Test Service https://01.org/lkp