Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp158856ybe; Wed, 4 Sep 2019 17:09:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzU+HfgzAjBMnLSONcpNFhnvvgEMu489rKJNZuOrJ53rHcrqr4pP+Ccz1Y72Zc/4HivhXhV X-Received: by 2002:a63:d615:: with SMTP id q21mr639533pgg.296.1567642178147; Wed, 04 Sep 2019 17:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567642178; cv=none; d=google.com; s=arc-20160816; b=Bjy6s+9G5RSZ0paU7R/jtNeHMjMxsbz8codW5NGgiozINCT7p38GZweGy5TPum+z10 +hzDBEvFNTwgzLZrEtSmmFWcj+qDguCQZMYoVBT9MfLHhoOpKZHR4A/5nW48ws9HfoIR ivdAN0/mboNh5V8I1vrlaBielbJawYnQVgY5vTHXwAaf2/WISQwGfFg5BdEXm98zYWHC VpG15Sl5e/azw1ajHBK1oRvqrQCizHNDuodrJM7QEC38l0boLOP6DlHg08u2H3dlR7e2 XNDQdT3Yxp3Dppqxfe2mylcqc02dHq9Ze9k7/g8huJgHbSymxkSyacHqNK8Um5Dzs0Fb 2kZQ== 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=zu7o2811sm/C6A/KNhYCc0bgcwAt8nC3g9vfQBeCxDc=; b=MrvGOj6MeUOoLk5ybJB6mpQDpCOa3MsJ1eckLxzaLCfpTCzmABJlHOWr33OxariVEn TiF4LfLwIejspJNXpDUyw1rCo2UCSfJiZ1eKNnBg4AqKea3FWehCwxswt32XEWyRzjtn bE400sB38sbbnEpkMNhYQ6uCPpK+cqjuwqlJ9cRQzm2Yic5QegNrO1Jh4wVVipie5pcv WEeMezVDO0F5kNXNp6rFACA3gKD+UNgHO1OZDiFgKr30r8ukRVoeKo13wCyodfmhnoU4 nMagcMbK4FR0jKmWY2ZSQcT5/UBAMFoTHHZ+04J56ThbDAue7f7/7zfDKITqdT+2COuU wRpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=krSe2nyN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s38si217875pgl.138.2019.09.04.17.09.21; Wed, 04 Sep 2019 17:09:38 -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=@gmail.com header.s=20161025 header.b=krSe2nyN; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729594AbfIEAIB (ORCPT + 99 others); Wed, 4 Sep 2019 20:08:01 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38649 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfIEAIB (ORCPT ); Wed, 4 Sep 2019 20:08:01 -0400 Received: by mail-lj1-f194.google.com with SMTP id y23so162398ljn.5 for ; Wed, 04 Sep 2019 17:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zu7o2811sm/C6A/KNhYCc0bgcwAt8nC3g9vfQBeCxDc=; b=krSe2nyNUUQ42yEqQuiQKbA059yid8WbOIANwsENlZMWXndknivxXzrg98reyBRJUV hpUoNg2NnmeOqg9ZRGsuRQCadxNODVU8w4xPvygITVO2JdAOWglH/AtkrBiRxUMFVal9 ZhebvNPPPQBnjKchG1YDL2JhwwSyYmYskdaqce6rnDdijto/M5W9iQ3pLhOHB5jlo0R2 yONuP2QhOeGZnUVJiAITYAixBGoNtaAbDGfOwPewDGBwHjLIn9I+BV0Lx9wrtmibyi97 UM+t/umTqDWRRho8tREbRaOtQgRx2JjMZ0vtEIyvGa2hPC4jQn8Kvrm59JCIitYFVNjg IcYQ== 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=zu7o2811sm/C6A/KNhYCc0bgcwAt8nC3g9vfQBeCxDc=; b=YHlDofiMsstycrrr57uVn2AVLrJQyfy5DrxxWl6QVojh1mGbvoUpCGG6b+ACTXs3RR J7xB7iRGqZ041ykUAryZdBVu0Qg+L6t/AtFf5QQfZ8Cxp9STn9oqAX/YVHfO7IAWnDrC aajXvIfe5NCjoMM3qVvy8zxMtNma12TFdHhkflPDbnPAvHH7/0hAXaT5N7/q84XxU5mT UW6L0ZQNUxFqwZcRd/IvZ4cVgbRR1j6WH0CBUWF8q9Jzv3Ynl7JlfG0NTK1/TbULKDHy QignhsbOG6GoqOLFIcvT8+dr+A13TgHLIQG4szHfFg8+UlaG20nj/yG5oCudhOYHDLYO 0DBA== X-Gm-Message-State: APjAAAVFK5T0w8c6/+nGFRmmg8K2o11EsrAMEAyd14l4QsgZFO7mGP7E VDBzBP/vFSZuRz43s20A/C8IGwj6bp3Wq5FZLpM= X-Received: by 2002:a2e:9555:: with SMTP id t21mr152882ljh.93.1567642079449; Wed, 04 Sep 2019 17:07:59 -0700 (PDT) MIME-Version: 1.0 References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-3-linux@rasmusvillemoes.dk> In-Reply-To: From: Miguel Ojeda Date: Thu, 5 Sep 2019 02:07:48 +0200 Message-ID: Subject: Re: [PATCH v2 2/6] lib/zstd/mem.h: replace __inline by inline To: Nick Desaulniers Cc: Rasmus Villemoes , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Joe Perches 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 Thu, Sep 5, 2019 at 2:00 AM Nick Desaulniers wrote: > > While you're here, would you mind replacing `__attribute__((unused))` > with `__unused`? I would consider "naked attributes" (haven't been > feature tested in include/linux/compiler_attributes.h and are verbose) > to be an antipattern. +1 We should aim to avoid them entirely where possible. We have __always_unused and __maybe_unused, please choose whatever fits best (both map to "unused", we don't have __unused). Cheers, Miguel