Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1134914ybp; Wed, 9 Oct 2019 09:16:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/hLGyjrNikBNRmJ3FoEjWF+8mwq8ZSgMTQpWMq3Bg4oLwSYfCesi7J7SXUnspty9Dg1q8 X-Received: by 2002:aa7:d756:: with SMTP id a22mr3809959eds.198.1570637783509; Wed, 09 Oct 2019 09:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570637783; cv=none; d=google.com; s=arc-20160816; b=nBuFBCQi/7EsrgOqc8EdWMaDpay2xhO+qXoEb9czW3LNBbDzT1FgDkFA1wuWzd+R6U AKoqT11sSerZXbb3NNOCkSyCVfGDmL7gmdyevm/ian2yn1KHlWkKDGgpQLoTCrWm9+CW qcUNucdM79OvOBXuXpSIbb8Zxue655F1giD2hgJO++iIptslRy970o6T5h74VFy7pGvp UOfo0JaKJnsF/QaHgLqZxDxYqm6xHYoofiizmfpTvRNjluERlrZqcERu+te73IuiCVWn 4vjozOryuit0OQHNn7T8JXiWYe05A/RgzYr4cmGO68oIdPRbN6WOZ43pnU3BwI7X3R5t R8hA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=c47qbrSLLIGvUFt5MXsNztJFq0VL1S5Chm3p/SDAdyg=; b=NgR6HuVD5JQIWRz3S1rG/O6RoGaKUvmre1M3IrosE6A0iG1UArf8jueIG16oG2S/Ld 2UExCBwkepJpYqaarqRgQcsopjzDKHnokxuobkM7RG+iJ8RlSmtf8kpeaGczSwZ+0S6z drsCFFgdD6PJncXbhTAxbZpF/AkJH2jBe0SoxsdSPuRmX2UDpDQMRZfwx5FFgXqG9r+Y 7tJyx+l7w7PF+EMI3V3mMSHWqZMnRyAheLnoJAjAKiSB/cvYflvUqRUISc4sn9235Bp3 5BRGDjxMxY/d1mx19hyEepl5ISiq1Ypr9QzK8Wx9beY3nZ96TXuwcFirQQl4qekMYtzO t62g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EqoIt1h2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d26si1418351edq.91.2019.10.09.09.15.58; Wed, 09 Oct 2019 09:16:23 -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=@google.com header.s=20161025 header.b=EqoIt1h2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731567AbfJIQNb (ORCPT + 99 others); Wed, 9 Oct 2019 12:13:31 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35832 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731426AbfJIQNa (ORCPT ); Wed, 9 Oct 2019 12:13:30 -0400 Received: by mail-pg1-f193.google.com with SMTP id p30so1720393pgl.2 for ; Wed, 09 Oct 2019 09:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=c47qbrSLLIGvUFt5MXsNztJFq0VL1S5Chm3p/SDAdyg=; b=EqoIt1h2PDX7vbfae8AJX5+I4HC6Gk8kl3tB8yyytrR6muGw6bUAKdUrwRTTRciyOc 5JAaJBNXH0afOQ/y1srk/nOrZYMA7SitU4EXessmNx2E2LvYGeN5YWB9E1g9VpvBi5Qg Heu2lsW9dReZSr+18lwS2AVry3IK5pN0cUYumY1zY7mwqxYHr9UgK7xjUBNnKH5tuCwV 7ot7Xfz95MR9DgD80amwXFTtohgg8bfdfCs3VC5YQFZ+sMkYFrLY6gFNgJLG1fb5FbW2 UR9kDDOg4Wlk7pTEMQYVbCJsPEoDiif+FVUVbUremIRYyZUBKrqtcDbjwYrHgj3CVNU1 yRuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=c47qbrSLLIGvUFt5MXsNztJFq0VL1S5Chm3p/SDAdyg=; b=jERYsn1OEJnxgz5NhmsUrLfy/WiIFroZk2RaSfXo4DaZk78dUhIRNLeJ5tsF7ij1o9 Ph6ge/VDTD50MamnV+4ayl/LlaSKGZv2r7AVrDhZNmKN4r1VzVzG+D9LxBAUDoKS0ewt 5L+liY/kQdSlHrYO0jWoQrhqC1ab5JbHIVSh7tzKryIii0LXW8wxYsfAtUxG17ed5+iN pbHdqxGj71omfsjA9v6q5EjwEo1C5JVgvGq6EFC9xcc2OA3KWq7Skbra7IUfWEML4+x8 TGniRBxwE292veHBtemg3H7LdiZlcZgw6F5s6cuIgYIWnUVEiZ9x6kyVGVtPcbZtYZSE 9wIQ== X-Gm-Message-State: APjAAAXOPrPwW/g94PT8qsWX6vR5guUr+7o1JGqrBp7cSek5uXcD6D/q 2l4Ae81rLm753ezjxZ4PQHY0MpjG0En+tP5aPG1qGhi4 X-Received: by 2002:a63:5a03:: with SMTP id o3mr5108717pgb.381.1570637609432; Wed, 09 Oct 2019 09:13:29 -0700 (PDT) MIME-Version: 1.0 References: <75f70e5e-9ece-d6d1-a2c5-2f3ad79b9ccb@web.de> <20191009110943.7ff3a08a@gandalf.local.home> In-Reply-To: <20191009110943.7ff3a08a@gandalf.local.home> From: Nick Desaulniers Date: Wed, 9 Oct 2019 09:13:17 -0700 Message-ID: Subject: Re: [PATCH] string.h: Mark 34 functions with __must_check To: Steven Rostedt Cc: Markus Elfring , kernel-janitors@vger.kernel.org, Alexander Shishkin , Andrew Morton , Andy Shevchenko , Joe Perches , Kees Cook , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 9, 2019 at 8:09 AM Steven Rostedt wrote: > > On Wed, 9 Oct 2019 14:14:28 +0200 > Markus Elfring wrote: > > > 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 fun= ction declarations. > > > > Add also corresponding parameter names for adjusted functions. > > > > Signed-off-by: Markus Elfring > > > > I'm curious. How many warnings showed up when you applied this patch? I got zero for x86_64 and arm64 defconfig builds of linux-next with this applied. Hopefully that's not an argument against the more liberal application of it? I view __must_check as a good thing, and encourage its application, unless someone can show that a certain function would be useful to call without it. --=20 Thanks, ~Nick Desaulniers