From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 596142571B6 for ; Mon, 24 Feb 2025 19:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740424208; cv=none; b=b4msPS832n0wBBhiIpZoedP6/nZLpsddLL9W2RBbrCtQllJ9lzsN6oxvSsHhOSMUD+WEQf7yxoThiTjKQ8VFmOFm67yQC3sYqSyiGugd8eb2/lnW6LaK/gYXuRLnRIg9WlpCWaZJwdjiy4ghwGH/Uoly4HuXQOe0B5d3NiLOKBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740424208; c=relaxed/simple; bh=T7YErwBzM3Xp9awb651aOZgPiu2dAaV63y7n1aimj9I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DE2oX+BEcd5Xq+jdz3LN0KpYQBAmBlAnQJ7ZWxtj0XST2nbUxCqiJWZGvFiIbmIC/Lfb59YLd8MJgv4vEwdk+nxAoMLtHlvyZnNSsk8jxuEK7JRIucrHZUcB9YoL9n6qGBHGyJE/1aVpcQZiGXv0a7sMteHZRg7cOhbdqzkOFVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=C48qejSx; arc=none smtp.client-ip=209.85.166.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="C48qejSx" Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-3d284b9734fso42539695ab.2 for ; Mon, 24 Feb 2025 11:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1740424205; x=1741029005; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PqbHB05B4SvIPHaJMOkpStsDUjppa28qG+czwoXrbKg=; b=C48qejSxH6IF1Ow052MGWOqndOtse36ibHm7CKPnPRydPSBfLJqUd2e3PHYuK1NO2U xtiPFryTzdZ8XvwuJ3y99oMhuhGExvVdNpmgJkSyI5RJ4Db2pAW8JSFy0xNGQcIPCdyv sX5LXbJ+Q0VaNEGfkbxP5GYUk0ma08qoMoi2Jg3gQVkQ5CXPzWEVx3Uxq4qXRx3xQSIg 1hvk1BLvcF7FHR7rOfCi+MMtwa0l18GwDe8fZb3MIXCTjNHzya2mDj1cBxXHOmkDeld6 N4jlS/BHA9NmOYYjTHDcEqrfKVQHWOluzIiVSJMKPO9dbWnIca0BEW+5HYNlKmywn3tZ ZYww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740424205; x=1741029005; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PqbHB05B4SvIPHaJMOkpStsDUjppa28qG+czwoXrbKg=; b=lN/h89vGenQQmzPO64blzk9ckEprMUwlU183X03cYguqza8P+nbxeYpCHtBmVQ8oKo wk+5ndyHriEgfGtxKIR/Me5grMvh8mwwtNyH5qx3kS1Jt8qffWBHDajNZ0t2VS3KgKuC uZv/nX/cxVZ73F0NA/DKIgP/VYAUB5RfPOKXn0LZpNq178s/crj5Jdk7Vc/NpngmtID/ CinI+H+gIZQJIQ2sBEXOFD2pRJMWouyoPQK+xMlcNAnt9qooeR3wnSPH2d47DNCLiXYu hmcD4BjMKMN43nDy8FeT9CpAL6JhZWSIKPzIOq5GiLLI0jM0zEQUB3eWivuipSZSQu2k OScg== X-Forwarded-Encrypted: i=1; AJvYcCWflwbT5OC3vAmDyU4Hp3sEXvam3hi05hgod0iy/wkThLp7u2Gmd1/FQmOUbShZwCYiIhphY2gRuzgJhvo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/x5k42GsGL9ClnjB3W0dKmHJup6+7Azjv1oiYMbcJV9JVqYBz LDXYKmZKgopx6BkB0Es64/DmKP/MJpmEUvLExssZdPplKsHQCWMQNjuCoS5otJY= X-Gm-Gg: ASbGncvSaQkMnA0XRYbdfX3SNjLd7pDArOJCUPBJoDI3xHgdWNIApwzaYdjm6SO0Bol ARzOXk5RG93IL3GpA7yDgL45vPyuLUU9zo4Tu7dQQRnZtqaI2Icd0wCRqxYGXrhtwBN6vvWkuVz 2u81F8kdCtd0x8YWNCjqienB5+IiW9e17pDGWk8TbxAre8EFTosiUIL4lnFLquJQCRpHG9koERD LqT7a6JXCYQWXE/+n3/uDm7YNgrjW2d2XR/u/nVsZIKTT1R8jWZJCIy1vDiekQcDQ6PFG5ytA+m ioNh+67VgHOpQvMbO+Rj+IA= X-Google-Smtp-Source: AGHT+IE9yRT47uLO/qnZ8m+KBTEjrY8OpDaMFUTbEWKNyPYD36u9FByoFodrZPa/f5LtblX40YcluQ== X-Received: by 2002:a05:6e02:20ca:b0:3d2:ae4f:fa12 with SMTP id e9e14a558f8ab-3d2caf01848mr117386215ab.15.1740424205319; Mon, 24 Feb 2025 11:10:05 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f0475134c2sm25231173.91.2025.02.24.11.10.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2025 11:10:04 -0800 (PST) Message-ID: <2f7a0d65-afc2-4592-935a-30cc324104c6@kernel.dk> Date: Mon, 24 Feb 2025 12:10:03 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] io_uring/waitid: remove #ifdef CONFIG_COMPAT To: Pavel Begunkov , Caleb Sander Mateos Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250224172337.2009871-1-csander@purestorage.com> <91c200cd-2b2d-4756-b641-aa1bd4ec9796@gmail.com> From: Jens Axboe Content-Language: en-US In-Reply-To: <91c200cd-2b2d-4756-b641-aa1bd4ec9796@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/24/25 12:10 PM, Pavel Begunkov wrote: > On 2/24/25 17:55, Jens Axboe wrote: >> On 2/24/25 10:53 AM, Caleb Sander Mateos wrote: >>> On Mon, Feb 24, 2025 at 9:44?AM Jens Axboe wrote: >>>> >>>> On 2/24/25 10:23 AM, Caleb Sander Mateos wrote: >>>>> io_is_compat() is already defined to return false if CONFIG_COMPAT is >>>>> disabled. So remove the additional #ifdef CONFIG_COMPAT guards. Let the >>>>> compiler optimize out the dead code when CONFIG_COMPAT is disabled. >>>> >>>> Would you mind if I fold this into Pavel's patch? I can keep it >>>> standalone too, just let me know. >>> >>> Fine by me, though I thought Pavel was suggesting keeping it separate: >>> https://lore.kernel.org/io-uring/da109d01-7aab-4205-bbb1-f5f1387f1847@gmail.com/T/#u >> >> I'm reading it as he has other stuff that will go on top. I don't see >> any reason to double stage this part, might as well remove the >> CONFIG dependency at the same time, if it's doable. >> >> Pavel? > > I'm not sure why you'd want that, but I don't mind Just because it imho should've been in the initial commit, so I'd consider it more of a fixup commit. But if you're fine with it, I'll fold it in with a note. -- Jens Axboe