:::::: 
:::::: Manual check reason: "low confidence static check warning: 
drivers/tty/serial/rp2.c:428:8: sparse: sparse: Trying to use reserved word 
'for' as identifier"
:::::: 

BCC: [email protected]
CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Jiri Slaby <[email protected]>

Hi Jiri,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tty/tty-testing]
[also build test WARNING on usb/usb-testing shawnguo/for-next linus/master 
v6.0-rc3 next-20220901]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Jiri-Slaby/tty-TX-helpers/20220901-190806
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git 
tty-testing
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: alpha-randconfig-s042-20220901 
(https://download.01.org/0day-ci/archive/20220902/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 12.1.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # 
https://github.com/intel-lab-lkp/linux/commit/f6f99189d77ea45bc72efe7393bb91f4eb46a2fb
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review 
Jiri-Slaby/tty-TX-helpers/20220901-190806
        git checkout f6f99189d77ea45bc72efe7393bb91f4eb46a2fb
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha 
SHELL=/bin/bash drivers/tty/serial/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

sparse warnings: (new ones prefixed by >>)
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got __VA_OPT__
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got ;
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: Trying to use reserved word 
>> 'for' as identifier
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got &&
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in nested 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got --
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got (
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got ->
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: Trying to use reserved word 
>> 'continue' as identifier
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got }
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got (
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got ->
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got }
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got <
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: Trying to use reserved word 
>> 'if' as identifier
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got ==
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: Trying to use reserved word 
>> 'if' as identifier
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got }
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: got }
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: undefined identifier 'xmit'
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: undefined identifier 'xmit'
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: symbol 'ch' redeclared with 
different type (different type sizes):
>> drivers/tty/serial/rp2.c:428:8: sparse:    int [addressable] [toplevel] ch
   drivers/tty/serial/rp2.c:428:8: sparse: note: previously declared as:
>> drivers/tty/serial/rp2.c:428:8: sparse:    unsigned char [addressable] 
>> [toplevel] [usertype] ch
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: cannot dereference this type
>> drivers/tty/serial/rp2.c:428:8: sparse: sparse: cannot dereference this type
   drivers/tty/serial/rp2.c:428:8: sparse: sparse: symbol 'pending' redeclared 
with different type (different signedness):
>> drivers/tty/serial/rp2.c:428:8: sparse:    int [addressable] [toplevel] 
>> pending
   drivers/tty/serial/rp2.c:428:8: sparse: note: previously declared as:
>> drivers/tty/serial/rp2.c:428:8: sparse:    unsigned int [addressable] 
>> [toplevel] pending
>> drivers/tty/serial/rp2.c:449:29: sparse: sparse: too many arguments for 
>> function rp2_tx_chars
--
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got __VA_OPT__
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ;
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Trying to use reserved 
>> word 'for' as identifier
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got &&
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in nested 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got --
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ,
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ->
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Trying to use reserved 
>> word 'continue' as identifier
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got }
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ,
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ->
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got }
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got <
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Trying to use reserved 
>> word 'if' as identifier
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ) in function 
declarator
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got ==
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Trying to use reserved 
>> word 'if' as identifier
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got }
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: Expected ; at the end of 
type declaration
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: got }
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: symbol 'asc_out' 
redeclared with different type (incompatible argument 1 (different base types)):
>> drivers/tty/serial/st-asc.c:233:8: sparse:    int static [signed] [toplevel] 
>> asc_out( ... )
   drivers/tty/serial/st-asc.c:160:20: sparse: note: previously declared as:
>> drivers/tty/serial/st-asc.c:160:20: sparse:    void static inline 
>> [gnu_inline] [toplevel] asc_out( ... )
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: undefined identifier 
'xmit'
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: undefined identifier 
'xmit'
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: symbol 'ch' redeclared 
with different type (different type sizes):
>> drivers/tty/serial/st-asc.c:233:8: sparse:    int [addressable] [toplevel] ch
   drivers/tty/serial/st-asc.c:233:8: sparse: note: previously declared as:
>> drivers/tty/serial/st-asc.c:233:8: sparse:    unsigned char [addressable] 
>> [toplevel] [usertype] ch
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: symbol 'asc_out' 
redeclared with different type (incompatible argument 1 (different base types)):
>> drivers/tty/serial/st-asc.c:233:8: sparse:    int static [signed] [toplevel] 
>> asc_out( ... )
   drivers/tty/serial/st-asc.c:160:20: sparse: note: previously declared as:
>> drivers/tty/serial/st-asc.c:160:20: sparse:    void static inline 
>> [gnu_inline] [toplevel] asc_out( ... )
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: cannot dereference this 
>> type
>> drivers/tty/serial/st-asc.c:233:8: sparse: sparse: cannot dereference this 
>> type
   drivers/tty/serial/st-asc.c:233:8: sparse: sparse: symbol 'pending' 
