All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: edac 'unsigned int' to bare use of 'unsigned'
       [not found] <tencent_1109A4B8453E45F850A4A038DBF78E91F907@qq.com>
@ 2023-07-14  2:50 ` hanyu001
  0 siblings, 0 replies; 2+ messages in thread
From: hanyu001 @ 2023-07-14  2:50 UTC (permalink / raw)
  To: yazen.ghannam, bp, tony.luck, james.morse, mchehab
  Cc: linux-edac, linux-kernel

Use of 'unsigned int' instead of bare use of 'unsigned'. Fix this for
edac_mc*, ghes and the i5100 driver as reported by checkpatch.pl.

drivers/edac/amd64_edac.c:2097: WARNING: Prefer 'unsigned int' to bare 
use of 'unsigned'

Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/edac/amd64_edac.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 62b7611..5d2c9bb 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2094,7 +2094,7 @@ static void k8_map_sysaddr_to_csrow(struct 
mem_ctl_info *mci, u64 sys_addr,
      }
  }

-static int ddr2_cs_size(unsigned i, bool dct_width)
+static int ddr2_cs_size(unsigned int i, bool dct_width)
  {
      unsigned shift = 0;

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

* [PATCH] drivers: edac 'unsigned int' to bare use of 'unsigned'
       [not found] <tencent_1729A1084117B6691D94F35D48218BA78A08@qq.com>
@ 2023-07-14  2:32 ` hanyu001
  0 siblings, 0 replies; 2+ messages in thread
From: hanyu001 @ 2023-07-14  2:32 UTC (permalink / raw)
  To: rric, mchehab, james.morse, tony.luck, bp, yazen.ghannam
  Cc: linux-kernel, linux-edac

Use of 'unsigned int' instead of bare use of 'unsigned'. Fix this for
edac_mc*, ghes and the i5100 driver as reported by checkpatch.pl.

drivers/edac/amd64_edac.c:2112: WARNING: Prefer 'unsigned int' to bare 
use of 'unsigned'

Signed-off-byC: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/edac/amd64_edac.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index ddb9bf3..62b7611 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2109,7 +2109,7 @@ static int ddr2_cs_size(unsigned i, bool 
dct_width)
  }

  static int k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct,
-                  unsigned cs_mode, int cs_mask_nr)
+                  unsigned int  cs_mode, int cs_mask_nr)
  {
      u32 dclr = dct ? pvt->dclr1 : pvt->dclr0;

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

end of thread, other threads:[~2023-07-14  2:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_1109A4B8453E45F850A4A038DBF78E91F907@qq.com>
2023-07-14  2:50 ` [PATCH] drivers: edac 'unsigned int' to bare use of 'unsigned' hanyu001
     [not found] <tencent_1729A1084117B6691D94F35D48218BA78A08@qq.com>
2023-07-14  2:32 ` hanyu001

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.