From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB5B223EAAA for ; Mon, 1 Dec 2025 20:37:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764621448; cv=none; b=napp5Lcf3hVgpAMwtJq+TlAUNDXZyk+4TvL+PijGCfCEJxfSmpsE2mCmAuP5EpkhS9lswEyfVCyM1DmQRTto6r+Cssg66FbDBBfUbPSx4X+rB4NgQ41dyFNr5An2gNiLueuiyFWF4ypdchwYRI8Ytq06N3uk1O8lzpzm8qDGEuI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764621448; c=relaxed/simple; bh=vVfNmKLReJIr6irlUJCgyzFE5CUHU9PZFq34vRHt61o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SynfvI2eJqQHDVCbT4v8PsPKOjTNv9Lhb0xfVOZmfg0fhS+C0bV6xCeeLgYtU69xfvp/av4BDKrm1+3mvO6hWVuD8Pj062BSm2zDkvQh8F6dTZGjfB98aUbH64vk1hmGG9hcw3CwGuW98jzRezkCMpPb2wcLzzRg9mfVGYjTy0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=L0zPKTVj; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L0zPKTVj" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7b852bb31d9so5035868b3a.0 for ; Mon, 01 Dec 2025 12:37:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764621445; x=1765226245; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4YG0Pj+z2EKpXJyRhBzodicaoMUh26LjSMTkBpeRy1U=; b=L0zPKTVjhuzkpNKeLYw2eUUpSsF6J2SlCBhIjBLMDvqEtMszZme0B0dNbibvKZWaWn M2Xyw7yNW/y9ollBjpZgcisa+HX9dpme+1mh6ctEo8mYuJ1N2PZLXySvzWcuxZ9CrREQ +2nAfmzXzjOxqq7GT62gprVKJw0iR0TLSIv9dGqzwntnU1upE7Asv7sS5x/Re9/GoWse Ihm51PpC83JCH+RDETqfqCO7mb4BkanPDSQ3QBK7rT8Zoe8Zqki4RitMgLgpAVsq4pDS Z4MLmaBKYRrOXv3NpfsW5n8TZ9yWlUfBHh0wYrSFMmM+BtI5jPCmwbbh3G3CGwxcMi3K PMhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764621445; x=1765226245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4YG0Pj+z2EKpXJyRhBzodicaoMUh26LjSMTkBpeRy1U=; b=f+bBs2bsssvKfBORnLNlCjXcRxg9Bv84caWziBTvJTQzfeCcaRI/PpS1YPaQdtrqAS jpau+Z+Xzr8fb6WPrpT9k8FkYrm8CTAyXo+545FqxJ46fbN9+XgUYvvUhunHZZdleTdQ Xmp7VwTZv6oPH1yBffZdIh49ZsjBRxyRaXzkdQUTjJI3PJDpchFcBvMcQsjOZJUXPBiy 60FTBJLLlbumocOVSK+/+NYplcnpgG/RXiTOttxkk2zn+lIRz9sOpuczty/ZQ7nxynrH oajFO8H7qqLl3vpr0UVQ6qocGIdpww+kiF2A+RvcY9oZJfVPo/J+I78OQSEFpkwMahw8 XUOw== X-Forwarded-Encrypted: i=1; AJvYcCXktXSNdB6ce5Au3PnygVGLKezwtfXFboUTU4qIU/4xW+HdaiB/RKcQQNUmHowdsA7EEWDBhzTZHNVLZnE=@vger.kernel.org X-Gm-Message-State: AOJu0YyypDGuYZpD5NfoQSa1MTOeAYX1Cx92C1wZG1K5yEpeI8tLkox6 JpdfzF1bTI3qL/xXa7gLJuI9e88Yw+KtRtbSeAng3KIj2BgcxADyOijHKjriiItq X-Gm-Gg: ASbGncs86OEzzRpKGCuKU58dKrt/AXFplM5kC+gdrIUIRU2KlGPoc231eCLcWDD2c1F FlzG79Nah/aCFTrF/bB+b+0W7o4+M+9IXsv3f6oNbXcAcp3EO+/Adc/x5Lnmp09scGiqI6lFCB7 NPZ+PS27EnB0qa0rUo3SshRCOHYC1X/JyVOtVhVP9kXtc4aLRQ2l8o8NFWxMZDinrFzws/0e9uj 6YdWUoXCJsNxK2PbO8EEf7xdeKqc/Q6A/mA5NYgn3qTI5MduACPIPRk7jVD5oDd81Cns6pv3rBE vJIjIQNfVW7WmJp8DPSvU+OXUBrfCEOpUTLNv15FZAD+7scKAn9CZVPlJp1ARaMizOtbUV2YIEE ynbquupRjLgvGr/94Fsg/bL5g7vz9LMA9ThoSn83QKfn6RJio5KQnaI3Rv7eqFrOn3QeDwviPoC roQo+mKZq9YYBSBi7cE2sVlNVdmmo+4a2lNFY= X-Google-Smtp-Source: AGHT+IGAwif/XA27nFNIUswvTaFJ8lE0FRoQzMPjwLoR6UR1PITdFn89NrHKtlo6fdOYcbELASwJkg== X-Received: by 2002:a05:6a20:a107:b0:350:ee00:3cc1 with SMTP id adf61e73a8af0-36150f05d99mr45878699637.30.1764621445196; Mon, 01 Dec 2025 12:37:25 -0800 (PST) Received: from clint-ThinkPad-L14-Gen-2.. ([110.226.177.250]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-be4fb248be1sm13113892a12.3.2025.12.01.12.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 12:37:24 -0800 (PST) From: Clint George To: stern@rowland.harvard.edu, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, david.hunter.linux@gmail.com, linux-kernel-mentees@lists.linux.dev, skhan@linuxfoundation.org, khalid@kernel.org, Clint George Subject: [PATCH v2 0/6] usb: gadget: dummy_hcd: coding style improvements Date: Tue, 2 Dec 2025 02:07:09 +0530 Message-ID: <20251201203715.17768-1-clintbgeorge@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251119130840.14309-1-clintbgeorge@gmail.com> References: <20251119130840.14309-1-clintbgeorge@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series focuses on addressing various coding style issues in the dummy_hcd USB gadget driver. The changes includes adding relevant comments, improving readability, and ensuring consistency with kernel coding conventions. Clint George (6): usb: gadget: dummy_hcd: replace symbolic permissions (S_IRUGO) with octal (0444) usb: gadget: dummy_hcd: use 'unsigned int' instead of bare 'unsigned' usb: gadget: dummy_hcd: document ISO endpoint allocation pattern usb: gadget: dummy_hcd: use sizeof(*ptr) instead of sizeof *ptr usb: gadget: dummy_hcd: remove unnecessary parentheses usb: gadget: dummy_hcd: move function braces drivers/usb/gadget/udc/dummy_hcd.c | 52 ++++++++++++------------------ 1 file changed, 21 insertions(+), 31 deletions(-) --- Testing: - Ran compiler testing with no new warnings detected. - Ensured the module builds and inserts cleanly without issues. - Used Static Analysis tools to confirm no new issues were introduced. Please review the changes and let me know if any modifications or further testing of the module is required. As part of my LKMP mentorship i have to complete 5 patches as a criteria for graduation and thus have focused on working on such beginner-friendly patches so that not only do i get the required number of patches but also get familiar with the process of kernel developement. Thus, while this patch series doesn't address the max_stream value exceeding problem that triggers the BUG() API, i will take some time to dig deeper and truly understand the problem and fix it and not just paper-over the problem. Again, i am very grateful for your feedback greg and alan to guide a beginner like me. Thanks, Clint -- 2.43.0