Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1150822ybp; Wed, 9 Oct 2019 09:30:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6TqtTIqwFBjiSP+V3BCJYo2SG/Gu9ivQvjDiJBqrG0+Prfm6P8+VQanXJFYvLQpY4KFQw X-Received: by 2002:aa7:c895:: with SMTP id p21mr3892388eds.38.1570638634998; Wed, 09 Oct 2019 09:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570638634; cv=none; d=google.com; s=arc-20160816; b=jAOrkYMysdzfbXgkHlJ0hrzZlVYfvauJ6qegFgdtYgVU20nlHMqwzrzB3DEhCm7uCK zn7M4KonN8kFHjMAtNqUfwP93WGd0LOvfNXT8fQwg1RoAJXZ/Uk/Qfm/dvyOU044/qJm 2vnnu1Sv+URW5svfvzxICAmoQNsOdAh//sgesXuctPlktvv3oRF8JEZogz0E81D9k1+Y goVYUYlCeRSvPl609I6TxytZGRA6d2dbc/6GyqmZBLAC3hnYtk7qYk0FLyfb/TQV6Ph1 gUweqeEEOd+kUbQpECKCUVD0r6Y84oMgS9Kkg1Vhy3ssJKidQfWvUhpCeuUvGaTpdUHC PRpA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=JyT98SmAYo06vWkHsYWLace9AlDpFq14sULlKjH28tw=; b=dH4NHROHCQfsDpp9S5tcVD66T5C5kwkb77Rfj8aleiwNvqv0x4TyaraflRyVPmZNUz EXbudjASCRxhMR2gLVajQn9k1/m2iZmz08IqieZEfCpryHbUqqe+EDplxUUUk2fODe06 6+qmMG+4jBo/c9foebx1cYteOTGKPChd2i6c1tT1BdXa9JS9uFDY0EtVRNzwKzy7esZE P7OKvMZrJmxb2GrF78uhzL9HAvHRXzqDkN4v/UTCF/oPQKOV6K0zyau8b4z0+DV98YtV FPkAVrF7ThOzllz+TS/bzdH211QyMQvM4cRXTs4/dcoDpUIuK4gUnzIMHFQxPpUL1UGp EIyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l45si1766715edc.185.2019.10.09.09.30.10; Wed, 09 Oct 2019 09:30:34 -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; 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 S1731801AbfJIQ1i convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Oct 2019 12:27:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:37008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbfJIQ1h (ORCPT ); Wed, 9 Oct 2019 12:27:37 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8C0820B7C; Wed, 9 Oct 2019 16:27:36 +0000 (UTC) Date: Wed, 9 Oct 2019 12:27:35 -0400 From: Steven Rostedt To: Nick Desaulniers Cc: Markus Elfring , kernel-janitors@vger.kernel.org, Alexander Shishkin , Andrew Morton , Andy Shevchenko , Joe Perches , Kees Cook , LKML Subject: Re: [PATCH] string.h: Mark 34 functions with __must_check Message-ID: <20191009122735.17415f9c@gandalf.local.home> In-Reply-To: References: <75f70e5e-9ece-d6d1-a2c5-2f3ad79b9ccb@web.de> <20191009110943.7ff3a08a@gandalf.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Oct 2019 09:13:17 -0700 Nick Desaulniers wrote: > 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 “__must_check” in the shown function 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. Not at all, I was just curious, because I would have expected patches to fix possible bugs with it. -- Steve