Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp345506lqr; Wed, 5 Jun 2024 07:48:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCz779pemes3SIQ/46lseUyI3PSgkrvdpToB4rjo+0EdjDyci8BJhmKmRml48r45GmRS2q0hwQaaU2/ffXjujuNCkBkQPhtG49bJd5Yw== X-Google-Smtp-Source: AGHT+IF7gb4HVrOzDSQCyizYxCLthGYhSD+66g9RPXNpZ50Jw77EgX+h6WbpTr+uEntZ393zKUg+ X-Received: by 2002:a05:6358:c126:b0:189:8b22:b95 with SMTP id e5c5f4694b2df-19c6ca138a7mr229995955d.29.1717598889032; Wed, 05 Jun 2024 07:48:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717598888; cv=pass; d=google.com; s=arc-20160816; b=vAo0Ss/DS50FjZj6cHZm+HRhIB9NfGPLpMgURKcTwHTblmj1Pdflu8mOlyoLSOQzvS wK2Ov/A/j9FnyFJQpEF1jHf0+uNrlRLn8B4xqm0VuwZ2klDwlWblcjuRfe1WekdE65v6 Tqhkr4dIAesgbnYd/SNnFtFeqmKmbZq1vZDRXZvMDAr1aelKvXTUKTJWpRO6pqtnCzxE bU5HGkovOIlwX0ycrWIZpJfwRwNWOT2WXG8Inafq6zsD3/MUBD7xny/n9TPbUAzuva/a Pwg51jCIgISWZfiXVr0XNORQ24Te+GO6K37zVSLfvoT8dQZc+w0ZMr33DpNBID/9josX BAZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yHugVKhDEFMDE/eZEfLIBc5qQ57hrk9iNIoSwhUNJLk=; fh=FhGHAdDDv9Ih0iN+l7qt3ZaweAbvwxqhntL1UHNEnfY=; b=i4BAhTcO/k0ABgZNvAkgBJ34K+//FDKkzQcBDL7vW/2nFFEZ5kTomYSho3hAd78edh 51x2QdbG9/3aWzztKaTTBe0KIQd0Aah3qye7gZ2uHalN7/xX5TEKmOT6M5wWEGsIyT1+ Bv47nY/AUwxp8IpsdH3tBN2jvZ3ZVlJ1CIK/w9aD17tYk4ni90bKCvtHw9oNKjCKDXPa BDheAygICHPodK9ImWPNdwaSOH+Y39/hOHklTEm3eFEHRSBF+1Q0pQK5/8LJBpW2ExJH H23LQA5KWd55YRRBr3mhvmOno3sSc2VNS6ew+B9eIS1xOBV8KGXQHiK7lu/QmxnzO0E1 A5bA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@prolan.hu header.s=mail header.b=tcfuyKhV; arc=pass (i=1 spf=pass spfdomain=prolan.hu dkim=pass dkdomain=prolan.hu dmarc=pass fromdomain=prolan.hu); spf=pass (google.com: domain of linux-kernel+bounces-202790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=prolan.hu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c47c9c48d9si3895384a12.300.2024.06.05.07.48.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202790-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=@prolan.hu header.s=mail header.b=tcfuyKhV; arc=pass (i=1 spf=pass spfdomain=prolan.hu dkim=pass dkdomain=prolan.hu dmarc=pass fromdomain=prolan.hu); spf=pass (google.com: domain of linux-kernel+bounces-202790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=prolan.hu 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 9CBD32888FD for ; Wed, 5 Jun 2024 14:48:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36AED381C7; Wed, 5 Jun 2024 14:47:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=prolan.hu header.i=@prolan.hu header.b="tcfuyKhV" Received: from fw2.prolan.hu (fw2.prolan.hu [193.68.50.107]) (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 4296A125BA; Wed, 5 Jun 2024 14:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.68.50.107 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598855; cv=none; b=fK2KJS/zGrEqHmY1xh2zP94EnBa5b5cjmdHYb2XBcSbgmFAVlFcca9/C1Y4eXw5fNoWOlt3LzgF3jL0VW1sX3s5QzbB0PW0aj0fmyXaHiAAeQBriX94o6J/fgN/dRB7yrgcH4vL8IBAvLHor5t72PKl2YU3KCs0uW8kWeTZA0Oo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717598855; c=relaxed/simple; bh=PXB2GCAHy4AXeES+/s42eyr/C+ckbgTV2vZzTuEb1/A=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=sQOQQ99byzt1HFGOgp/u4EFkX0RhheQQz8GxDgL6c007X8ABYAHIyQpC3cMeExK7k3/ay0C4N3e1q7l9XIUTblrL0177AfdRvancAXOZPwc36gfjVnrn86zwMqBYeJhcFKkJiQOyDnkBrHVUwkIjR8abzQNGkSFrHchxp0Rk9Eg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=prolan.hu; spf=pass smtp.mailfrom=prolan.hu; dkim=pass (4096-bit key) header.d=prolan.hu header.i=@prolan.hu header.b=tcfuyKhV; arc=none smtp.client-ip=193.68.50.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=prolan.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=prolan.hu Received: from proxmox-mailgw.intranet.prolan.hu (localhost.localdomain [127.0.0.1]) by proxmox-mailgw.intranet.prolan.hu (Proxmox) with ESMTP id E87A5A0790; Wed, 5 Jun 2024 16:47:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prolan.hu; h=cc :cc:content-transfer-encoding:content-type:content-type:date :from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=mail; bh=yHugVKhDEFMDE/eZEfLI Bc5qQ57hrk9iNIoSwhUNJLk=; b=tcfuyKhVcRguuQNo46SAlaD0FlIQvRDrF7ZK vIFiROmjYHioynBcUn9Cfy07HvZf/457e1G/sky+RcyneEqP76d0oGDE9qjmC47/ Rokdx6uAahKDAjhnFPbxXyJO11FGRElI+p7UFaw1GX4rsvqTkzIVlJmGynOTn/kp q6Mn4e5puJtbfcgH+N3NC1apXtbrU94OQhlGxOw4aKUf035bgdO0bYR60VwjqJuC kBh9VdVCVt+RF6FJO8ObX6pwDWJqnmHcvrqmBdnE7ETp2zbD+TXXJFECrCqt4g0Q BddyZyfT0Xs5JgIsGSOzKIxKmjPl3nXWv30fM4SbVgLpj29AKnGx+Gz7bRIlzEl+ yG7UDiyHzjD6rhOMXcOeZp6aMkCjM2hNhkBpySLcbSrqLo59oHh27C3K3O7dV4S+ ew/YM5ZpzyE/ad6tlY+og8qBLZlVDleSjeBA25vZrWkw1IQFTNQYicmsHxum4I3w eT4fEE/zfIGZZ6VIVc+rwhJGHtGe93ujoWvBsT0Jvra/QlvJd81YQaqadcX0X3BA gsaLJV3tdfiereYCQG/acn5NvfvZEj1MDnofbamKcHcqCheAAK4nV3O4kurBB8d4 FhTKt8Iy/BtkU9eeZFMFjHre41XVicR7anoPEn584rGcX97v+XPLldA1FcU5Lczo yDzFzxk= Message-ID: <52b9e3f4-8dd4-4696-9a47-0dc4eb59c013@prolan.hu> Date: Wed, 5 Jun 2024 16:47:27 +0200 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: [RFC PATCH 2/2] net: include: mii: Refactor: Use BIT() for ADVERTISE_* bits To: Vladimir Oltean CC: , , , Andrew Lunn , Heiner Kallweit , Russell King References: <20240605121648.69779-1-csokas.bence@prolan.hu> <20240605121648.69779-1-csokas.bence@prolan.hu> <20240605121648.69779-2-csokas.bence@prolan.hu> <20240605121648.69779-2-csokas.bence@prolan.hu> <20240605141342.262wgddrf4xjbbeu@skbuf> Content-Language: en-US From: =?UTF-8?B?Q3PDs2vDoXMgQmVuY2U=?= In-Reply-To: <20240605141342.262wgddrf4xjbbeu@skbuf> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: ATLAS.intranet.prolan.hu (10.254.0.229) To ATLAS.intranet.prolan.hu (10.254.0.229) X-EsetResult: clean, is OK X-EsetId: 37303A2945A12957627661 Hi! On 6/5/24 16:13, Vladimir Oltean wrote: > On Wed, Jun 05, 2024 at 02:16:49PM +0200, Csókás, Bence wrote: >> Replace hex values with BIT() and GENMASK() for readability >> >> Cc: trivial@kernel.org >> >> Signed-off-by: "Csókás, Bence" >> --- > > You can't use BIT() and GENMASK() in headers exported to user space. > > I mean you can, but the BIT() and GENMASK() macros themselves aren't > exported to user space, and you would break any application which used > values dependent on them. > I thought the vDSO headers (which currently hold the definition for `BIT()`) *are* exported. Though `GENMASK()`, and the headers which would normally include vdso/bits.h, might not be... But then again, is uapi/linux/mii.h itself even exported? And if so, why aren't these macros? Is there any reason _not_ to export the entire linux/bits.h? Bence