From patchwork Sun Jul 9 13:59:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xuanzhenggang001@208suo.com X-Patchwork-Id: 13305837 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F6CFEB64DC for ; Sun, 9 Jul 2023 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9XrzUIquoFm6Tp/aIVJi/efwgHvY9HAZNR9aXc0I+zA=; b=UFPGTlNVc271pc6uCoauLKHqNG Mv1UDoNIkAwIENn1CChgkBKm4tZMys1yndIuga13fPmwOzz/y41ozjUMRBbGHxt97+8NBZMxK7W8s U1pHm6aYCrBbskWArqjCDvwNpz15k+hfgdGxUnWpcxo6bSWT1vewxnP6mdhazAZG3OJIJcPVKOv1q TOBIUxjzLZYK5JfEtfMVIcW+6xH0scS6zrWn3MISx+gMPRHNwqi1zvPjvPAfoUBFTPQYu7DtFE7tn U+pHa6HeopnPzHcOYuxSEVC5VqRak0vj/sBy3q9PdB+fGQ7Y9maDSw32U0xMFz4d4xU9vGfP6lonq m0fI27Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIUx3-009CTU-1V; Sun, 09 Jul 2023 13:59:49 +0000 Received: from [183.242.55.162] (helo=mail.208.org) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIUwz-009CSq-2C for linux-arm-kernel@lists.infradead.org; Sun, 09 Jul 2023 13:59:47 +0000 Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzTK94pXTzBJBg9 for ; Sun, 9 Jul 2023 21:59:41 +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=1688911181; x=1691503182; bh=XC2qRso5yr3ArD1O8ps0Wm+4qpk guIyDAXINZk+B5kI=; b=yczk9CDG35PSKq/mIbDf98zLT7sAgybx21LtojWHkvk PHN7C9FhjmX8kyNamBy3iQXyCoinm0atjqf1M5d7ChSh+Y5RETNR3cjilgMLHhou lijFjtau8frR4JVnIwBsPPa03dkm58y3or37EUJfzYdKd3Zj093nW5Q+aRUiMn8r b7KtMJENsLjH+ImBzl7D5LyCPeavW7278zXHdgRvmwhyqYzjn4q29XxPnAGc6Z6s cdzauZUxmZ1L7+Pb1bkuSSYBhNhHzyy+uOhPr+09/hVuy7I9KX0x0zGeHqMUHV16 6UJA/BAlV6GyPME1MeLiyoAVlK+LweEiILuRP6CenGA== 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 L7gx3SsCAWLC for ; Sun, 9 Jul 2023 21:59:41 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QzTK92Nx0zBHXkb; Sun, 9 Jul 2023 21:59:41 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 21:59:41 +0800 From: xuanzhenggang001@208suo.com To: tony@atomide.com Cc: linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: OMAP2+: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: <20230709135705.59832-1-denghuilong@cdjrlc.com> References: <20230709135705.59832-1-denghuilong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <7efba6a4aae52649aa05756263c0a955@208suo.com> X-Sender: xuanzhenggang001@208suo.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230709_065945_931717_C980BE63 X-CRM114-Status: GOOD ( 11.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org arch/arm/mach-omap2/display.c:73: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/mach-omap2/display.c:111: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/mach-omap2/display.c:119: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan --- arch/arm/mach-omap2/display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) return omap4_dsi_mux_pads(dsi_id, lane_mask); @@ -116,7 +116,7 @@ static int omap_dsi_enable_pads(int dsi_id, unsigned lane_mask) return 0; } -static void omap_dsi_disable_pads(int dsi_id, unsigned lane_mask) +static void omap_dsi_disable_pads(int dsi_id, unsigned int lane_mask) { if (cpu_is_omap44xx()) omap4_dsi_mux_pads(dsi_id, 0); diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index dbec3bb9fbf4..c7a39d497e47 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -70,7 +70,7 @@ static struct platform_device omap_display_device = { static struct regmap *omap4_dsi_mux_syscon; -static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes) +static int omap4_dsi_mux_pads(int dsi_id, unsigned int lanes) { u32 enable_mask, enable_shift; u32 pipd_mask, pipd_shift; @@ -108,7 +108,7 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes) return 0; } -static int omap_dsi_enable_pads(int dsi_id, unsigned lane_mask) +static int omap_dsi_enable_pads(int dsi_id, unsigned int lane_mask) { if (cpu_is_omap44xx())