From patchwork Thu May 19 15:18:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kushagra Verma X-Patchwork-Id: 574489 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 57AD6C433EF for ; Thu, 19 May 2022 15:18:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240719AbiESPSw (ORCPT ); Thu, 19 May 2022 11:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240710AbiESPSr (ORCPT ); Thu, 19 May 2022 11:18:47 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn2104.outbound.protection.outlook.com [40.92.52.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 337C6606ED; Thu, 19 May 2022 08:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LGJEE7LpyMipujzly/QstNLjs0ytWUf4SPzhXbs2ZplmOpx7xhMpzQwMf/0ESmKYA2BM5yipJHJKLsxyp4thhsYTFNQqbE7NWyl8RvmbBofxjOxiqoPxVaLu3IFzkrFSAHhvD4aM1A4jjTlnBdFduVEj68pR3FMoDbiSkIxwmzjk98wSTz1BqJrPy9AswMfi4j+AcmndSBMwR6IXcvSfQvgTopfkBeC1BqMO+pkBIh38QhjlFFhzEfHB0rS/dtRsKVwUpoA+ynyEg/H9c8p3fxWB0KGH8HbyVD7SWs0clA3YjqKFdw5nHmynkj0LtdKgURNFSTXp9AJlXiPCKKO3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xJsr9s9ygFHwurQTpwiHtlQUvGtPwEegyIHuxjDfnKU=; b=lzXwMmLX153J1sakjqcvEJBqEQ4Yv+HRCsgS1x0BAxy+L3zm7RkZLrHIK3A59ICsjJnnKMxjgUCP03LdH/EBLo46Owxk6meHSmw/dUZvi5ypaaVZZHh90m1SMpQ5CFtb90lm64B9VKCzyjKz9Mp9BO5ZeK5hTMLuqPloiWUdxU/L7kTObsBxFxB9huuqR/xU3aUaua/5JhJAd3Jo0Aam33x/8/vdRUJrchiXy4M5tR+R0RPAagJDlXr/YHYr8iHPnHoLLEOS/0CR2DOlyPIajoDrKaUem8q4HHReCqn+MmToQtmwdrKdNi0xYnIcRpyaH8qmfqpZnjQbzU0c3ZKYqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xJsr9s9ygFHwurQTpwiHtlQUvGtPwEegyIHuxjDfnKU=; b=odXaEf1SEIQoWCF0vrb0cwt6XeYdlYk3WHfR79EndrhOOakEwrXApsW9dKALp+QpDPH3CAapM4Hj9OKa8+FD1B3LqzXezrhBj2M4AMGZ92DgZV6oLcBf9fhLg2WOIWlkNCoeH9di4CI/VOVPpHj6VZp7kXIPV8dSfkdA3pxSiHIaO+/RVkgtuU5vAkkkKBqDOBAfHxOVjDzqUWqKdrywDmpMgSaWPxTA3FaQ5UxFzXBhGsHbTLrUkyeVP3WVAF/RMzOlTO2183JJpKVkFfjX0pQf3yUmxcIGmGXBw2G4lTGN9ig6BtDEYFTtOVUgIi7RUvCJCK2Yv01GwdrZDIEzUA== Received: from HK0PR01MB2801.apcprd01.prod.exchangelabs.com (2603:1096:203:95::22) by PSBPR01MB3733.apcprd01.prod.exchangelabs.com (2603:1096:301:3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Thu, 19 May 2022 15:18:42 +0000 Received: from HK0PR01MB2801.apcprd01.prod.exchangelabs.com ([fe80::3022:ac4d:5d89:8c7c]) by HK0PR01MB2801.apcprd01.prod.exchangelabs.com ([fe80::3022:ac4d:5d89:8c7c%5]) with mapi id 15.20.5273.014; Thu, 19 May 2022 15:18:42 +0000 Message-ID: Subject: [PATCH 1/3] USB / dwc3: Fix bare use of unsigned warning From: Kushagra Verma To: balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 19 May 2022 20:48:36 +0530 User-Agent: Evolution 3.44.1 X-TMN: [TFffkNu5+70/WrB6DwA3rfORn3cK5k8Jitrc0ElsNAOLyzohIsyTiiolJmLPE1SMxGoQ2bP3Ddc=] X-ClientProxiedBy: BM1PR01CA0149.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::19) To HK0PR01MB2801.apcprd01.prod.exchangelabs.com (2603:1096:203:95::22) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7aea4d0d-a592-4069-8f29-08da39aadbcf X-MS-TrafficTypeDiagnostic: PSBPR01MB3733:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xhqZLtjpo3LgwVq6OMV9aa0zP1e8QCBijHY/DqiO5Ew1sPHiiakOSaT1K7iOSzj2f9GNnK4OTVrqROe3rx5MS6E+5oVV/upwaWIBo5bdCE0mahAeap6LEz/zC3PS1FAelTiOvnnID5ecYQP8uiuMTlBMh9fp8yRwbfr+L10vjteWwALBf+8jvFNreztyIxGQ7a8p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MXDrNbYJTDLtshk0fVUV5HpiBM+kF7J39jU9U?= =?utf-8?q?hK1EwuxqAJ87zqipnZWShnKrMJqceF7GJ181yq7SEPiiFhv/QM56jlPyKtDx5XMcg?= =?utf-8?q?T+Qg0R6OqxL/v?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7aea4d0d-a592-4069-8f29-08da39aadbcf X-MS-Exchange-CrossTenant-AuthSource: HK0PR01MB2801.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2022 15:18:42.3414 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSBPR01MB3733 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patch fixes the bare use of unsigned warning from checkpatch.pl in core.c by changing unsigned to unsigned int. Signed-off-by: Kushagra Verma --- drivers/usb/dwc3/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 3c1a877d5183..d9713416a419 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -425,7 +425,7 @@ static void dwc3_free_one_event_buffer(struct dwc3 *dwc, * otherwise ERR_PTR(errno). */ static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, - unsigned length) + unsigned int length) { struct dwc3_event_buffer *evt; @@ -468,7 +468,7 @@ static void dwc3_free_event_buffers(struct dwc3 *dwc) * Returns 0 on success otherwise negative errno. In the error case, dwc * may contain some buffers allocated but not all which were requested. */ -static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length) +static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned int length) { struct dwc3_event_buffer *evt;