Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp196785lqh; Wed, 27 Mar 2024 21:22:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwUMRXpWoOELDJS028CxUmZzRQy2gMnvSe1DAQWwgeXn8506EZeCcig7KxWXVFW2P4rQ50Q4FhgpCvlLnS17uwVpFNYcbSxQhPVU1q5A== X-Google-Smtp-Source: AGHT+IEwO0PaReBKcQSxJOvxPTRsad+lsZjUBUWnBrbAphL5i34ZgOipLmpOhKehyRieD7RmIXZL X-Received: by 2002:a05:620a:159a:b0:78a:280a:711a with SMTP id d26-20020a05620a159a00b0078a280a711amr1506141qkk.76.1711599755209; Wed, 27 Mar 2024 21:22:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711599755; cv=pass; d=google.com; s=arc-20160816; b=y/0xl8PkPXLmFFAifBux6u/jlurustmRbGLqjB7i7WxHTkW6GsmHMqHhgxLR4tG8f8 w5LJTtk72MnJYKojlIoQe0HpK54oGSBiWiCnY6jSrfWH8N0dVJOtI48TTicmNLiLU+gT sqr77vK6YAmwnonXpzwiEyL+KG/6xyXqIciNymfHksF1Vwg/4sxiiHYRQjOAbTq+gw5W BTgVIY6/xKVpXkZBU00LZ2ZMkB5C3vTan7nYYzyw1VWleWbD1NdNNj1lWeiwJm1NMiKP 17fly9GtaZ1fqlEeYXur0wX5oKguNyqA9GJdPqMwrNhn2D4mJr8Vdpscr+BpMqglduXx MSMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Z0+XG9kxnjTaWBVgFwj0PcuoUonk1b0BDImgIwR/heI=; fh=0AteI6MqzxhepXfPb+rz69UqFkMpHpRZEYa4SRU1gJ0=; b=RNCFpVBgLdldp4GP6Og6oFo8bRxQChjjAnN6CyPSTcmnBoGn51qups8KvNGB82nmUT XU27hvZCsn8VaA/KccYHPgZ0Bs3O7X3mGmYgFst2wc4El1xmATTscMKWoPGcAPvQFXyv hhsZpYOZU8UyYot0E/KXKjEPNyK8UtrzyYhxk4ymu1TYykfzI2Km/EbpCl2O+Q0hkDNo 6MsD8raZTHu1ei8PTdbXM23M5O6bLo3fG+h08O3DvzFpbuGI064S1Ap49NBln8WoRSa3 A0oV5kOotrzpjEDe3mbQ0fFC9v6jnwKyzvGUExAqU8reg2UBxM6/ZYMFM14YpB/RzUe2 v4RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IojfJj1P; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wx41-20020a05620a5a6900b00789e375d1d9si659388qkn.359.2024.03.27.21.22.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 21:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IojfJj1P; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EA5E31C25DB0 for ; Thu, 28 Mar 2024 04:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C21D238393; Thu, 28 Mar 2024 04:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IojfJj1P" Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FAA81CFB6; Thu, 28 Mar 2024 04:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711599748; cv=none; b=DNI/4qMgVmaYndZdjpQ4EHUSzuae6XevRamDk4ekSMlZFeSVsLom8sgAYOt3l5sf/Vrsl8taQbMNYsB1mADdKqu0LnSD37+VHLx6/R7Zkc0HpeG6GfRJiCjSdIz9GjvWfjmUGM9EtN4Llcky9u/iUQclkoaoVWgys9MI3O4ZHPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711599748; c=relaxed/simple; bh=VrgOkQEO/xXHi0VxwHtrFcorWv5kNZWIJwBfQjY/Fnc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Dr9qSdTFU0JqIAJ2fI9p+n4iQ7/GboKPmADj4H7C2ab/Eqz1CbVs66AYcZvEtRCMdG/Fyc+yLn+YFqmcRmlFORlRqZJ4+G65XFs3aDZg8IPBy3v8LmZAdNmzwBFm8oawRgUPIXzeWttiZW+JJhSXgxHcoNJj6d1F+8Eln+5E+vM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IojfJj1P; arc=none smtp.client-ip=209.85.222.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f53.google.com with SMTP id a1e0cc1a2514c-7dec16fc4b2so124379241.3; Wed, 27 Mar 2024 21:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711599745; x=1712204545; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Z0+XG9kxnjTaWBVgFwj0PcuoUonk1b0BDImgIwR/heI=; b=IojfJj1PEiZhppq39Ql6DQlqYJ/CemE6bQp9+S7OAUSRrCWiip8ulUiTp154FyHbBO CRDrlWzIgnSOMaw+MNCeodn7Cx2Z1zRnuy32edj949BK7OA4UsaTpwQfjbntV+iklkY3 Vt06cli2glkkqcwY+ZL8aIkc9mer+5UW3WE44cfG/r4WVN4GQB0kvxAQVpUKETzi5aW4 tiMATaWcrCD/ZEEsBL1sFihobFOSQ5fvPGjc4KKHeLvwEcc7cXASQvFZm4/UalhjrrQW UWRGhDhE8ezgfCMikG+izLBqn3EqvFwFUkHZwrv24yUbk9DxQvYrzU4Q+0D4ipcWes4i RF3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711599745; x=1712204545; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z0+XG9kxnjTaWBVgFwj0PcuoUonk1b0BDImgIwR/heI=; b=mTZFwkIlf0WJYRcjg3EztWi3+F2xrUEgkiz9+FEVs+2O4k7LKXiwx1gew+lEcoH/Wi iYuEPebvryTtB/PuA6IrfjQGWOg73pZhnbJFIgtP1bG4/TsRvotw5xxW/3Rkulfo4gS2 y8Z3GxOLPVRo044m43giXe6Gy3gqI5RLkRewhHBEdnr3l/MAlMGR4quWbQb/+Dd50oF4 VvgrGfWPbetkzzWjagavNp7XmuqklMfmMYscxjR+86J9kiU/9WtsUwESwuH2A203MGhM Gf368rZBrAZC+765/16zT42aVFrnXeMjpOUMpfv1M/t2O1cR1KzoPDY2RV9HudaFrlOw zzpA== X-Forwarded-Encrypted: i=1; AJvYcCXHgBd4n0IMLvJ3yyvG73NNsEfClS02EF3oZGNQN9UlMXVHMYLyrp9QLbjKYaowoPAcT+sqfzQjmSSJ7wpqXIuW1b+/JVUPoZI2uqvt8zdYMViUniJjFMPcOTkOSl5piuYhiEh1lsoYOKATfhgrbfazBEo9lyyPFBWz3QEOCBu+z33D X-Gm-Message-State: AOJu0YzrZrvOjsP3okQUuNq5cq52OwvVBkO4MeFuvwDDZxCjdI8aFhku 8oyZmMTsI7Kqt2DAWkxtUqch8oKdZ4PmickgjCNmNBW2vrxQdopvaRLn/NijhAqY6j+X0iTtaeZ BggSMjYIxlxK5Ig+i9pNWs7oKYLk= X-Received: by 2002:a05:6102:464f:b0:478:2503:4071 with SMTP id jt15-20020a056102464f00b0047825034071mr2059462vsb.3.1711599745441; Wed, 27 Mar 2024 21:22:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240328022136.5789-1-21cnbao@gmail.com> In-Reply-To: <20240328022136.5789-1-21cnbao@gmail.com> From: Barry Song <21cnbao@gmail.com> Date: Thu, 28 Mar 2024 17:22:14 +1300 Message-ID: Subject: Re: [PATCH v4 0/2] codingstyle: avoid unused parameters for a function-like macro To: akpm@linux-foundation.org, mac.xxn@outlook.com Cc: apw@canonical.com, broonie@kernel.org, chenhuacai@loongson.cn, chris@zankel.net, corbet@lwn.net, dwaipayanray1@gmail.com, herbert@gondor.apana.org.au, joe@perches.com, linux-kernel@vger.kernel.org, linux@roeck-us.net, lukas.bulwahn@gmail.com, sfr@canb.auug.org.au, v-songbaohua@oppo.com, workflows@vger.kernel.org, linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 3:21=E2=80=AFPM Barry Song <21cnbao@gmail.com> wrot= e: > > From: Barry Song > > -v4: > * fix Xining's email address, s/ma.xxn@outlook.com/mac.xxn@outlook.com/g Hi Andrew, Apologies for the oversight. Could you please apply these two patches to re= place the ones in the mm-nonmm-unstable branch? We need to correct Xining's email address regardless. > * fix some false positives of checkpatch.pl > * downgrade from ERROR to WARN in checkpatch.pl > > Thanks for Joe's comments! > > -v3: > https://lore.kernel.org/all/20240322084937.66018-1-21cnbao@gmail.com/ > > A function-like macro could result in build warnings such as > "unused variable." This patchset updates the guidance to > recommend always using a static inline function instead > and also provides checkpatch support for this new rule. > > Barry Song (1): > Documentation: coding-style: ask function-like macros to evaluate > parameters > > Xining Xu (1): > scripts: checkpatch: check unused parameters for function-like macro > > Documentation/process/coding-style.rst | 16 ++++++++++++++ > scripts/checkpatch.pl | 30 ++++++++++++++++++++++++++ > 2 files changed, 46 insertions(+) > > -- > 2.34.1 > Thanks Barry