All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] EDAC/amd64: clean up some inconsistent indentings
@ 2023-03-30  1:20 Yang Li
  2023-04-03 17:02 ` Yazen Ghannam
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2023-03-30  1:20 UTC (permalink / raw)
  To: yazen.ghannam
  Cc: bp, tony.luck, james.morse, mchehab, rric, linux-edac,
	linux-kernel, Yang Li, Abaci Robot

drivers/edac/amd64_edac.c:1279 umc_determine_edac_cap() warn: inconsistent indenting

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4639
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/edac/amd64_edac.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 6dad0f1064c0..5c4292e65b96 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -1276,19 +1276,19 @@ static unsigned long umc_determine_edac_cap(struct amd64_pvt *pvt)
 	u8 i, umc_en_mask = 0, dimm_ecc_en_mask = 0;
 	unsigned long edac_cap = EDAC_FLAG_NONE;
 
-		for_each_umc(i) {
-			if (!(pvt->umc[i].sdp_ctrl & UMC_SDP_INIT))
-				continue;
+	for_each_umc(i) {
+		if (!(pvt->umc[i].sdp_ctrl & UMC_SDP_INIT))
+			continue;
 
-			umc_en_mask |= BIT(i);
+		umc_en_mask |= BIT(i);
 
-			/* UMC Configuration bit 12 (DimmEccEn) */
-			if (pvt->umc[i].umc_cfg & BIT(12))
-				dimm_ecc_en_mask |= BIT(i);
-		}
+		/* UMC Configuration bit 12 (DimmEccEn) */
+		if (pvt->umc[i].umc_cfg & BIT(12))
+			dimm_ecc_en_mask |= BIT(i);
+	}
 
-		if (umc_en_mask == dimm_ecc_en_mask)
-			edac_cap = EDAC_FLAG_SECDED;
+	if (umc_en_mask == dimm_ecc_en_mask)
+		edac_cap = EDAC_FLAG_SECDED;
 
 	return edac_cap;
 }
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] EDAC/amd64: clean up some inconsistent indentings
  2023-03-30  1:20 [PATCH -next] EDAC/amd64: clean up some inconsistent indentings Yang Li
@ 2023-04-03 17:02 ` Yazen Ghannam
  0 siblings, 0 replies; 2+ messages in thread
From: Yazen Ghannam @ 2023-04-03 17:02 UTC (permalink / raw)
  To: Yang Li
  Cc: yazen.ghannam, bp, tony.luck, james.morse, mchehab, rric,
	linux-edac, linux-kernel, Abaci Robot

On 3/29/23 21:20, Yang Li wrote:
> drivers/edac/amd64_edac.c:1279 umc_determine_edac_cap() warn: inconsistent indenting
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4639
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---

Hi Yang,

Thanks for the patch.

It looks like this issue was introduced with the following commit.

f6a4b4a1aa16 ("EDAC/amd64: Split determine_edac_cap() into dct/umc functions")

Can you please include a Fixes tag and describe your changes in the commit message?

Thanks,
Yazen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-03 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30  1:20 [PATCH -next] EDAC/amd64: clean up some inconsistent indentings Yang Li
2023-04-03 17:02 ` Yazen Ghannam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.