Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33713413rwd; Sat, 8 Jul 2023 19:31:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7mvrbLeI9sJVQv70Y2fxRlKf6+lCrjsJ3ts2zkD0Q8t/+CBTL5ZKmmDerkDZYOoApe2xM X-Received: by 2002:a05:6a20:7f92:b0:12e:6852:eae7 with SMTP id d18-20020a056a207f9200b0012e6852eae7mr19126130pzj.4.1688869886161; Sat, 08 Jul 2023 19:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688869886; cv=none; d=google.com; s=arc-20160816; b=1CSBzTtvYmwucvqbJk9XRF34lvRfjQdZlGnN9to4Zyl+3xGONO2xrsDEGx4eM7Wkoc gjhPLn7OlHA+lzgpPtMiMB1Y0UnEMizd4+jNFXuo1n3CzYdUeQO9J/Nwrep4cSOMXlg7 zMuiBIcdKMHND8+byrX8kAcdFPwPm9YkHQEd6pAU6ikbN3QgVRS7xAvmNaUQfC8ufKbg cEKyvpe+qcvm8KD85Jn0/bfc2UnJ06CvB/t9GwRdgyLHsMDXjt1R87rjw4M4yDoKZeyP y1wkoJzAx6vG/R5ndmq/6F7YELCGt3xU2O6TjXB7Uhjeznw7oBki4yt3xXOZsewRgAau SWXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=Fqnaz0G2B9PYKZHJZsqvLlCp0MlTzzRBAqI0xNwr/jo=; fh=hCMhXsn2pzmXOy0dpzPOXOciQ7tDYfA8IJPn8PpA6Ts=; b=dk6/VrfJ26T1sREJeFypdoh9hl+72V9wbs8xC82iJMqupdmO7MN7BqsZemXlNDGWex usunf1nxNCw5aA3JKAkQF53Ceet2tGdCeMYQ3bM7gwk4r7Id+P6BTA45QcZsa2tw7OFl XqMJZYBLvY0b9Z5K2ptT3YBiTz+1GdF+7Pz1k0yaciP1tSQlFpy9/D7Z97iNtgT6razw XNugKtAj9gYPI8qLDoeIazjETeVnawGgENAbfidabwBeD+A2OaJEpZdhmfzqLldlXXEe oCg8/qsWobz8t2rXWFzzAiu7i9FNnVNi6tRAdFC+UkWtEFTfFoslydq5BUxS2omZOVGp G1nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=pZAr6KA9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g123-20020a636b81000000b0054fd9f2dfebsi6586106pgc.704.2023.07.08.19.31.05; Sat, 08 Jul 2023 19:31:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=pZAr6KA9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229436AbjGICU3 (ORCPT + 99 others); Sat, 8 Jul 2023 22:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGICU1 (ORCPT ); Sat, 8 Jul 2023 22:20:27 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294DAE4A for ; Sat, 8 Jul 2023 19:20:26 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4Qz9pC6VhCzBJBgF for ; Sun, 9 Jul 2023 10:20:19 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1688869219; x=1691461220; bh=OMj0mD7w63Eoj+ZmWte4KNF80np SnitFI2YY/qJPBFQ=; b=pZAr6KA98kD3UI8C3vRPP1Ky+uXrXCdHtWSGquofO5u jqoR1d6zHyC97uroeWQf11+AmtBTjKNFXOjyHX6Bqhi44PgYXk1ShOM6b9H2G9L4 XsN7f6kIMPSZSCS4Z2/7ZF5fIcXq3SwFmWmEjSDFjaOu1qjwWmFNtSImgti3VvcB ffGiUY3DquKVgW754D+ZqEoHgsTD7QXav6iodYCcqpQWRJEfKmyWmWsjOt0hQuqP AhcQ/zX36YegcVe6eydP9EeX8Y4JHChhqKK4RaccgVvReKG5Z/kw/xjLZNhEov4d QM9cKKvLebvH8Uvx77trN3JF8Z1tvcj7ajYnf40DyDw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rXkZJqPm_KwN for ; Sun, 9 Jul 2023 10:20:19 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4Qz9pB4gcNzBHXR1; Sun, 9 Jul 2023 10:20:18 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 10:20:18 +0800 From: xuanzhenggang001@208suo.com To: ardb@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, dvhart@infradead.org, andy@infradead.org Subject: [PATCH] efi: x86: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: X-Sender: xuanzhenggang001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following checkpatch warning: arch/x86/platform/efi/efi_64.c:109: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/x86/platform/efi/efi_64.c:177: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/x86/platform/efi/efi_64.c:182: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan --- arch/x86/platform/efi/efi_64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index 232acf418cfb..0f69bd6eb144 100644 --- a/arch/x86/platform/efi/efi_64.c +++ b/arch/x86/platform/efi/efi_64.c @@ -106,7 +106,7 @@ int __init efi_alloc_page_tables(void) */ void efi_sync_low_kernel_mappings(void) { - unsigned num_entries; + unsigned int num_entries; pgd_t *pgd_k, *pgd_efi; p4d_t *p4d_k, *p4d_efi; pud_t *pud_k, *pud_efi; @@ -174,12 +174,12 @@ virt_to_phys_or_null_size(void *va, unsigned long size) #define virt_to_phys_or_null(addr) \ virt_to_phys_or_null_size((addr), sizeof(*(addr))) -int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages) +int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned int num_pages) { extern const u8 __efi64_thunk_ret_tramp[]; unsigned long pfn, text, pf, rodata, tramp; struct page *page; - unsigned npages; + unsigned int npages; pgd_t *pgd = efi_mm.pgd; /*