From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 766252571C7 for ; Thu, 16 Jul 2026 18:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784228390; cv=none; b=PVbRm+VitfWRCcD1geG+b4co+VBNH9hOTLaSpGfTYFHUty/bzzFrZfHu6nJDL0KlsV1ySGnpdp2meXDymvQOfEjrY76SAHr7yl+04AyFL2plOpP/gvCvSVLvvhf+RLLcrF6GJ8qUrpjwgsyrHSe7yLwe26FtYjUYf9XK0UcYx7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784228390; c=relaxed/simple; bh=+vx12DnbrH1jEO3hyC82AQB3qS5V7/xSoVL7LiHkQ68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t0Ms2gQYisb+pSyNOPRTeoKrCP90VKXdg5Dqq2Mcrh7DDO3UHSIgoi4uje52hPkZCnrmYPVJmZsXfCMirZF6fXCEMzU9zx7T8/mHtLBqYJSvXvQSmi/sYScDWi5L9i2K5bnY12ruqhLbQQCiFeiT1bPRJOEKJXnOLQFD/DCcVuw= 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=GeuEGCcQ; arc=none smtp.client-ip=209.85.218.42 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GeuEGCcQ" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-c160420289bso975773166b.0 for ; Thu, 16 Jul 2026 11:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784228386; x=1784833186; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=bpwBCMUqOktawB/a/lGWrgRdo+N7QGVrFJhgBZS8dP4=; b=GeuEGCcQH3ItJLJJTIj/+a1WALF+NjLPuhoIZJL8l5/Euwiksom+cCq6BnzZ+qP+Dw IOeN5tP5J4BLyEtQqRBr38NG8S7E35jnjjT/NU8xuJd9z80PraCDdlrB0w4CEdwYrSEJ Q7CpjyvH7ttp4Z2wm64U4i0+ghDUkhiyhHv+t9EnYsEywcjYug08ryPiqNsHt257pofb 1dU/9JxR+IQGaZUVxyMBejvvnyNKwnmhlFxk7MT7Vpnn+sNLaTI0f8CI0OBsR5pZBAGW UsElyW7awjPGXMSa1+2coHfDjunNo6gpqT8gZA3aqStcvcWzQ/Jo/WNUO2pjGN3iTNVF wQ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784228386; x=1784833186; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bpwBCMUqOktawB/a/lGWrgRdo+N7QGVrFJhgBZS8dP4=; b=p0gXo4CyS1C3UC7PrqBHxW19u+jzAcgGGy44K+EzyxT6pIZcMT0JMBcRC+0tP1zKQm 4oL65njmxEeHobYNB6G7ewWAhBcl0F4IMCaRs2nmYSQ4lUuRil87u9cHWfLPcjY2qh9a MhtlNpAL7GHIT1wcJCHxrH8biDRSgnq12eBm0qHne0oCK9sx4ny1E1nvhztb7cZkSEp+ 95wWU0SnUlbWTZQqlQ6n/m+qhM6e4p4ZzysjyhMfD9WbzIflwayc3G9qlO02kBjzlLQm S+R0mlbJDWBYG0vcSlc/tGNBbtpzrXr3ECrYYbKt5pHdBpvpfsPe4o3ZJ6SK/IDKZptt RVeQ== X-Forwarded-Encrypted: i=1; AHgh+RrjATxHHjQbv6OQOfLPq1EEa9UnbJmtmuoiq3pmMBvB3WBAYOrjNoQ5cvlYOsRlbGXDd1l4ciA/l1OEDw8=@vger.kernel.org X-Gm-Message-State: AOJu0YyIZ2zLuSCi0Ry3XO4q74GO94QNDUJ2ESJnXlik6ZkCb66XSu30 AHVFIpotIS70/90Hlt7Cx0N/jHD2vWbGbX8KqAuOQ9glLiuqAa3sX1xq X-Gm-Gg: AfdE7cmZ7ZzGrVjYPrtkuerFkQDDvBStyxlPU1qBFBYp4Z1QX8ZTn1DbUgk9f+q8/CM QozkhUvRqq3WlwpmG840gH75DcYgiZFM3qTTXVEOCN1D+3/0C9NcAEKOwHrjbKuxjAAlpcBMPAi SakVHOS30c2QIALXT+DYSFhjuryfpnC2RqNRde46deZ83rDC2b07r2oH/mf7Xn26cBJ0COy4mha Dhy60E6igISupYofuiX0eIBd2nhWfUcSXRW3L8EZhyFJSYE0fJt0yIb6gC21OdX88zn3+LZZiVV 9fjWGPipkQ39BanhuzOQt0zu7hLtBvFSH67a6iEGhPLQEuo321cdM6KteDbc5rDC+76gTM6ydiu 0q/tdrAdHY8T9EL6yPcPasm5jC7ngNKJOKWjEOJWSVpfWHVYt/QWJaRwGZi7S++0i+WHwBxng5W +0I2JhAJoe4GmPgd4H+B4eeYxPIOK+0cQNQjQOqbTEUF4RARCIsqgS65FCG+vf07E= X-Received: by 2002:a17:907:9485:b0:c16:5867:e098 with SMTP id a640c23a62f3a-c1667ad9fe4mr699209666b.40.1784228385516; Thu, 16 Jul 2026 11:59:45 -0700 (PDT) Received: from localhost (226.55.classcom.pl. [195.150.55.226]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1687126353sm269375566b.13.2026.07.16.11.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 11:59:44 -0700 (PDT) Date: Thu, 16 Jul 2026 21:00:13 +0200 From: Piotr Zarycki To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, vkuznets@redhat.com, shuah@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] selftests: add swap() macro to kselftest.h Message-ID: References: <20260528154003.3594107-1-piotr.zarycki@gmail.com> <20260625070914.2175124-1-piotr.zarycki@gmail.com> 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-Disposition: inline In-Reply-To: O Thu, Jul 09, 2026 at 07:55:10AM -0700, Sean Christopherson wrote: > On Thu, Jun 25, 2026, Piotr Zarycki wrote: > > Add swap() to tools/testing/selftests/kselftest.h with an #ifndef guard. > > > > Guard the local swap() definition in mm/uffd-stress.c with #ifndef to > > prevent a redefinition warning. > > > > Use swap() in hyperv_tlb_flush.c to replace the open-coded PTE swap and > > remove the TODO comment. > > > > Signed-off-by: Piotr Zarycki > > --- > > Changes in v3: > > - Add #ifndef guard to mm/uffd-stress.c to fix a redefinition warning; > > uffd-stress.c defines its own swap() without a guard, which conflicts > > when kselftest.h is included first via uffd-common.h. > > Why not explicitly include kselftest.h in mm/uffd-stress.c and drop uffd-stress.c's > version of swap()? Dropped the local definition entirely. Sending v4.