From patchwork Sun Jul 9 14:19:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: xuanzhenggang001@208suo.com X-Patchwork-Id: 13305870 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 442ADEB64DC for ; Sun, 9 Jul 2023 14:20:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbjGIOT7 (ORCPT ); Sun, 9 Jul 2023 10:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjGIOT6 (ORCPT ); Sun, 9 Jul 2023 10:19:58 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D406D3 for ; Sun, 9 Jul 2023 07:19:56 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzTmR1bWDzBRmXt for ; Sun, 9 Jul 2023 22:19:51 +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=1688912391; x=1691504392; bh=7eoWH2OhnKn9YKT20iRjoC4FMLZ NE5srvIsHhiRwjVc=; b=lpwIuW/GOLf76Y0eMfFP1XXKE4yowGuCkvkmSXVmlmG s0B1Xh0WXpReF2S6ekzahDIBWZeEwgTih4UuUo/3MeSDuBUnF3G4msiKsUwQFi1a xhq25voU7zTyP1fRr6gAnCa0/SFGAJOeEoObuqGwE/AJb1ytqrLU2fI0z8p+wASj Z18LgoY5up+4EHSezFTeV9qIbKCeSjfQJZdb95ogg3dcfFj8NIhIRPwnitgSOmzy Oa2Edj/Q+Gw6phNmSFLUulJXaVZwDSWy210g5isgjVyzqQumI3jhRsNf0+3ndw8M 1RaeBCMuEuqhgG4RAEvCWH8ZpBoK6GwbS67CbNtni9g== 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 x2jqKVGDnG3L for ; Sun, 9 Jul 2023 22:19:51 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QzTmQ6jYPzBRYfX; Sun, 9 Jul 2023 22:19:50 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 22:19:50 +0800 From: xuanzhenggang001@208suo.com To: tsbogend@alpha.franken.de Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: <20230709141701.16324-1-denghuilong@cdjrlc.com> References: <20230709141701.16324-1-denghuilong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: xuanzhenggang001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Fix the following warnings reported by checkpatch: arch/mips/kernel/linux32.c:128: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/mips/kernel/linux32.c:129: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/mips/kernel/linux32.c:129: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/mips/kernel/linux32.c:129: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan Reviewed-by: Philippe Mathieu-Daudé --- arch/mips/kernel/linux32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) return ksys_fallocate(fd, mode, merge_64(offset_a2, offset_a3), merge_64(len_a4, len_a5)); diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index 6b61be486303..4bd52b38dd00 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -125,8 +125,8 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad, flags); } -asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, - unsigned offset_a3, unsigned len_a4, unsigned len_a5) +asmlinkage long sys32_fallocate(int fd, int mode, unsigned int offset_a2, + unsigned int offset_a3, unsigned int len_a4, unsigned int len_a5) {