Skip to contentSkip to conversation

parser: add unsigned int parser

PATCH In review bingjingc 3 participants 3 messages Jan 28, 2021 – Jan 29, 2021 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

bingjingc

author
#0 lore raw

PATCH v2 1/3 parser: add unsigned int parser

From: BingJing Chang <[email protected]>

Will be used by fs parsing options & fix kernel-doc typos

---
 include/linux/parser.h |  1 +
 lib/parser.c           | 44 +++++++++++++++++++++++++++++++++-----------
 2 files changed, 34 insertions(+), 11 deletions(-)
include/linux/parser.h +1 -0
index 89e2b23..dd79f45 100644
@@ -29,6 +29,7 @@ typedef struct {
 
 int match_token(char *, const match_table_t table, substring_t args[]);
 int match_int(substring_t *, int *result);
+int match_uint(substring_t *s, unsigned int *result);
 int match_u64(substring_t *, u64 *result);
 int match_octal(substring_t *, int *result);
 int match_hex(substring_t *, int *result);
lib/parser.c +33 -11

111 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · bingjingc

From: BingJing Chang <[email protected]>

Will be used by fs parsing options & fix kernel-doc typos

You should drop my Reviewed-by: also, until I explicitly reply with that.

Quoted 5 lines
---
 include/linux/parser.h |  1 +
 lib/parser.c           | 44 +++++++++++++++++++++++++++++++++-----------
 2 files changed, 34 insertions(+), 11 deletions(-)

The kernel-doc changes do look good. :)

thanks.

Signature · 1 line
~Randy

A message that is not in the archive (sent off-list or not yet received): 6862f3e8-5eb6-4364-a05e-d4ad23d1d37d@Mail

#3 lore raw

Hi Randy,

Thank you for talking to me the correct kernel-doc format. :)

I also split the cleanup of kernel doc comments into an independent patch due to Jan's comments and submitted it. Thank you.

bingjingc <[email protected]> 於 2021年1月29日 週五 下午1:51寫道:

Quoted 23 lines

[loop [email protected]] in order to reply in plain-text Randy Dunlap <[email protected]> 於 2021-01-29 05:26 寫道:

Quoted 8 lines · bingjingc

From: BingJing Chang <[email protected]>

Will be used by fs parsing options & fix kernel-doc typos

You should drop my Reviewed-by: also, until I explicitly reply with that.

Quoted 5 lines
---
 include/linux/parser.h |  1 +
 lib/parser.c           | 44 +++++++++++++++++++++++++++++++++-----------
 2 files changed, 34 insertions(+), 11 deletions(-)
Quoted 6 lines

The kernel-doc changes do look good. :)

thanks.
--
~Randy

Thanks,
BingJing