Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1221722ybp; Wed, 9 Oct 2019 10:34:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwuYxYGbS4MoDPYJzOME38tzExtP5ok/jXdc5FisQ1emebxvWhgyT7GKYcTIQDE9sdGwC/ X-Received: by 2002:a17:906:16d2:: with SMTP id t18mr3890344ejd.28.1570642477959; Wed, 09 Oct 2019 10:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570642477; cv=none; d=google.com; s=arc-20160816; b=dh2k24HTaopBQoua/OvFFbLrb+PByV91GVARUK1mAvkYhbO3rwrb0mv/YO/VDf8slk 9ts1XW5tGDU/XBuw4lmWIkJeT/EWaHGwTvA66cgmUfAGOtvIvdGLGLMkazBKpDCgU4jb yp2LquQ7gJJ33eqoyhEpDhsOxCL8h2/fwt/nY7ZachVkbQ8SHLu/laE1a7uc1kVjKb/S HiF0DdLKjH1dGHuTYTZEufgxLx6eSTy6PHhSlDsjCqz6sZKfc/J9oEwGQVrBa9htBdXP G1TUgm+f/vWPkGL5rk5txlYBC4MoIMbZnRBf14yPGC/m9A8OlsL6fzleC30wVES2TbHk uXxQ== 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=UjqBpI06iiBQsYq2V/w1u3B49phxB0GEC0jogQFNuAQ=; b=QtlYiuDWvg6/32Yktu187kCbRXANfpUMVsI7g80GcM/hu4zMVXgLeH8bh1zgm4SF0l FSASQhIhGA76SWeJBxXWk/MKLdy9uFen7/OgQjLhAZmQr3cTT8J5QJiUIKNL9WnidCGN 2bcWwNqbxCwveLufIVcNpa2y/ioUHfGxBjRE/xbEPRwboo/GFY8MWTXx5/iN6QQOap1t htHLiW9Qtmtzi8G7NGfE49kozuy20OO3+ivmd1VZzdhie4mRVS8YY5qowe7VJRRaWGKh JpbL5MLQsG1BQUiwr+aactWng005ezxmmJwAOLfs7ckjK8f6OudWz9cRan35OgTrDb4a OMow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VpbQlUwj; 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 c54si1713283edb.230.2019.10.09.10.34.14; Wed, 09 Oct 2019 10:34:37 -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=VpbQlUwj; 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 S1732158AbfJIReK (ORCPT + 99 others); Wed, 9 Oct 2019 13:34:10 -0400 Received: from mail-pf1-f177.google.com ([209.85.210.177]:37678 "EHLO mail-pf1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731919AbfJIReK (ORCPT ); Wed, 9 Oct 2019 13:34:10 -0400 Received: by mail-pf1-f177.google.com with SMTP id y5so2068352pfo.4 for ; Wed, 09 Oct 2019 10:34:09 -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=UjqBpI06iiBQsYq2V/w1u3B49phxB0GEC0jogQFNuAQ=; b=VpbQlUwjjLfHn3Nl+VhVs9C7cU3yzf7C0n4quuU8lytEoqyUJC0yVNtMeHEZxONwBG +eV+gN3RZwnzE7CxdlcBlpmJZraEgcFjy2kIGL6jfc/1KK+D8rNWCiTKduAB3N91NGvj cQhRgcL9EpWrytbjz1xyIeg327Oyr2RrgIQn04UvW3L7ffdwYj/uGlzs5ITF5lphYCOT 8RTQY1UykssE6uoOOc8lVJG8jdMk3eNpBL6a1Er12MGcEzMBrhbz/GG0unCR7nXMnCZs W/OHJSaChQcwRhiX4KQjVyBnvdmlpCn+i1k6ns8NjGzkY2C5ENY+sqH72upAzEDIjRkh uN4A== 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=UjqBpI06iiBQsYq2V/w1u3B49phxB0GEC0jogQFNuAQ=; b=KWOIsrLMFpafTKdZhJIgJ6SbAudPYs3gPJDUHXGvpIjTpwQ38gpoKVq5p6hud+qCA7 Cj4zpH+EtGwU1P4SWe7yPuEQOKn9Bgv52MY+Vb0MyiaStimvQGedhWOH9AKca/+iKEQt DIl9cGpWf4RplMCmHTSNQ7VrDjW5uuWs4xx3ByRM1YkK/ncUApGMjs3PZv5WeD4+wOBy W4qiTamhPsnvAcY9GDe3nUSXL/bJZyDAW2JtklrfbfiCQhuZbIBS1gwiLE061d04+jwH VqPQuRG1/V7d7sqhHXMTk0Z2/DO+cbzyDYff67453zHBiVVSSQiGCqQyB4uOrWu1evfD v8Sw== X-Gm-Message-State: APjAAAUhrtYsPnCy8imUCtLgNAGVOv7gHZvNY++9btTLTeylAnU6uFAk J7ydMZ0scElnyuauhgBKoBEhGEdztreRPSu4peGvpg== X-Received: by 2002:a63:5a03:: with SMTP id o3mr5500405pgb.381.1570642448938; Wed, 09 Oct 2019 10:34:08 -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: From: Nick Desaulniers Date: Wed, 9 Oct 2019 10:33:57 -0700 Message-ID: Subject: Re: string.h: Mark 34 functions with __must_check To: Markus Elfring Cc: Steven Rostedt , kernel-janitors@vger.kernel.org, Alexander Shishkin , Andrew Morton , Andy Shevchenko , Joe Perches , Kees Cook , LKML , Miguel Ojeda 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 10:04 AM Markus Elfring wrote: > > > Ah, granted, I was surprised, too. > > Thanks for this view. I mean, it's a good thing that we don't have any issues that this patch would catch today. Seems Steven and I were surprised (pessimistic?). > > > > Maybe would be helpful to mention that in the commit message. > > My Linux software build resources might be too limited to take > more system configuration variations safely into account > for this issue. That's understandable. I think if the patch bakes in linux-next, it might flush out some problematic cases in other ARCH's. > Would you like to achieve further checks here? I reviewed the functions here and believe the ones you added checks for all look good. I value Rasmus' feedback, so I'd like to hear what he thinks about my earlier comments. I have no comment if we should go further/annotate more, other than that that can be done in a follow up patch. Though Joe's comment on the relative order of where the annotation appears in the function declarations should be addressed in a V2 IMO. -- Thanks, ~Nick Desaulniers