Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp740149rdb; Thu, 15 Feb 2024 14:07:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdY09UktaFQXOXJ6F7GwcgTKA+ZzSzPpByJGk01YQQWWfVvA2DrctbCEA/3JTYDUMNI7pj9/uTBZiI1batTwGKvV8hg3LA9jXFR/1THg== X-Google-Smtp-Source: AGHT+IH4DPbtIUDmM9LaVLPhWavT0jdjs490cimCuwCn1hw9pPIKU5b3/gBcBBWGW47clu7fP0f6 X-Received: by 2002:a05:620a:b4a:b0:787:2d2d:1791 with SMTP id x10-20020a05620a0b4a00b007872d2d1791mr3379877qkg.10.1708034834134; Thu, 15 Feb 2024 14:07:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708034834; cv=pass; d=google.com; s=arc-20160816; b=H/2oZ1weu4Yug2OH7mi5eAOoeQt1HeXw/0xy8kbprZmdv1AzNDUCNImFXO/Eta/kz+ GcWHnlOVWbxjBvOEE9AQTCdvoInG7cIS19KqOhHCdERFCcT1w7gciml1AP2ccnfHtNy5 7XwjKhunRcfKJLZZO88tL64jopONJCUDxVIfaGmAdlxUpw8/0/LsqmF7GisPOV8P5Fuy HFm/fMb9Wea0m/FRF44ZyNSfqkHbpplrbf8Z7qTwwisMTJLJe9V28RTGjnvbb/r4YoHG myvipGbD6upVlkuWySB95ZtaPxknQC9xHrnR7sE3IyGRsHS5kyLMhj9cssz/n4luca6z oi0g== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=rNJ77F8I0NF9204ZdxJFeK1zQyDj1CvjOSW+zdx7cyY=; fh=2z7aQYWqJs6OSMCGmxvCVgFA5ceh7xl3j1g9gi1kQPU=; b=gEBcMTDSmRo2SKJb/hx0fVe8HCApYlOOQvur6BYuFT+KfF4OpG4cNziMXIw1UKn9ef rVDc3CSgh6AB8gojiKinV3Ut6L3ZvmCJZmiEaA+wKQBmNCWxpS2EM5CDGurCuTi8O8Cn JtKG62CiTqhedycuOqnGdGVVfwerMwo/89mFhjweF8fGhgcwDRmi8+j0CghxN25xg5hU kzrnPvzNCOKwVQ8TKkCZagTniR2tdN+FxnN0heMGLfq0/3C8mZKd3wF6lHVBT7Dfua+l ISVTeErHBXIAsVI8Dlfv0Z7bezQhvhQgAdecLL8bDWu5pU5/PxsY7gIOJB6qhGsQxogM zBxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="YmmKduh/"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-67732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67732-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id po7-20020a05620a384700b007871d87a992si2344922qkn.690.2024.02.15.14.07.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:07:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="YmmKduh/"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-67732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67732-linux.lists.archive=gmail.com@vger.kernel.org" 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 DD6A21C2031E for ; Thu, 15 Feb 2024 22:07:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCFCC145323; Thu, 15 Feb 2024 22:07:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="YmmKduh/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E48E413DBB3 for ; Thu, 15 Feb 2024 22:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034826; cv=none; b=H9huENDaFat3CJwVHE3VoucysEa5+fnRUVf9qmUVRaT0ULTvHg2Lu8tJl8IedGMRgPYhQZj5SugYb9opUGcJDXOB3l1IE/tUBuxLaRXtwAuUQkN6+IowEWZiOyaWxSR2v3PtySujW9wjdNSvk6n1Ja4A8mgaIME1+zaCs2mEiLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708034826; c=relaxed/simple; bh=Y53d7Cs+dFgmuD6d4R+/d5q9x29NLpaF6Bm05Sju5pc=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=YlFQCsvp+sp0OcTYtmP+w+L9d/YfhKJur3Mi5uCH5U+5qFIXeAUvCh/4KXuKLh2cgeGdfg0aQ2JjA60cOugVFc19KvNMF7ytjWXXC8wiH8WKeul0qtKS/gY1+63Vu392wN69/Pt65c9vhvP4gjNipOY1Ao45BAfyJOPsmw0NM7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=YmmKduh/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FDDEC433F1; Thu, 15 Feb 2024 22:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1708034825; bh=Y53d7Cs+dFgmuD6d4R+/d5q9x29NLpaF6Bm05Sju5pc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YmmKduh/+Pp+xpF+vwu/CkV1ZFMf9tPXv5xyGleKwGJwIA+eCbwj6m51PeeWGePAP H4UP1S2q+TeC4VQDYx/hqTmIfEPobddtdzo7AU5+0splHUaWetNGEnyWcTzAxpJCr+ 9ZctyAAWG2sl1JlowDfJY0+IrCAbX2L8PkcFn/bQ= Date: Thu, 15 Feb 2024 14:07:04 -0800 From: Andrew Morton To: Yueh-Shun Li Cc: Mark Brown , Andy Shevchenko , Herve Codina , Christophe Leroy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] minmax: substitute local variables using __UNIQUE_ID() Message-Id: <20240215140704.7989cc915a8f92a6358e7455@linux-foundation.org> In-Reply-To: <20240215185820.2285834-1-shamrocklee@posteo.net> References: <20240215185820.2285834-1-shamrocklee@posteo.net> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 15 Feb 2024 18:58:15 +0000 Yueh-Shun Li wrote: > Substitute identifier names of local variables used in macro > definitions inside minmax.h with those generated by __UNIQUE_ID(prefix) > to eliminate passible naming collisions. > > Identifier names like __x, __y and __tmp are everywhere inside the > kernel source. This patch ensures that macros provided by minmax.h > will work even when identifiers of these names appear in the expanded > input arguments. Makes sense I guess. However I do wonder how far this goes: # grep typeof include/linux/*.h | wc -l 313 Many of these are locals being defined within macros. Do they all need changing? If so, do we really want to implement this fix for what has always been, to my knowledge, a non-problem?