Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410087 > unrolled thread
| Started by | Ian Abbott <abbotti@mev.co.uk> |
|---|---|
| First post | 2016-05-31 12:30 +0200 |
| Last post | 2016-06-01 11:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2 1/4] staging : comedi : fix type issues in s626.c Ian Abbott <abbotti@mev.co.uk> - 2016-05-31 12:30 +0200
Re: [PATCH v2 1/4] staging : comedi : fix type issues in s626.c Joe Perches <joe@perches.com> - 2016-05-31 19:10 +0200
Re: [PATCH v2 1/4] staging : comedi : fix type issues in s626.c Ian Abbott <abbotti@mev.co.uk> - 2016-06-01 11:30 +0200
| From | Ian Abbott <abbotti@mev.co.uk> |
|---|---|
| Date | 2016-05-31 12:30 +0200 |
| Subject | Re: [PATCH v2 1/4] staging : comedi : fix type issues in s626.c |
| Message-ID | <rEP5U-1qK-5@gated-at.bofh.it> |
On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a type issues like > i.e Prefer kernel type 'u8' over 'uint8_t' > Prefer kernel type 'u16' over 'uint16_t' > Prefer kernel type 'u32' over 'uint32_t' > Prefer kernel type 's16' over 'int16_t' > Prefer kernel type 's32' over 'int32_t' > found by the checkpatch.pl tool. > > Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankarkm32@gmail.com> > --- > changes since v1: Rework > --- > drivers/staging/comedi/drivers/s626.c | 212 +++++++++++++++++----------------- > 1 file changed, 106 insertions(+), 106 deletions(-) > Thanks. It would have been nice if the checkpatch.pl tool detected _all_ the instances of these types. As a result of this patch, s626.c contains a mixture of the different integer type styles. I guess we can fix that up later though. Reviewed-by: Ian Abbott <abbotti@mev.co.uk> -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-
[toc] | [next] | [standalone]
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2016-05-31 19:10 +0200 |
| Message-ID | <rEVl1-5uA-41@gated-at.bofh.it> |
| In reply to | #1410087 |
On Tue, 2016-05-31 at 11:29 +0100, Ian Abbott wrote: > On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > > > > This is a patch to the s626.c file that fixes up a type issues like > > i.e Prefer kernel type 'u8' over 'uint8_t' > > Prefer kernel type 'u16' over 'uint16_t' > > Prefer kernel type 'u32' over 'uint32_t' > > Prefer kernel type 's16' over 'int16_t' > > Prefer kernel type 's32' over 'int32_t' > > found by the checkpatch.pl tool. > > > > Signed-off-by: Ravishankar Karkala Mallikarjunayya > > --- > > changes since v1: Rework > > --- > > drivers/staging/comedi/drivers/s626.c | 212 +++++++++++++++++----------------- > > 1 file changed, 106 insertions(+), 106 deletions(-) > > > Thanks. It would have been nice if the checkpatch.pl tool detected > _all_ the instances of these types. As a result of this patch, s626.c > contains a mixture of the different integer type styles. I guess we can > fix that up later though. Seems trivial enough to do. There was a possible issue with converting int_t types that were used as uapi function arguments. checkpatch currently warns only about variable declarations and not function declarations. It doesn't convert casts either. Should it?
[toc] | [prev] | [next] | [standalone]
| From | Ian Abbott <abbotti@mev.co.uk> |
|---|---|
| Date | 2016-06-01 11:30 +0200 |
| Message-ID | <rFaDn-6Ci-13@gated-at.bofh.it> |
| In reply to | #1410446 |
On 31/05/16 18:07, Joe Perches wrote: > On Tue, 2016-05-31 at 11:29 +0100, Ian Abbott wrote: >> On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: >>> >>> This is a patch to the s626.c file that fixes up a type issues like >>> i.e Prefer kernel type 'u8' over 'uint8_t' >>> Prefer kernel type 'u16' over 'uint16_t' >>> Prefer kernel type 'u32' over 'uint32_t' >>> Prefer kernel type 's16' over 'int16_t' >>> Prefer kernel type 's32' over 'int32_t' >>> found by the checkpatch.pl tool. >>> >>> Signed-off-by: Ravishankar Karkala Mallikarjunayya >>> --- >>> changes since v1: Rework >>> --- >>> drivers/staging/comedi/drivers/s626.c | 212 +++++++++++++++++----------------- >>> 1 file changed, 106 insertions(+), 106 deletions(-) >>> >> Thanks. It would have been nice if the checkpatch.pl tool detected >> _all_ the instances of these types. As a result of this patch, s626.c >> contains a mixture of the different integer type styles. I guess we can >> fix that up later though. > > Seems trivial enough to do. > > There was a possible issue with converting int_t types that > were used as uapi function arguments. > > checkpatch currently warns only about variable declarations and > not function declarations. It doesn't convert casts either. Oh right, I wasn't sure what the pattern was. It does warn about int_t types in _some_function declarations, but on closer inspection, it only seems to do so when there is a line break before the parameter declaration. For example: CHECK: Prefer kernel type 'u16' over 'uint16_t' #519: FILE: drivers/staging/comedi/drivers/s626.c:519: + uint16_t chan, int16_t dacdata) -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web