Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1165477ybp; Wed, 9 Oct 2019 09:43:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqz86fkuIleUhhmviIwacaEpNPkbJLS9sFoOPYWBWrVyX1l30GFw23saLOhdHSeInT6ef+yx X-Received: by 2002:a50:935d:: with SMTP id n29mr3824615eda.167.1570639429583; Wed, 09 Oct 2019 09:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570639429; cv=none; d=google.com; s=arc-20160816; b=G/WOhH+ZP4l2ys56AEeN23R199z5V0VaoqI//hxdEGhCGS0Ts95ojPUKa5pmLKuro8 9ZKIrcfbM1uwkgZoR30mcwlXBZA+2ifsbMd1cSoSOSkLZ38L36uuqednrVIvkTELrt7y iFkq0rIeAYbpw2REqvACILy924MjeC2/jN7VAW3dAn1pKWVnK3t7DNfZum9oA7LJbPMn xEHw+6JLSNCJMnsF1vGulwE/jNurg5M9pnC5/JQEWwK0Bu7lkRoFFQV3gaEFTeXKssVC dPDaZ0rNHUHP2ITSyx+cznMVfRT3/ycYT0U/CYXwoFz5FsCaORU/fNjz62TbN8hm3p9Y FUpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4KCOuyU/ywH5UdEeKKy1ZD5cSa0qM6JRtRuTi6ZEGfg=; b=JBFC2+c43/SsAnT5iP9BQGOIJNfLPipdp3G7SOmYYqNCZnjL0zS/W9VZRdWwAUZVsf ChYX7GvFNKpmJH6Kc8/sKAEPuRAR5qSFg/syTYrYuDS5Zfe+Cc+XnJRV8MQPhAnjad/p syyMpVj0Bsc8HGPvQHb87tT1WhZJ7vjGGEzOLICNzRdCI52fEt5gUYIWFbwdJmfU3tvj ZFrUyHtA4Vbr0LRBndsSjAlIk7sg2d/CJ/IcJ11Orobhgw1NKEb/VLCJI+Z6eo8PYRSM y/wAWt1L8Xs+kWodD0TiwmmkALKYxG4RYneIEyfOVXU5qATgVHsHTTeaz8Hziuk6APZ4 ctVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KdRyUgsn; 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 jx20si1431777ejb.291.2019.10.09.09.43.24; Wed, 09 Oct 2019 09:43:49 -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=KdRyUgsn; 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 S1731452AbfJIQlM (ORCPT + 99 others); Wed, 9 Oct 2019 12:41:12 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40162 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731083AbfJIQlM (ORCPT ); Wed, 9 Oct 2019 12:41:12 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so1965079pfb.7 for ; Wed, 09 Oct 2019 09:41:12 -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; bh=4KCOuyU/ywH5UdEeKKy1ZD5cSa0qM6JRtRuTi6ZEGfg=; b=KdRyUgsnV+XebI3lT10g3MSaM0BW6c17+YU4pUx+2eA+C9am1YEdku6d6tBGCdXm2c W04Hb/MWT6rZjMR+dwzmQq1sDhw8PjMnfxOk6EG4alrLHwtojAXHHcvd1/2vZaNj1ikx 4lIXwa8qgSRdy9uDvik5vjDrWjfTTdwTGAmkqU1AGTC4I3a1alWEbZTXvqYuNB7MgXFh RyMjomorAY5pHNMW1A29VDRSLitZHRhdG0Fz7giZTJXeaiLPM8EHhjTh7a9sVdAkXwni +9xyhywhTJsFJEz/Ely4TDIoHVC0Us0NGQszz6LqNiaUU/Ulh03mZCkJGJkmBMElv0DZ l6aA== 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; bh=4KCOuyU/ywH5UdEeKKy1ZD5cSa0qM6JRtRuTi6ZEGfg=; b=slVITVD2CgBv9zw2ML7U4uCw3V6h5zqRsJJ9GOohtNIuMiZ/ybNrzqoqhfQQ8ZrOyD fv1YklLRvfsfRncJtf90WDF6dfm7Vl6T8DcErLm/vYX2/UKjkiYFMxpVUSVMSWvc860a kWh0OYtlwOE6B3+lweBH7r84nxqAiNiuRksd/KMpRMJKkRoXHSVQ+7PAKKQkfa3kZLVl Cet7KxqBgqF1rgHyK0rcWJjn4Eb1aMTLB3eEU3QkK6xvgmUpxcZer/N0o8NpoPswuF1r LI+REdxx0LlMSWsUAOY778czGwrJdvdNYGN9fwjNajVI+poScOiLD0DPxKYdb2IXKVwO a3pw== X-Gm-Message-State: APjAAAWmYbkbDIR8fQZYE9wKejuQvI6ErY7LIVq4EYkqsT4zY91sw1aK EzU6tjwnsjT38L3xQj7XhR0q4CthaX6tsKUhq12Efg== X-Received: by 2002:a65:464b:: with SMTP id k11mr5449394pgr.263.1570639271341; Wed, 09 Oct 2019 09:41:11 -0700 (PDT) MIME-Version: 1.0 References: <75f70e5e-9ece-d6d1-a2c5-2f3ad79b9ccb@web.de> <20191009110943.7ff3a08a@gandalf.local.home> <20191009122735.17415f9c@gandalf.local.home> In-Reply-To: <20191009122735.17415f9c@gandalf.local.home> From: Nick Desaulniers Date: Wed, 9 Oct 2019 09:40:59 -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" 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 9:27 AM Steven Rostedt wrote: > > On Wed, 9 Oct 2019 09:13:17 -0700 > Nick Desaulniers wrote: > > > On Wed, Oct 9, 2019 at 8:09 AM Steven Rostedt wrote: > > > > > > 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. Ah, granted, I was surprised, too. Maybe would be helpful to mention that in the commit message. -- Thanks, ~Nick Desaulniers