Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp983910lqp; Fri, 22 Mar 2024 01:50:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/9cJwRsnYTMiKAnDsu+PMqRHmzJq4zaYNtupGdwLUiSZosNAIS3nYmQgJ2JQVXdU6nrCAGtEw6mXxRF0HP1p9Z/q2fWUt1UanG6QWBA== X-Google-Smtp-Source: AGHT+IF9expeTXTLK7L9IhY5+0k0WxRNOFSJGN+DB94zWT3imYNk5okVcFk3djrYrLDylphyDBgc X-Received: by 2002:a05:6a00:13aa:b0:6e7:6bc4:ef8c with SMTP id t42-20020a056a0013aa00b006e76bc4ef8cmr2165405pfg.3.1711097418474; Fri, 22 Mar 2024 01:50:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711097418; cv=pass; d=google.com; s=arc-20160816; b=o/7O+CKc8JXlq1pmfw1cm8+Kbxe9mDhPnD2OFEv5o3Ey1q5OP8pY+vcKYuakdoXeLS GOnVnO6FRRlyJ22lypmjW0aU1St+i/AKRtLVPB/b4E+8gF3C0Nt1nCqHbyq928tdK6Bd eh3xbrOwCvcBvR73T3X9XRXeiKamSryc361RB/xzoNNoOdUYq75fmdvJQHKKagS7EYci dhxhBKmLCZwlBB9A14UFIKXARY4r4t3BkotloAiLHyMW2oGPmRA2P/BX1BNkdehzMEKe CjCXj8jXybdFICMnVPoIIOL71bYdgQrDDRB9iQ/sZ0JltFYxYMrWqj+e5qU6Dzat4Drx 5dXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=eSJRJbc7Ms8BxI4u7jirBbWm4aboNputwfC65mYN+TQ=; fh=KFHl+tASAGxnpT+8jO8ZyetE7ccowMXQrzOqY0iqSh8=; b=0pReK+dfI7T5W4QNVPlRp/5uCFsIQEKQvd+zDabHhuf4JOgKiWmITGjhUqzl/WNWFw ChYqtCwrY/mxVNzhjWvERIJryMxnRRqXdczFSz8hyntnoTj0vpWtVTaY0QE6CtDbry7r UErCkPD3tMstTppeGpu80JHqFtrQ24X3wbBwW0yAaNQHiRpd8h5AIQDCSZhrJLrgRekw m8UoYMtpVWnMGzHtISiddZflrVGppDThAT4GD0FHGTdQSfjwxxHGrOiGFgcqdlhAolOa fk4o7TqcW5GN2312ZLJ2H+t4U/55nIM4WNx5fFKZy+WnyQqi9ukGmWNguEnOcS5gg/H6 kf3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nNyPnFMS; 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-111159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 16-20020a056a00071000b006e6f9ce6388si1443393pfl.195.2024.03.22.01.50.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nNyPnFMS; 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-111159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111159-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B7F8286A0B for ; Fri, 22 Mar 2024 08:50:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78451179B8; Fri, 22 Mar 2024 08:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nNyPnFMS" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 4DC6518057; Fri, 22 Mar 2024 08:49:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711097395; cv=none; b=mbCpJ4Q9PnEdHdG+7f1UKhDdeEg0qRdJVgbBufCdMV2ZJAx82412VhJfcGqzrQY0KA4zp/xGBBxsey5RUmM1sLJf0SpuSLvPihalHuOG0EyrYEhxbWr/p8SkWK5nEmQncJIyZVigm41ozhpTqWUg6lpLP1S9U3eHnEOucWsuH1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711097395; c=relaxed/simple; bh=LUo7IYr04GBx667e4z19W63l1+ZSfrQTXBaKA7AYx3Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qMba2WGfQ3i0KFEpwCm1PHF7l5z5bGSEMpak4CxIOQ0XFyjso5x0kElnys/9GQWUVKlZqEbtgLnZL8lVFMCOg2XTioGu1pdAjSHDQC8kOdLVRtUS7ea4wBrnk/jepkn8jIyRCJcVUSudbWLebnn7Rq9zWHRXqyAk81f/TdIbq6o= 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=nNyPnFMS; arc=none smtp.client-ip=209.85.214.181 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-pl1-f181.google.com with SMTP id d9443c01a7336-1dddbe47ac1so19316985ad.1; Fri, 22 Mar 2024 01:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711097393; x=1711702193; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eSJRJbc7Ms8BxI4u7jirBbWm4aboNputwfC65mYN+TQ=; b=nNyPnFMScZ3Y/lrh9k/2d+Mlk2IGJP7Zl3lvMGKSJeFmNM4hPj/FjQ00vsYSTzWb8h 0+ceHT1IOTiiRRu3GNVwsMeZdsvz71aObg/NCN2R+BrH78OTDXZdMW8AknNkhkBHKVar CeogR9Yl1u4O9t7IFOwkGDbub26BGkUgTpvN/bAc4IUazmNgBJRDlh6VOC1BoMaDcR80 73SZXh9rsV94ifMaqLpymE/4Ua/4wDGBsqOYY8piCm1kabtjl7yWqf6ekTk2warrSP0Y CyThI+oihX1UWj6KhbuRqzPaGjRF8cGMorvNYmweXE2R40HqaJU4lZbw/MeghrK9g7iM hCyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711097393; x=1711702193; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eSJRJbc7Ms8BxI4u7jirBbWm4aboNputwfC65mYN+TQ=; b=gFBrZa1A4ZGey8EG2i1DcEyoN50H6ne6Ww5nT+KqSF10ZVI50MagSGeXu3W8cp+KlY ZxOSDBl0UcgkrteYIK3MwQM/clzQb4Dgc9+8/F1iOL5cB8HDKBQxtdQxcwOtTOg/mXwa tyo6giABj5MOq3d55TTIXR6QNZgt7MYbQqZdTdIEvHGDONn8RXFenHBzrT9a48NjmqV9 5fEelO5+MdSnMfsDCvmWCuFqIUHaVXWSC40FtV4hABfH+mY1kUq7OhMybD242Cw4siiT AkMSFCeNjMtsloxbVyNcXQQhMQLZfnpgs+9qwTyhq7YhKbrWuB2rMJjokMjMkR4yGo8I 4q8w== X-Forwarded-Encrypted: i=1; AJvYcCUEM3Pd7KDZUBi9DLbe07+MU4wu3TSuzIWgg0SmsQyVRd8Mvb+bNRzp+g6A0zjH5usaVK94GDW3xAt/aE0eSC0GkMEmnIdbNe7b78T93g3JPBSWoDLxUuFGJhBV55rT8TjAtgEU X-Gm-Message-State: AOJu0Yz4bKl6Fve20TNkzHRkm8ttA4t6ETaR4yHTlAipzf38J034IIwm 7yWLReQfEt0itqmS7yh97zqVoQc6vEIjZQx1AzP1o6nhLuEFo3UW X-Received: by 2002:a17:902:684e:b0:1dd:a03d:8d54 with SMTP id f14-20020a170902684e00b001dda03d8d54mr1670405pln.24.1711097393543; Fri, 22 Mar 2024 01:49:53 -0700 (PDT) Received: from localhost.localdomain ([2407:7000:8942:5500:aaa1:59ff:fe57:eb97]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001dd5a0a20d6sm1328165plf.287.2024.03.22.01.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:49:53 -0700 (PDT) From: Barry Song <21cnbao@gmail.com> To: corbet@lwn.net, workflows@vger.kernel.org, linux-doc@vger.kernel.org, apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com Cc: linux-kernel@vger.kernel.org, Barry Song Subject: [PATCH v3 0/2] codingstyle: avoid unused parameters for a function-like macro Date: Fri, 22 Mar 2024 21:49:35 +1300 Message-Id: <20240322084937.66018-1-21cnbao@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Barry Song 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 | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) -- 2.34.1