Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp622175ybe; Thu, 5 Sep 2019 03:21:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6p3wL0xNgDupwSZ1EfDTJnI8rrNKTPrHBTwwJs6FljUdr7qOj0snX2qQgvX/P5crm5dbe X-Received: by 2002:a17:902:8690:: with SMTP id g16mr2614541plo.282.1567678867189; Thu, 05 Sep 2019 03:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567678867; cv=none; d=google.com; s=arc-20160816; b=K5do/n7nxQ6wryX5kCuR+9ll6m63lQOHiHJxubjXaE4uKDHPjLw5il1zB0z2JACCJ3 iCScFRJKU9NLfMtkGzWMBx8v5yqDkBjAz3ms+sE/pZbjEzdDt5nZNE6em7PwmGnHRTDX 6X7QJX10LuQ5lxaJ5oX7Ofo8Zzi8wjem+ZgSlIPZGXPeswgY44QPmjIWx19Qt6wg3JtQ BNWvM2GCNobFsnI98AAiDI1v9YrDuy9sDbd8aQTN4cX9sbj+o5t2UHvp9NCW63e3iJF7 jIVlJvBVdwgzb1pGmyfKh7TEB7NhAZUcqFKceju30qgRcqevI6ZnXCqcAgHjWil00tf3 CZmA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Pd2UPdvvD+h9euSH/b2Ha6i1J1cxWWmD8DxQgZdlMow=; b=qki8uxhryNgUYQlanTgZaFcrCIglw9dN/atgVRBnI8/U0dtD6f94FxqD6l0QsfCNAE 9ZJb+o+c6cYTuIBzeGHzyisSAt9Ur+u3T1AWAVasKkyEl1fvrNqI+1q24QkxHjG23JOz Ln2efELvE12SRRjGY4v0hw89ZW0H48ZOcBKcQMmyz9PIZHHAPf2ixLrVeSZZhYfoQylU 38fcUR+zQE+ZEDSEudtGzy6kDv7+Z3UcAetG6eTsE11O4gn08rzuL5NWxe4+i+m9VrOq /5q9hDHUy8usjyL/8ThgpDiQM2wP8eHGW+9QXPCE91mZEuQ3Zb5DnVJPnO4V9jOnerqK DtMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Vfqvh8VB; 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 v185si1396276pgd.340.2019.09.05.03.20.49; Thu, 05 Sep 2019 03:21:07 -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=@rasmusvillemoes.dk header.s=google header.b=Vfqvh8VB; 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 S2387446AbfIEJ2x (ORCPT + 99 others); Thu, 5 Sep 2019 05:28:53 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45004 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731058AbfIEJ2x (ORCPT ); Thu, 5 Sep 2019 05:28:53 -0400 Received: by mail-lj1-f193.google.com with SMTP id u14so1660437ljj.11 for ; Thu, 05 Sep 2019 02:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Pd2UPdvvD+h9euSH/b2Ha6i1J1cxWWmD8DxQgZdlMow=; b=Vfqvh8VB+TQCr/1YAAh44tR0CTOoHwLGtsFVHlH5469opXykcUm4yQoii3AHfUtcMO 7KE9sdAXgWDrJg65gILD23+hUkm8AqoRtjTlTgiz8aw/1ni5z0aI/5f8CHn25HG/C23N msR2psKpN77/WoO/4RD5cdMuV4Bs0MHiN+NrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Pd2UPdvvD+h9euSH/b2Ha6i1J1cxWWmD8DxQgZdlMow=; b=MrSogpwK3YGd9tzq6LTGlMK9XWGATmk+4SpWiy+z9nYrM9dxXewQU2Zk3q62rUdLf2 cwDt85B/oCRD7lGgtWllIj7x2U6RkQQlBizPMw86iAdKADPIDLFaJMUkunPiQKb9yo6N +NVnYcqZsXW+6QrwqzCwGn9KbtbVdkdq5OkMQssyLfXXsGVMJRWsZUydKAjud/gQ09UE +k1z/cTmMp4xGIvN/JR+DQhhOyupJC6qcrn+pSLuMqZsev1nUWNIsNRyS3H6cETFH3ze TfCe/EM5SiTYhZV0h1bbdbhFze9gjNltB8IUqVx1Q/8B6sfSU0dL7e4ifniLIwYn9tsq eJqg== X-Gm-Message-State: APjAAAX0Omh/usCoZvok1osNArXDA30hY+Ldj5KXZkd9mdOcdZGjLuHo Sp0sw10YjrAL0ZFlDdykdQYDMw== X-Received: by 2002:a2e:8651:: with SMTP id i17mr1414517ljj.136.1567675731031; Thu, 05 Sep 2019 02:28:51 -0700 (PDT) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id p8sm274392ljn.93.2019.09.05.02.28.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 02:28:50 -0700 (PDT) Subject: Re: [PATCH v2 2/6] lib/zstd/mem.h: replace __inline by inline To: Miguel Ojeda , Nick Desaulniers Cc: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Joe Perches References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-3-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: Date: Thu, 5 Sep 2019 11:28:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/2019 02.07, Miguel Ojeda wrote: > 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). Well, I agree in principle, but was trying to keep this minimal. FTR, if anything, I think the __attribute__((unused)) should simply be removed since it's implied by our (re)definition of inline/__inline/__inline__. Rasmus