Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34417904rwd; Sun, 9 Jul 2023 11:30:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYMCC/kBNoaCC1as2Rywrb7VlBuzOC08jJ477WFZbXJfR1iFoMZF4VB6gzR9UNDYFCj1e2 X-Received: by 2002:a05:6a20:1605:b0:12f:4d11:5f74 with SMTP id l5-20020a056a20160500b0012f4d115f74mr10490376pzj.58.1688927455863; Sun, 09 Jul 2023 11:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688927455; cv=none; d=google.com; s=arc-20160816; b=U4+VK31iLxzyH/4qKJx27PuorZ7GDyNMRAKnKEC6GFBMJdrenW0fYJDLjiEnDbNvRN Xh4Yji+KjLGIRk16ec81NSgZt60rNt1KWziA0bl5FHwFt/LTfwnqdZC0y/l5ewhgPZF4 82aj2+qSi/kRoQBzbVkV0ZlSglsTI/NS+G8pw8JhZEVa1GL0BdfNBK9dj5tpQ7v/8y3t FwrjT3eBB9JICEm6hSgc3zC81fOI7bloql91Tw8xVDM6lbysYtV06O6++a8U9rV1d2E0 gF2ZCQpSUhVoXiYpWqybvS0c1YFTj8aGBTXXEW8/SzBfqirOsHqwcBZi59LzazkQsYFJ Bdag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=57/DKKkczSnhAi5y9UitWkgGZTdh91iHF+xGOadtOFM=; fh=/sVmwC4fuF66Ikc/cCP/j1AUw4yxt+t7jSPgvuETa0U=; b=U6bDI91s1kLr+oyWmziNJV+kwSHl5um5Xy4r0N0xA7r0CC6KwHpOkteuyyQ2ru0Ljr quhozGpNf8bOiqy5RHS+AF2A0Glyl4fOIZtZOTFvfrIPnLm6pL+1GPQH+iJ7lrCNCuT0 RmOXtTmPvFe2kwvhLwCy++y92WWMyb9NM0/rnPuvsERzvPiexnDmgq2TCZxX2Mu5DgDB RokalfL43YeOTgozQomUiLkMmK/yYQ8A61oaqrL0c6/t/jfJGIVMPu4UHzZHE/EG/ja/ ftyNYs/CYShfnaSS/coWW1H0jSMUBYiHsSZ1irIoyjYOcTNPDCR5hTQ05UycdzLYkmkz 4BXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JqgAROm8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dc15-20020a056a0035cf00b0067bc790ce11si7607960pfb.161.2023.07.09.11.30.44; Sun, 09 Jul 2023 11:30:55 -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=pass header.i=@gmail.com header.s=20221208 header.b=JqgAROm8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjGISPH (ORCPT + 99 others); Sun, 9 Jul 2023 14:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjGISPG (ORCPT ); Sun, 9 Jul 2023 14:15:06 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A9DCE1; Sun, 9 Jul 2023 11:15:05 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-51e566b1774so610571a12.1; Sun, 09 Jul 2023 11:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688926504; x=1691518504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=57/DKKkczSnhAi5y9UitWkgGZTdh91iHF+xGOadtOFM=; b=JqgAROm8i61wufU7LuF28KU0aXCGQddOImOAfyTB426/c17WRmkd2T9T6Anm2TvHIV g6D48+umt9NmkM5YgI3n8k7yu12SNcLBLgf10KbhKVX1ebjYDKY0GALjwfBvMUNejs9J uZpmNDdGumcoT+hcqy63eizDWDcV4eavXaoP+kxhX50PKCqTiYyNbymKkCxvYrXQ91XB N27asGrmywii8+cJsmzgvYhgkAe4xYHXQxDwW2GMS3dXawPWzKLPt4PkaSTjPV++Ae2Y Q+WLZ20K4jX4058RQlVd8ouF00vPE3TKtkGXmCsIoV2WJMhGhr31UDUk9Bdq94hc4WMj HLHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688926504; x=1691518504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=57/DKKkczSnhAi5y9UitWkgGZTdh91iHF+xGOadtOFM=; b=e4UjPhOA0DJ4iyNrjiL+o28vondd4TLGhQCn3SQHLzFS+wWUTi2v8ABKcm2ZDJMbmi EqSLgQ6+EEqEYzgorxoN/j3ff/J2TGFT9DlY/4ku5WDcyJShshz59+j62X0XqODlKxpM /mehWU02SqiIt2rJjXD/n1oS5UvOwo0bqmgjlIXmIe8ZHkG/GnWw170ZSPaS/MvqCEIw d99Lr6u/Q3TygjDBMG/0hwY814IaU1hTcTAjZY8ORYWNgr4Yw20nsFqem0jRkUxVJIdh P3V0I3kTd8IyR3bmF0DT18CNIO0ijBsgSzVlFD1/Uf29vSON6J9ytBR2YlGBeo+Ov7xz 7r/Q== X-Gm-Message-State: ABy/qLZi2aX1Nn9k4I0EeLX/RzZYkyFJ4tc1M9totUQlKvW6LYJzfwXB 422PIYBbM6aeC+ZcAJv9WRycV/znb9JVQDE2Te0= X-Received: by 2002:aa7:d1d9:0:b0:51e:ed6:df38 with SMTP id g25-20020aa7d1d9000000b0051e0ed6df38mr9224006edp.13.1688926503676; Sun, 09 Jul 2023 11:15:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Sun, 9 Jul 2023 21:14:27 +0300 Message-ID: Subject: Re: [PATCH] efi: x86: prefer 'unsigned int' to bare use of 'unsigned' To: xuanzhenggang001@208suo.com Cc: ardb@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, dvhart@infradead.org, andy@infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, Jul 9, 2023 at 5:20=E2=80=AFAM wrote: > > 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' > -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) Nice, but you shouldn't just blindly do some mechanic "fixes". Now your patch makes differences between the function prototype and its implementation. --=20 With Best Regards, Andy Shevchenko