From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 333043264C6 for ; Mon, 9 Mar 2026 21:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773093335; cv=none; b=XRAIKBmKtCThAaB7eVOpthydzy2bw6e5dzUISx6LLjE2wpdjiVqMCTGKR8wQSmPSjCIl4zoeOH58bg98PkrSyyYS5IydvmEi4UA3MrWah9UhjEpI7Fxf5lvKWb9dVkdbxaZ23HuORqD5BF8yjQx6rSgk9q2HbhaUJMDfLu9496I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773093335; c=relaxed/simple; bh=gRGiHh5DV1Y4zNvyBsX0nhOwV2mP2uCGq4Xk13dFc6E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PUkOIioHeQxmzj7WuW6j1pjDl2KK9bmzIiMLUDvTQUEQIQtjN8VrEPjLpPXNNoW2q0WyTKil9UCRkd5qWYRZMuo3+NjU9v8SCd3v5C5IszxrpjYu1Kj9AuLwIxJR6fc11k31ofAI7tV7KhS6rh9OXSLfUU8+y5gFlAJAG7544wQ= 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=ml6aocSG; arc=none smtp.client-ip=209.85.208.177 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="ml6aocSG" Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-38a3990e87fso23978401fa.3 for ; Mon, 09 Mar 2026 14:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773093332; x=1773698132; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=l/kta3o08Ez8GWQWGgrupQOAhVskQNRKkeibLAq2u1g=; b=ml6aocSGfgAEEEubm5uM5rEEoKBcPe0st0q2Epx4PKLsxaIVgs0TrHIFdf17fudCXF SISBOvE60haKd0w5CThuJsTmVHmExlqqtDXd/UuBo+zqn//8ueJI+XI83NdYgiOM5+tu UIo64U0p94F6oKOynSWTW7RLEwBiuiG9YEo1WupPlJCIfwzEtA8GZHARcAV5TWwvr2s+ t0X9cJr4DIS6rgECspzeIIl/JWenJzl9KD2TNaUjtJjMkdyLqCsoxCk7p2duVbiJMy7E vBaVSAvuATvcSqpzuez/FKI7o3zyb0KT+KxMdqAsGMgt5Uq2FljHZbqeeixXfOEvXCub I/Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773093332; x=1773698132; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l/kta3o08Ez8GWQWGgrupQOAhVskQNRKkeibLAq2u1g=; b=L7XaemlolXxurmuok1ATz6f7tpgs2w8jVv/lmHkO5dAdX2Pekx77bS/qqhsAQiwoIo byiaCqQ8W9slFoeSY0QTInGmyeaSdTsOOZtDzBHYQseVF+9cH36TNCb+fLazzFNpVqdX Gjv+P7ZARxNs2h6up7w+ZoHbY3ZpDlY+W5vBprqERjCR3NHYsdgAef+phi7uiILusPNw e2xY4hg2wNTBRW7MXmOoz1MwyUIwnr5gdOnRqbMDav8KpNSnhiqBsOqsOYaabFq0JSjr iqH1RBN+BNYt2I6CxK16zttdnj5HZcFSOFv3FIY/hrIWcsQR9zhoUpCRXRy2Cuoib2xN MzLg== X-Forwarded-Encrypted: i=1; AJvYcCXLjCAPFMvx1IbpCMeNUU6DYm4zmryGkFaM3POoZie3a99RG4dYVuK2P1nXr2qHBE4snk4KiADrdkXGIas=@vger.kernel.org X-Gm-Message-State: AOJu0YykoPlZbKItIcWXXwFgKMWc5bIjQTAuvsyVYLW+dSwVpD3DAdiJ Ol2YpXKHRkxYCPJWWRBikquS4lHprWgh8JISZNkm1V2ovIO/au/Ra5ZO X-Gm-Gg: ATEYQzyDgeHCgSzbYqRy3Oh1r7UFE+K/MRZRpcGxPTTm+QhhnwAZzKCTZnndRO2NmT8 zdHRTK36Y51os1qX2yRQ3Dq9ri4iWlliElQdEmf7g8E9y1XIEuiPIakv6St1zntRJd5cu+h8rJN kNweRaVlnHTBOCw4ebwKCXFkqHg2VspFijASQOmy7SgaJ0rG3thaYG2jJBkAyfbIUADuFj//PRH PEJWAbTVkSfIq2+vapFlCXTidV8Lwi6MWrYuzRdn0HsgLS7zhMGmwxYQc0QsQNCKialxLeh6Y6K mXgm+n+7t1HMzQdThXvV5OU/5JN7O1gq+18BjofJXHj+LpVSkML8nuL/czxWB2knTtuyg3SJoKK 7XXKpDdazIyGrUjf1WxlRqR+S5q4220OeYv/VhoddIaihoSuXIsYCQlJeSFznol7j6a2hbRIGMY ojKz/gVfDizrucFknFzJxTB974EvUe4LE0SufWpUbEI3UPj5FyOzPUoQBkGyFjN+9xJFzht8Xt+ dVit7Zpd0/b X-Received: by 2002:a2e:a5c3:0:b0:38a:292e:b3f4 with SMTP id 38308e7fff4ca-38a40d9e6bfmr38028031fa.27.1773093332312; Mon, 09 Mar 2026 14:55:32 -0700 (PDT) Received: from T6NXCV08J99224A.lan (81-237-238-191-no600.tbcn.telia.com. [81.237.238.191]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-38a5d072320sm1581821fa.39.2026.03.09.14.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 14:55:30 -0700 (PDT) From: Oskar Ray-Frayssinet To: hansg@kernel.org, mchehab@kernel.org Cc: sakari.ailus@linux.intel.com, andy@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Oskar Ray-Frayssinet Subject: [PATCH] staging: atomisp: fix block comment style in refcount.c Date: Mon, 9 Mar 2026 22:55:16 +0100 Message-ID: <20260309215516.6091-1-rayfraytech@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix block comment formatting to comply with kernel coding style: - Add leading '*' on continuation lines - Move trailing '*/' to a separate line - Remove unnecessary braces around single statement block Signed-off-by: Oskar Ray-Frayssinet --- .../atomisp/pci/base/refcount/src/refcount.c | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c b/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c index 58e4e3173b40..00e8a73f413e 100644 --- a/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c +++ b/drivers/staging/media/atomisp/pci/base/refcount/src/refcount.c @@ -16,7 +16,8 @@ #include "ia_css_debug.h" /* TODO: enable for other memory aswell - now only for ia_css_ptr */ + * now only for ia_css_ptr + */ struct ia_css_refcount_entry { u32 count; ia_css_ptr data; @@ -93,14 +94,15 @@ void ia_css_refcount_uninit(void) "%s() entry\n", __func__); for (i = 0; i < myrefcount.size; i++) { /* driver verifier tool has issues with &arr[i] - and prefers arr + i; as these are actually equivalent - the line below uses + i - */ + * and prefers arr + i; as these are actually equivalent + * the line below uses + i + */ entry = myrefcount.items + i; if (entry->data != mmgr_NULL) { /* ia_css_debug_dtrace(IA_CSS_DBG_TRACE, - "ia_css_refcount_uninit: freeing (%x)\n", - entry->data);*/ + * "ia_css_refcount_uninit: freeing (%x)\n", + * entry->data); + */ hmm_free(entry->data); entry->data = mmgr_NULL; entry->count = 0; @@ -173,7 +175,8 @@ bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr) entry->count -= 1; if (entry->count == 0) { /* ia_css_debug_dtrace(IA_CSS_DBEUG_TRACE, - "ia_css_refcount_decrement: freeing\n");*/ + * "ia_css_refcount_decrement: freeing\n"); + */ hmm_free(ptr); entry->data = mmgr_NULL; entry->id = 0; @@ -183,7 +186,8 @@ bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr) } /* SHOULD NOT HAPPEN: ptr not managed by refcount, or not - valid anymore */ + * valid anymore + */ if (entry) IA_CSS_ERROR("id %x, ptr 0x%x entry %p entry->id %x entry->count %d\n", id, ptr, entry, entry->id, entry->count); @@ -221,9 +225,9 @@ void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr) for (i = 0; i < myrefcount.size; i++) { /* driver verifier tool has issues with &arr[i] - and prefers arr + i; as these are actually equivalent - the line below uses + i - */ + * and prefers arr + i; as these are actually equivalent + * the line below uses + i + */ entry = myrefcount.items + i; if ((entry->data != mmgr_NULL) && (entry->id == id)) { ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, @@ -238,9 +242,8 @@ void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr) hmm_free(entry->data); } - if (entry->count != 0) { + if (entry->count != 0) IA_CSS_WARNING("Ref count for entry %x is not zero!", entry->id); - } assert(entry->count == 0); -- 2.43.0