lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <60256ab738fe281c1fb3ec72fba62c60@208suo.com>
Date:   Sun, 09 Jul 2023 22:12:06 +0800
From:   xuanzhenggang001@...suo.com
To:     richard.henderson@...aro.org, ink@...assic.park.msu.ru
Cc:     mattst88@...il.com, viro@...iv.linux.org.uk,
        linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] alpha/boot/misc: prefer 'unsigned int' to bare use of
 'unsigned'

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@...suo.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;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