mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] alpha/boot/misc: prefer 'unsigned int' to bare use of 'unsigned'
       [not found] <20230709141002.8229-1-denghuilong@cdjrlc.com>
@ 2023-07-09 14:12 ` xuanzhenggang001
  0 siblings, 0 replies; only message in thread
From: xuanzhenggang001 @ 2023-07-09 14:12 UTC (permalink / raw)
  To: richard.henderson, ink; +Cc: mattst88, viro, linux-alpha, linux-kernel

Fix the following warnings reported by checkpatch:

arch/alpha/boot/misc.c:48: WARNING: Prefer 'unsigned int' to bare use of 
'unsigned'
arch/alpha/boot/misc.c:49: WARNING: Prefer 'unsigned int' to bare use of 
'unsigned'
arch/alpha/boot/misc.c:50: WARNING: Prefer 'unsigned int' to bare use of 
'unsigned'
arch/alpha/boot/misc.c:124: WARNING: Prefer 'unsigned int' to bare use 
of 'unsigned'

Signed-off-by: Zhenggang Xuan <xuanzhenggang001@208suo.com>
---
  arch/alpha/boot/misc.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/alpha/boot/misc.c b/arch/alpha/boot/misc.c
index 1ab91852d9f7..7d3249972587 100644
--- a/arch/alpha/boot/misc.c
+++ b/arch/alpha/boot/misc.c
@@ -45,9 +45,9 @@ typedef unsigned long  ulg;
  static uch *inbuf;        /* input buffer */
  static uch *window;        /* Sliding window buffer */

-static unsigned insize;        /* valid bytes in inbuf */
-static unsigned inptr;        /* index of next byte to be processed in 
inbuf */
-static unsigned outcnt;        /* bytes in output buffer */
+static unsigned int insize;        /* valid bytes in inbuf */
+static unsigned int inptr;        /* index of next byte to be processed 
in inbuf */
+static unsigned int outcnt;        /* bytes in output buffer */

  /* gzip flag byte */
  #define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */
@@ -121,7 +121,7 @@ int fill_inbuf(void)
  void flush_window(void)
  {
      ulg c = crc;
-    unsigned n;
+    unsigned int n;
      uch *in, *out, ch;

      in = window;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-09 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230709141002.8229-1-denghuilong@cdjrlc.com>
2023-07-09 14:12 ` [PATCH] alpha/boot/misc: prefer 'unsigned int' to bare use of 'unsigned' xuanzhenggang001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®