Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp324570lqr; Wed, 5 Jun 2024 07:13:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw9cmGOHerqFJ+lGNOImlRy85LBk2En6r4nPws+V5A5HhwDmL3J5OnOZfXtxUH5hOWvV+Xg3GiSwXd0pSgxgIOhsmaFgQRs9VMcA/VGg== X-Google-Smtp-Source: AGHT+IFgZU3YtjnKYenvjuv2wltYKr8vNLH3fUkzkWjPYLRg6yBJBCt2ZY9/CCkc7P1uSbL5B2pt X-Received: by 2002:a67:f813:0:b0:47e:2f4:d7db with SMTP id ada2fe7eead31-48c0488ca8dmr2942944137.15.1717596838569; Wed, 05 Jun 2024 07:13:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717596838; cv=pass; d=google.com; s=arc-20160816; b=oMy0a16TGF5AaPq6e0pbtUDsfvLHUa5Fkd8gSfluMUX9nLHKKYeoRi0Q8xDjknXoEC k4Xf3fd/D2od/ohqBfrx4G+oPMrYMxIquVyjrvl5IvyJR2de2nrF1iu1H2gKdQT8rsOw onwnyExlNDEw7Qk1Dm9pd8BFi5xhagA9IDYP5PL6Oc6KoIUA2Pm6C1pKwPvWzR66S9Pp zV8ie9RfMbIhnEF/vVAsdF07y2TThmy8FrxkYCYQdC2DdkBrB4e/+0vlQ2agK3kE1yP+ ixpAMtKrNMTrbsSZoVScGgAftlpUeKJqoz0Ig/Wv2h3MqMY4pYyk/TmhwYneQTLcspHq V/zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vbzuReACK7at884YBCFNwf/OFIdQJpCwqd1m+LraEcI=; fh=LEquoDQi6WB/t8URSESGEamiYRfN8uMUhhhp9ELYscc=; b=BnQr3ahaGnnATP+GvWreK/dVRPAmIafq0hbGEkFsReMaHdK0MiwR70wXsKcPuNz4cg qYkUD+8a9jjdT/nw7KDSzX1DV5I1lpTIVYY2nItaC6sgUMjBh/f8KxG8x7SozFYUy4jv QkeYgawYO47SPCxHljg79Lt9rBBVnwsEqH/SX/x+DBtmW0+9M/QGiBcne4vn8FjaOLHs aUXj9gc4Vj0Qg3IE6s5EC3cUVWyeLMBs5CvWlBK+k+O1B1SnY7W8TF8TpoAMs+PVWLFi bhhFn14pv5jrl2634wQaq7f4nbctGr9/1PgGXOeF3MalQzvkYEZbTERxmXY4AbMMijzI ytmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q4tISxFL; 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-202762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48bf51b3e4asi756365137.567.2024.06.05.07.13.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:13:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202762-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=@gmail.com header.s=20230601 header.b=Q4tISxFL; 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-202762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202762-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4AE6C1C2214E for ; Wed, 5 Jun 2024 14:13:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FFA918E1A; Wed, 5 Jun 2024 14:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q4tISxFL" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 C1B5015AF1; Wed, 5 Jun 2024 14:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596829; cv=none; b=rbmsAZIN31JV+ZTWzfy819Mehsz1iYOZT6h+hkHeNSfiWKmoiAqpEpPRCLXN30Six4LBzEQ52lXdkOh3tkg4rVu/tUXuCgE3dw+jsN6ZeMFJsfnWhnN6Uq0MMUl+RLWfUKGbNmgN70ZqNpYoPURJsEqjuOi/PQxWGuyMnvoo3rc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596829; c=relaxed/simple; bh=GHFmcIWwlPHBK7h/YNeH5HkMcMTK6uPyOkIxmyzATy8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nLsyNywU7mVpQh1MWeENgLPN5lxix1HTlV3QrzXGf1wZKN3llToA03OGTnioveCqANvZJZ+9Pn2YTvfq0BKPhwDMWfENEsHR6PK1NS1TSXM6n+OghY4Uk1knvCTd5Xv4RcBadIkF4gHx0cbwYRzpeVzPB9ZKzqM/z5vgDyJ0FRc= 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=Q4tISxFL; arc=none smtp.client-ip=209.85.208.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 Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-572c65cea55so1894815a12.0; Wed, 05 Jun 2024 07:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717596826; x=1718201626; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=vbzuReACK7at884YBCFNwf/OFIdQJpCwqd1m+LraEcI=; b=Q4tISxFLJ6hnBrmI8f8olJuWorxIrRPaX+gHMMXODuuGMG4ioMxv6AfbCn+HnV0NPC evvdx5dSEWfkipSzIfTH46FIn1DXsyOWYTtkTSnxYoko7pBdm5I5Xin4UZwV5lPI2wCO VKGix+A/GMJSISxf88/vQ5KX4ZSaWdpgFl2MwJ5gmALQc6zGOkidKbfrM4r3cNetJ7Xx CvaFPnjGut2GaaqoaICI9Udiqfbct5rq2OsgqORvpiszuZVbRotJbakKPIR6SEd7CkuY MuR+EnabnDJ/tMbbNd6h6iYYj+p0DP1GlHD1+Ov7PMCf4e2C62iHhRa8s6YcZdXydnlV 2xEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717596826; x=1718201626; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vbzuReACK7at884YBCFNwf/OFIdQJpCwqd1m+LraEcI=; b=xPDxuHQQoln9YcZZheD/qULJiv9wHR5lAH/1EU57NGVJ/w19uk3PYuQs1bA6iBk9OO e+mlmF8r2axPrX6M0ZQiWiePImDr0twPlb5HLuoHa7BrDPhjjNeNNdt1vLk/uaeDUy4+ 1ruXh/o1eARVtfzrorJZCZ/rkUrgr/wbJaEG1jYtUEJU0pzReYZL90CpEhvPZsnFtNxy QbsOdHN8UjE5t6wEXpvkjP5F0buPZgInuPGiPoaWEVx8Hsd/6NgamzdcsVgmt0qLosDE gwabK3B7gKHz4zqCmJoecqJ6+vSicUoTP4YWxNh3k+SL81UjuPko8X3aUPXUsDM4abBt dcuQ== X-Forwarded-Encrypted: i=1; AJvYcCWkt4qlYIHC/kkEjRcsBmnsotRc8jjRdVH6etgVB0pcK1PTy0HzoNeZrF/HaQC6iuc5hHpmCVjKhUN8HOcHFnLod2dJnlAbYUGmJ3ZN X-Gm-Message-State: AOJu0YweUI+vqDjPgL0cf9DEQFRGhZJvXhxwREtVni25DhAaMGIlbE7u 2LipAms9mLEOFtJo3xPEHWTMH56LApb61gPAXTyyjI1kBatxJCix X-Received: by 2002:a50:cd93:0:b0:572:2efe:4d14 with SMTP id 4fb4d7f45d1cf-57a8b6b88d1mr2061068a12.10.1717596825684; Wed, 05 Jun 2024 07:13:45 -0700 (PDT) Received: from skbuf ([188.25.55.166]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a95ce2825sm1251442a12.60.2024.06.05.07.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:13:44 -0700 (PDT) Date: Wed, 5 Jun 2024 17:13:42 +0300 From: Vladimir Oltean To: =?utf-8?B?Q3PDs2vDoXMs?= Bence Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, Andrew Lunn , Heiner Kallweit , Russell King Subject: Re: [RFC PATCH 2/2] net: include: mii: Refactor: Use BIT() for ADVERTISE_* bits Message-ID: <20240605141342.262wgddrf4xjbbeu@skbuf> 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> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240605121648.69779-2-csokas.bence@prolan.hu> <20240605121648.69779-2-csokas.bence@prolan.hu> 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.