redeclared with different type (different signedness):
>> drivers/tty/serial/st-asc.c:233:8: sparse:    int [addressable] [toplevel] 
>> pending
   drivers/tty/serial/st-asc.c:233:8: sparse: note: previously declared as:
>> drivers/tty/serial/st-asc.c:233:8: sparse:    unsigned int [addressable] 
>> [toplevel] pending
>> drivers/tty/serial/st-asc.c:245:30: sparse: sparse: too many arguments for 
>> function asc_do_transmit_chars
>> drivers/tty/serial/st-asc.c:457:24: sparse: sparse: too many arguments for 
>> function asc_out
   drivers/tty/serial/st-asc.c:489:16: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:493:16: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:494:16: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:543:24: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:557:24: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:592:16: sparse: sparse: too many arguments for 
function asc_out
   drivers/tty/serial/st-asc.c:595:16: sparse: sparse: too many arguments for 
function asc_out
--
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got __VA_OPT__
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ;
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Trying to use 
>> reserved word 'for' as identifier
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
end of declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got &&
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
nested declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got --
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ->
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
end of declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ->
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Trying to use 
>> reserved word 'continue' as identifier
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
the end of type declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got }
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ->
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
end of declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ->
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
the end of type declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got }
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got <
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got ==
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
the end of type declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got }
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: Expected ; at 
the end of type declaration
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: got }
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: undefined 
identifier 'xmit'
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: undefined 
identifier 'xmit'
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: symbol 'ch' 
redeclared with different type (different type sizes):
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse:    int [addressable] 
>> [toplevel] ch
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: note: previously 
declared as:
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse:    unsigned char 
>> [addressable] [toplevel] [usertype] ch
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: cannot 
>> dereference this type
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: cannot 
>> dereference this type
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: sparse: symbol 'pending' 
redeclared with different type (different signedness):
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse:    int [addressable] 
>> [toplevel] pending
   drivers/tty/serial/altera_jtaguart.c:137:8: sparse: note: previously 
declared as:
>> drivers/tty/serial/altera_jtaguart.c:137:8: sparse:    unsigned int 
>> [addressable] [toplevel] pending
>> drivers/tty/serial/altera_jtaguart.c:150:36: sparse: sparse: too many 
>> arguments for function altera_jtaguart_do_tx_chars
--
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got __VA_OPT__
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ;
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Trying to use 
>> reserved word 'for' as identifier
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got &&
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in nested 
declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got --
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ->
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ->
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Trying to use 
>> reserved word 'continue' as identifier
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at the end 
of type declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got }
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ->
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at end of 
declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ->
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at the end 
of type declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got }
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got <
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got ==
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at the end 
of type declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got }
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: Expected ; at the end 
of type declaration
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: got }
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: undefined identifier 
'xmit'
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: undefined identifier 
'xmit'
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: symbol 'ch' 
redeclared with different type (different type sizes):
>> drivers/tty/serial/amba-pl010.c:165:8: sparse:    int [addressable] 
>> [toplevel] ch
   drivers/tty/serial/amba-pl010.c:165:8: sparse: note: previously declared as:
>> drivers/tty/serial/amba-pl010.c:165:8: sparse:    unsigned char 
>> [addressable] [toplevel] [usertype] ch
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: cannot dereference 
>> this type
>> drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: cannot dereference 
>> this type
   drivers/tty/serial/amba-pl010.c:165:8: sparse: sparse: symbol 'pending' 
redeclared with different type (different signedness):
>> drivers/tty/serial/amba-pl010.c:165:8: sparse:    int [addressable] 
>> [toplevel] pending
   drivers/tty/serial/amba-pl010.c:165:8: sparse: note: previously declared as:
>> drivers/tty/serial/amba-pl010.c:165:8: sparse:    unsigned int [addressable] 
>> [toplevel] pending
>> drivers/tty/serial/amba-pl010.c:214:47: sparse: sparse: too many arguments 
>> for function pl010_tx_chars
--
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got __VA_OPT__
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ;
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Trying to use 
>> reserved word 'for' as identifier
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at end 
of declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got &&
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
nested declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got --
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ,
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at end 
of declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ->
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Trying to use 
>> reserved word 'continue' as identifier
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at the 
end of type declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got }
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ,
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at end 
of declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ->
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at the 
end of type declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got }
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got <
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ) in 
function declarator
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got ==
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Trying to use 
>> reserved word 'if' as identifier
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at the 
end of type declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got }
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: Expected ; at the 
end of type declaration
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: got }
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: symbol 
'bcm_uart_writel' redeclared with different type (incompatible argument 1 
(different base types)):
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    int static [signed] 
>> [toplevel] bcm_uart_writel( ... )
   drivers/tty/serial/bcm63xx_uart.c:79:20: sparse: note: previously declared 
