Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp846871ybp; Wed, 9 Oct 2019 05:16:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBc/10MFpJv/f1fXxVcJ533xnCcj88bbFPLud6zuiUNe9nZuGoh3gQ5vZFEx6wWags588m X-Received: by 2002:a50:f704:: with SMTP id g4mr2528953edn.255.1570623373030; Wed, 09 Oct 2019 05:16:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570623373; cv=none; d=google.com; s=arc-20160816; b=b8BjkatJhNzTiNo+5BsRlBzcytM2ARMILEJFzNR0Q6IKvbgaU2nja0F55pcUtZDPQG cc+YcS4zeNhaQZeBNQwsyAQqfvuwh8yYJ57PYWzO6Z22DagpWfbQ6+uwMRWpi2RJrSKm ECODibxXUDtq3uFB7ASfdmXHzIYIw+AjBX5zrDZMSgiboUwFi3ZnBsS+Otc35v/FEB03 FynI63vxFie96+wrQWJYFEGmOaUe08tmWWUJaWECoJ3QlcfQwQNgt6RCgTiCT6vAMRs7 TisHuwIoHfjC4l1zhWQhMi+c0bnjNmgPwJPVrjl5GFydWDOxatBeHQyLdVSZdH4V4hd/ OLSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc :autocrypt:subject:from:to:dkim-signature; bh=w5JW9aBljdPZQjwJJUfpn7MwQwMwygn5GpTIM6IotbI=; b=ZWDbl9jc8kyhkNMcgA11xKlnTJqBIKorNqodIoRQkzkaB7RdhilVqjiUFJNF1MxdbJ RsXfsULN84sGTsPn4DVJEMSgvxTFiy4KKkibS7HwSPvvgCF4IIIcP77vmQtzUdEs+14+ Q5DwdWMzLmAdHeE1cAdeje3aH7s+BlJU8dytctC2qGfzApCuT3sPps0uKUiGmglhdtFg cpK15mj5C6L669SoyqYk1SCY8X+FxZmnO9gQnKN9SDOClszsWuTB5fBUyvQ4QCceoJEG +op7fUESpwbMp9eCLSSgwILWmcCpKfUfpVvhpo2E0y+QLDWnZwGrnQv4AzT8Tg1gMUsV shzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=rOWVlwbK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r24si1076859edy.417.2019.10.09.05.15.48; Wed, 09 Oct 2019 05:16:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=rOWVlwbK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730780AbfJIMPY (ORCPT + 99 others); Wed, 9 Oct 2019 08:15:24 -0400 Received: from mout.web.de ([212.227.17.12]:40263 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbfJIMPY (ORCPT ); Wed, 9 Oct 2019 08:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1570623277; bh=FNESg4w9bTAwpducV9M0k73rOqFosWq1d+pDbA705t4=; h=X-UI-Sender-Class:To:From:Subject:Cc:Date; b=rOWVlwbKxhayU45Z0iwtwNCqJbfjk18q6A4ktgq0GIbwpy9y3DjXsTGqZiyxAx0aP s3cvZy8EzdFyObquLRC8YsIuq47J0K4eTrKoXXIXYMLoPkKe0413fhqVIRxNKDwEpA YzXejSlBGT9+rPgiyld66SGW0rvt9BXWNCS3LUXE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([93.132.177.35]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MddJY-1iS0e10gNY-00PMuy; Wed, 09 Oct 2019 14:14:37 +0200 To: kernel-janitors@vger.kernel.org, Alexander Shishkin , Andrew Morton , Andy Shevchenko , Joe Perches , Kees Cook , Nick Desaulniers , Steven Rostedt From: Markus Elfring Subject: [PATCH] string.h: Mark 34 functions with __must_check Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMgRWxm cmluZyA8TWFya3VzLkVsZnJpbmdAd2ViLmRlPokCVAQTAQ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N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Cc: LKML Message-ID: <75f70e5e-9ece-d6d1-a2c5-2f3ad79b9ccb@web.de> Date: Wed, 9 Oct 2019 14:14:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:TuQIGkl5ZqUQs2vtisgahCQcXbjxrLnbPv7CZfSuejg6gDtRiRl /ZxE80O8/nGOlG5gbj1RuQNvPjWLJf7gVF7RyPl/stomArxW9DbMchVLFA2PdvzVeVS9s3S x9kpbQMQPduVdJzVL6eQBcoEUj2ndem/TpJV35T1HOdPLoGXVQoVR+Znj3pO6YUnEG/FKc2 4gW1Lgxb5pfHZ0tCHV6FQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:V+5CVju8N5w=:mPqYuKXRIvptIa5saSD67K XRhbeT6fIEMdDS98mwIdToT/YXoMZhiBRTGZLTZNA5Ioa9hAzvwg4Z8vDo0jSE9hAVd2H0yp4 uLk2wO7Pd9UbKypTs9XmCXkAUGrZ420BCS5s986xtlRaPIGOisG/Lc3RaNsFUOTDEoK3EjEi1 h47IHVXY/EHH58CKzNuFefQJl4QZEFjuHMcdm3hHfKXRo88bqmNgINJ/LqebR2gHQp5mHDf3d A4nzjfBBy5H1GbtAX0ug1nwmFubFpKjljk39FNlElJ/Y4lvcG8ivIHczRVyIGGiutD1z4gqnZ OgPCtGUw+fTeaE9cyFjpOgokD515/MXSvguxRfB34f+ayeGkx88zMyYraHEMSuFgIWpH8nXKH glFUpOLECcsbKx8VwX31huhXYGwE4ZLGOfdGJ/YEF1lV6DdzeTu+8l3XGS87Fg4vAKyTIpE5h 4McdAWsHT5jjJVqj+5oAQgSujmpyV7rZ6N9uguCfPrpza06QB+X2DpBn5wu43wctvpW2hmuvs qWeKBrNs2Hr9N8uBFSw/6LM9Y6T1TEnVTaRW4/G9xhND0Ce5p0+cB1TL5Je0TzxECQ2dHGlbV RGhP2qh06t7dQRhzeXrwgwhfrhIKi8qDtsCkypK38Kc+e2f4TNJtXlRT2hcmEXVYRfuoky744 E2h5j/lvduFmtk12zlIwrFFvsWBOhyXuKWk/EOtk+b2+Mpyi5A8DCK1So51dq+WkwYTGRFYHi 3fWwq4OGFgGBTPTlq0f7hzBbpRu/XOIHha2Ty/r2oghANGQIli1UIPrIyBR5WDegRxZnp16Wx TcRRdDQc2HHjtxiekCS8O3DVBvpsm/27PeHBGfpvwo256JrhheZTCAGKeAo0h7hDEvMRow5dl gERVxzJvoI/97PyKOsYwn5Qs8+7VuYo8TowByDkIya4AFW0xwqSNWCTjhS3zXhouF2a6Arb3u JPaIIvdHBUe5ckpPMHlFQO7+C/EtfLIqEflg2doC2q8rF09VpheDSuxdtfRoGN0qiBFUbfvLU eZvGsFK5cso6B17gVVPrsL6paHmf3Ka/nF2kJkjxTAm4R16okm6I3EWe3US1id+1BEwyHSdsF +oYlfmtQsx2bg50TNDx8H/GMBSvuFtLDU1gtqbkVEHNz0g58+c8B5j8nmtj8P9JJpV3cdViSA +56Yi6ChAlF3UuraDu6NjW5BeLdG61HmbJa64zIqeYUX+1LdvZa/67NL+QaWClOqwdDZpKrBC vzKyYLol8y7Vr4hUrY5CnrvP7fdQW4PlxMaUwodNMZupt2kTriphvnEqWh/w= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Wed, 9 Oct 2019 13:53:59 +0200 Several functions return values with which useful data processing should be performed. These values must not be ignored then. Thus use the annotation =E2=80=9C__must_check=E2=80=9D in the shown functi= on declarations. Add also corresponding parameter names for adjusted functions. Signed-off-by: Markus Elfring =2D-- include/linux/string.h | 75 ++++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/include/linux/string.h b/include/linux/string.h index 3cf684db4bc6..5cece3a91434 100644 =2D-- a/include/linux/string.h +++ b/include/linux/string.h @@ -9,10 +9,10 @@ #include #include -extern char *strndup_user(const char __user *, long); -extern void *memdup_user(const void __user *, size_t); -extern void *vmemdup_user(const void __user *, size_t); -extern void *memdup_user_nul(const void __user *, size_t); +extern char * __must_check strndup_user(const char __user *src, long n); +extern void * __must_check memdup_user(const void __user *src, size_t len= ); +extern void * __must_check vmemdup_user(const void __user *src, size_t le= n); +extern void * __must_check memdup_user_nul(const void __user *src, size_t= len); /* * Include machine specific inline routines @@ -90,28 +90,29 @@ extern char * strncat(char *, const char *, __kernel_s= ize_t); extern size_t strlcat(char *, const char *, __kernel_size_t); #endif #ifndef __HAVE_ARCH_STRCMP -extern int strcmp(const char *,const char *); +extern int __must_check strcmp(const char *s1, const char *s2); #endif #ifndef __HAVE_ARCH_STRNCMP -extern int strncmp(const char *,const char *,__kernel_size_t); +extern int __must_check strncmp(const char *s1, const char *s2, + __kernel_size_t n); #endif #ifndef __HAVE_ARCH_STRCASECMP -extern int strcasecmp(const char *s1, const char *s2); +extern int __must_check strcasecmp(const char *s1, const char *s2); #endif #ifndef __HAVE_ARCH_STRNCASECMP -extern int strncasecmp(const char *s1, const char *s2, size_t n); +extern int __must_check strncasecmp(const char *s1, const char *s2, size_= t n); #endif #ifndef __HAVE_ARCH_STRCHR -extern char * strchr(const char *,int); +extern char * __must_check strchr(const char *s, int c); #endif #ifndef __HAVE_ARCH_STRCHRNUL -extern char * strchrnul(const char *,int); +extern char * __must_check strchrnul(const char *s, int c); #endif #ifndef __HAVE_ARCH_STRNCHR -extern char * strnchr(const char *, size_t, int); +extern char * __must_check strnchr(const char *s, size_t n, int c); #endif #ifndef __HAVE_ARCH_STRRCHR -extern char * strrchr(const char *,int); +extern char * __must_check strrchr(const char *s, int c); #endif extern char * __must_check skip_spaces(const char *); @@ -123,10 +124,10 @@ static inline __must_check char *strstrip(char *str) } #ifndef __HAVE_ARCH_STRSTR -extern char * strstr(const char *, const char *); +extern char * __must_check strstr(const char *s1, const char *s2); #endif #ifndef __HAVE_ARCH_STRNSTR -extern char * strnstr(const char *, const char *, size_t); +extern char * __must_check strnstr(const char *s1, const char *s2, size_t= n); #endif #ifndef __HAVE_ARCH_STRLEN extern __kernel_size_t strlen(const char *); @@ -135,16 +136,16 @@ extern __kernel_size_t strlen(const char *); extern __kernel_size_t strnlen(const char *,__kernel_size_t); #endif #ifndef __HAVE_ARCH_STRPBRK -extern char * strpbrk(const char *,const char *); +extern char * __must_check strpbrk(const char *s, const char *c); #endif #ifndef __HAVE_ARCH_STRSEP extern char * strsep(char **,const char *); #endif #ifndef __HAVE_ARCH_STRSPN -extern __kernel_size_t strspn(const char *,const char *); +extern __kernel_size_t __must_check strspn(const char *s, const char *a); #endif #ifndef __HAVE_ARCH_STRCSPN -extern __kernel_size_t strcspn(const char *,const char *); +extern __kernel_size_t __must_check strcspn(const char *s, const char *r)= ; #endif #ifndef __HAVE_ARCH_MEMSET @@ -197,13 +198,13 @@ extern void * memmove(void *,const void *,__kernel_s= ize_t); extern void * memscan(void *,int,__kernel_size_t); #endif #ifndef __HAVE_ARCH_MEMCMP -extern int memcmp(const void *,const void *,__kernel_size_t); +extern int __must_check memcmp(const void *a, const void *b, __kernel_siz= e_t n); #endif #ifndef __HAVE_ARCH_BCMP -extern int bcmp(const void *,const void *,__kernel_size_t); +extern int __must_check bcmp(const void *a, const void *b, __kernel_size_= t n); #endif #ifndef __HAVE_ARCH_MEMCHR -extern void * memchr(const void *,int,__kernel_size_t); +extern void * __must_check memchr(const void *s, int c, __kernel_size_t n= ); #endif #ifndef __HAVE_ARCH_MEMCPY_MCSAFE static inline __must_check unsigned long memcpy_mcsafe(void *dst, @@ -219,29 +220,31 @@ static inline void memcpy_flushcache(void *dst, cons= t void *src, size_t cnt) memcpy(dst, src, cnt); } #endif -void *memchr_inv(const void *s, int c, size_t n); +void * __must_check memchr_inv(const void *s, int c, size_t n); char *strreplace(char *s, char old, char new); extern void kfree_const(const void *x); -extern char *kstrdup(const char *s, gfp_t gfp) __malloc; -extern const char *kstrdup_const(const char *s, gfp_t gfp); -extern char *kstrndup(const char *s, size_t len, gfp_t gfp); -extern void *kmemdup(const void *src, size_t len, gfp_t gfp); -extern char *kmemdup_nul(const char *s, size_t len, gfp_t gfp); +extern char * __must_check kstrdup(const char *s, gfp_t gfp) __malloc; +extern const char * __must_check kstrdup_const(const char *s, gfp_t gfp); +extern char * __must_check kstrndup(const char *s, size_t len, gfp_t gfp)= ; +extern void * __must_check kmemdup(const void *src, size_t len, gfp_t gfp= ); +extern char * __must_check kmemdup_nul(const char *s, size_t len, gfp_t g= fp); -extern char **argv_split(gfp_t gfp, const char *str, int *argcp); +extern char ** __must_check argv_split(gfp_t gfp, const char *str, int *a= rgcp); extern void argv_free(char **argv); -extern bool sysfs_streq(const char *s1, const char *s2); -extern int kstrtobool(const char *s, bool *res); -static inline int strtobool(const char *s, bool *res) +extern bool __must_check sysfs_streq(const char *s1, const char *s2); +extern int __must_check kstrtobool(const char *s, bool *res); +static inline int __must_check strtobool(const char *s, bool *res) { return kstrtobool(s, res); } -int match_string(const char * const *array, size_t n, const char *string)= ; -int __sysfs_match_string(const char * const *array, size_t n, const char = *s); +int __must_check match_string(const char * const *array, + size_t n, const char *string); +int __must_check __sysfs_match_string(const char * const *array, + size_t n, const char *s); /** * sysfs_match_string - matches given string in an array @@ -258,8 +261,10 @@ int bstr_printf(char *buf, size_t size, const char *f= mt, const u32 *bin_buf); int bprintf(u32 *bin_buf, size_t size, const char *fmt, ...) __printf(3, = 4); #endif -extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *pp= os, - const void *from, size_t available); +extern ssize_t __must_check memory_read_from_buffer(void *to, size_t coun= t, + loff_t *ppos, + const void *from, + size_t available); /** * strstarts - does @str start with @prefix? @@ -271,7 +276,7 @@ static inline bool strstarts(const char *str, const ch= ar *prefix) return strncmp(str, prefix, strlen(prefix)) =3D=3D 0; } -size_t memweight(const void *ptr, size_t bytes); +size_t __must_check memweight(const void *ptr, size_t bytes); void memzero_explicit(void *s, size_t count); /** =2D- 2.23.0