From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3955B7C for ; Wed, 15 Feb 2023 10:58:20 +0000 (UTC) Received: from kwepemm600011.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PGw3J6p47zRrxc; Wed, 15 Feb 2023 18:55:40 +0800 (CST) Received: from [10.67.111.59] (10.67.111.59) by kwepemm600011.china.huawei.com (7.193.23.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 15 Feb 2023 18:58:14 +0800 Message-ID: Date: Wed, 15 Feb 2023 18:58:13 +0800 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 From: heyuqiang Subject: Re: [PATCH 5.10 88/91] arm64/kexec: Test page size support with new TGRAN range values Reply-To: <20221102022057.553634951@linuxfoundation.org> To: , , , , , , , , , CC: , Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.59] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600011.china.huawei.com (7.193.23.229) X-CFilter-Loop: Reflected There is an error tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git master head: c911f03f8d444e623724fddd82b07a7e1af42338 commit: d5924531dd8ad012ad13eb4d6a5e120c3dadfc05 arm64/kexec: Test page size support with new TGRAN range values # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5924531dd8ad012ad13eb4d6a5e120c3dadfc05 When I compile the ko file, I add [-Werror=type-limits] compilation options, an error is reported during compilation. The log is as follows: ./arch/arm64/include/asm/cpufeature.h: In function ‘system_supports_4kb_granule’: ./arch/arm64/include/asm/cpufeature.h:653:14: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] return (val >= ID_AA64MMFR0_TGRAN4_SUPPORTED_MIN) && ^~ ./arch/arm64/include/asm/cpufeature.h: In function ‘system_supports_64kb_granule’: ./arch/arm64/include/asm/cpufeature.h:666:14: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] return (val >= ID_AA64MMFR0_TGRAN64_SUPPORTED_MIN) && ^~ "val" variable type is "u32" "#define ID_AA64MMFR0_TGRAN4_SUPPORTED_MIN 0x0" "#define ID_AA64MMFR0_TGRAN64_SUPPORTED_MIN 0x0" comparison of val >= 0 is always true. If you fix the issue, kindly add following tag where applicable Reported-by: heyuqiang Thanks