as:
>> drivers/tty/serial/bcm63xx_uart.c:79:20: sparse:    void static inline 
>> [gnu_inline] [toplevel] bcm_uart_writel( ... )
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: undefined 
identifier 'xmit'
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: undefined 
identifier 'xmit'
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: symbol 'ch' 
redeclared with different type (different type sizes):
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    int [addressable] 
>> [toplevel] ch
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: note: previously declared 
as:
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    unsigned char 
>> [addressable] [toplevel] [usertype] ch
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: symbol 
'bcm_uart_writel' redeclared with different type (incompatible argument 1 
(different base types)):
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    int static [signed] 
>> [toplevel] bcm_uart_writel( ... )
   drivers/tty/serial/bcm63xx_uart.c:79:20: sparse: note: previously declared 
as:
>> drivers/tty/serial/bcm63xx_uart.c:79:20: sparse:    void static inline 
>> [gnu_inline] [toplevel] bcm_uart_writel( ... )
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: cannot dereference 
>> this type
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: cannot dereference 
>> this type
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: sparse: symbol 'pending' 
redeclared with different type (different signedness):
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    int [addressable] 
>> [toplevel] pending
   drivers/tty/serial/bcm63xx_uart.c:300:8: sparse: note: previously declared 
as:
>> drivers/tty/serial/bcm63xx_uart.c:300:8: sparse:    unsigned int 
>> [addressable] [toplevel] pending
>> drivers/tty/serial/bcm63xx_uart.c:316:30: sparse: sparse: too many arguments 
>> for function bcm_uart_tx
>> drivers/tty/serial/bcm63xx_uart.c:323:24: sparse: sparse: too many arguments 
>> for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:369:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:382:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:395:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:412:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:423:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:429:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:435:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:442:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:455:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:514:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:519:24: sparse: sparse: too many arguments 
for function bcm_uart_writel
   drivers/tty/serial/bcm63xx_uart.c:528:24: sparse: sparse: too many arguments 
for function bcm_uart_writel

vim +/for +428 drivers/tty/serial/rp2.c

7d9f49afa451d8 Kevin Cernekee 2013-01-16  427  
f6f99189d77ea4 Jiri Slaby     2022-09-01 @428  static 
DEFINE_UART_PORT_TX_HELPER_LIMITED(rp2_tx_chars, port, ch,
f6f99189d77ea4 Jiri Slaby     2022-09-01  429           true,
f6f99189d77ea4 Jiri Slaby     2022-09-01  430           writeb(ch, 
port_to_up(port)->base + RP2_DATA_BYTE),
f6f99189d77ea4 Jiri Slaby     2022-09-01  431           ({}));
7d9f49afa451d8 Kevin Cernekee 2013-01-16  432  
7d9f49afa451d8 Kevin Cernekee 2013-01-16  433  static void 
rp2_ch_interrupt(struct rp2_uart_port *up)
7d9f49afa451d8 Kevin Cernekee 2013-01-16  434  {
7d9f49afa451d8 Kevin Cernekee 2013-01-16  435   u32 status;
7d9f49afa451d8 Kevin Cernekee 2013-01-16  436  
7d9f49afa451d8 Kevin Cernekee 2013-01-16  437   spin_lock(&up->port.lock);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  438  
7d9f49afa451d8 Kevin Cernekee 2013-01-16  439   /*
7d9f49afa451d8 Kevin Cernekee 2013-01-16  440    * The IRQ status bits are 
clear-on-write.  Other status bits in
7d9f49afa451d8 Kevin Cernekee 2013-01-16  441    * this register aren't, so 
it's harmless to write to them.
7d9f49afa451d8 Kevin Cernekee 2013-01-16  442    */
7d9f49afa451d8 Kevin Cernekee 2013-01-16  443   status = readl(up->base + 
RP2_CHAN_STAT);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  444   writel(status, up->base + 
RP2_CHAN_STAT);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  445  
7d9f49afa451d8 Kevin Cernekee 2013-01-16  446   if (status & 
RP2_CHAN_STAT_RXDATA_m)
7d9f49afa451d8 Kevin Cernekee 2013-01-16  447           rp2_rx_chars(up);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  448   if (status & 
RP2_CHAN_STAT_TXEMPTY_m)
f6f99189d77ea4 Jiri Slaby     2022-09-01 @449           rp2_tx_chars(&up->port,
f6f99189d77ea4 Jiri Slaby     2022-09-01  450                   FIFO_SIZE - 
readw(up->base + RP2_TX_FIFO_COUNT));
7d9f49afa451d8 Kevin Cernekee 2013-01-16  451   if (status & 
RP2_CHAN_STAT_MS_CHANGED_MASK)
7d9f49afa451d8 Kevin Cernekee 2013-01-16  452           
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  453  
7d9f49afa451d8 Kevin Cernekee 2013-01-16  454   spin_unlock(&up->port.lock);
7d9f49afa451d8 Kevin Cernekee 2013-01-16  455  }
7d9f49afa451d8 Kevin Cernekee 2013-01-16  456  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to