From: Kever Yang Date: Tue, 3 Mar 2020 16:29:57 +0800 Subject: [PATCH] debug_uart.h: make self-contained In-Reply-To: <20200224172454.13812-1-masahiroy@kernel.org> References: <20200224172454.13812-1-masahiroy@kernel.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Masahiro, On 2020/2/25 ??1:24, Masahiro Yamada wrote: > 'uint' is not a primitive type. You need to include > or otherwise change it to (unsigned int). > > Signed-off-by: Masahiro Yamada Reviewed-by: Kever Yang Thanks, - Kever > --- > > include/debug_uart.h | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/include/debug_uart.h b/include/debug_uart.h > index cd70ae1a04..4d1c58075c 100644 > --- a/include/debug_uart.h > +++ b/include/debug_uart.h > @@ -88,28 +88,28 @@ void printascii(const char *str); > * > * @value: Value to output > */ > -void printhex2(uint value); > +void printhex2(unsigned int value); > > /** > * printhex4() - Output a 4-digit hex value > * > * @value: Value to output > */ > -void printhex4(uint value); > +void printhex4(unsigned int value); > > /** > * printhex8() - Output a 8-digit hex value > * > * @value: Value to output > */ > -void printhex8(uint value); > +void printhex8(unsigned int value); > > /** > * printdec() - Output a decimalism value > * > * @value: Value to output > */ > -void printdec(uint value); > +void printdec(unsigned int value); > > #ifdef CONFIG_DEBUG_UART_ANNOUNCE > #define _DEBUG_UART_ANNOUNCE printascii(" "); > @@ -151,34 +151,34 @@ void printdec(uint value); > _printch(*str++); \ > } \ > \ > - static inline void printhex1(uint digit) \ > + static inline void printhex1(unsigned int digit) \ > { \ > digit &= 0xf; \ > _debug_uart_putc(digit > 9 ? digit - 10 + 'a' : digit + '0'); \ > } \ > \ > - static inline void printhex(uint value, int digits) \ > + static inline void printhex(unsigned int value, int digits) \ > { \ > while (digits-- > 0) \ > printhex1(value >> (4 * digits)); \ > } \ > \ > - void printhex2(uint value) \ > + void printhex2(unsigned int value) \ > { \ > printhex(value, 2); \ > } \ > \ > - void printhex4(uint value) \ > + void printhex4(unsigned int value) \ > { \ > printhex(value, 4); \ > } \ > \ > - void printhex8(uint value) \ > + void printhex8(unsigned int value) \ > { \ > printhex(value, 8); \ > } \ > \ > - void printdec(uint value) \ > + void printdec(unsigned int value) \ > { \ > if (value > 10) { \ > printdec(value / 10); \