Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4077079pxb; Mon, 4 Oct 2021 16:57:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzoXFb5LAlPJcgxXO9Ti2gm5bjlRNcMtHXLE5rBtyo8QV16wEM6ZtW1mV+mmxacc8vSzAF X-Received: by 2002:a17:906:d196:: with SMTP id c22mr20312197ejz.231.1633391858858; Mon, 04 Oct 2021 16:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633391858; cv=none; d=google.com; s=arc-20160816; b=I6visUDwQ1tEApZOh6t0DIiUL7Budb6EDq5UPMMxqbUoqZnb8E+iLujYcyB8X1WmBo 58smMDpNLkPsUb7A+dg1qtb3wbqohoGXpFlcMZ5r0g+XswzbA9Vl9BJ4TCr1ftu+dCOv WnIYkImxDrIWopmCr9zFgk7M2xUzvbYX3SnrHo+yNC4V6ndNAIsPhox1PZQsbuX46fp5 iqZ2QXgcju5IvIIfqkQp3R2BOkk3dOFoTS+/sPP4OpNAm+6bF3W0mMFb6ElZMTFXSOxx kLlLHWqneHOgcezN6xOQ9t7EW5bpTnCFqYggU5rMMVkee7pwzDInAzyU91Hv/9QVgMDL fPOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JiZhbMTVrjipi5LHsU2pUXIa74xisOJ2Nzr9kB3papQ=; b=VIPBfYB116Uwsjj8hUVZNPJdRlfxscA5Vx3ffryxIiXjDjLTGATpBr0mDX/wyv4hvn fVuW+OeqYfbpG+XKrw7zL97bir346CluiEi5DeTZu2wuGSQkGII+oQ173SxvIM+9Hw9N HBY/Qrq9kTd4fIHu+pgyjBv5V3kPnGbWsGaSmrNNg6yCt5G5UwWpywgGo4llnbMViban c7Nj/uflNIHrkYXwwqI05rTbGakpVtGuEkM1SGIpmR1EHAQLY4pLb5c8xhSJLuUMzaNE 4dGssIqKz13Q5Cx+Jrs8mPB8QID70L1wN8iYy0yDUglh2e0gILoVpUTBPfEwLTwBadzk Mn6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=czVI7h9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si10745067edq.65.2021.10.04.16.57.15; Mon, 04 Oct 2021 16:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=czVI7h9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235697AbhJDXkB (ORCPT + 99 others); Mon, 4 Oct 2021 19:40:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:51488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234995AbhJDXj7 (ORCPT ); Mon, 4 Oct 2021 19:39:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BBA161131; Mon, 4 Oct 2021 23:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633390689; bh=7FQS12BJyVfLKwhmHhNpViQ6vnbzhOByhHXQRuhEDAw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=czVI7h9CjVBBLcioO417aQterEvQMv2y8n4apS/L+6qdf8SIZ6u4Nz/6uHWRBsif9 mYXIuuNprKHnMY7WfFqhRGbzQhUOG8w63Ao88tw449K8hQkJ7eF7JEsssh4xX4jvtY NO78FsgvvBDfIoQgm5JAEnTy1BtrgRHKuc+gyoEBKD32aOQpFsiMuxFXwksDvmkYf7 yxqaDDhDR7r1QUftffK/a+UhWHD3XUoZV7l+b4hbI5g4wk+riiZaGuK870TGKuWp2f i/lkH7Qr4CYdFeBuXJNAbfAHVUmgB2opyha4vLjDvFKe+1qq7uqeL4Li8L++U1XAi6 Q+7YfGr84SZCg== Date: Mon, 4 Oct 2021 16:38:08 -0700 From: Jakub Kicinski To: Leon Romanovsky Cc: "David S . Miller" , Leon Romanovsky , Ido Schimmel , Ingo Molnar , Jiri Pirko , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, mlxsw@nvidia.com, Moshe Shemesh , netdev@vger.kernel.org, Saeed Mahameed , Salil Mehta , Shay Drory , Steven Rostedt , Tariq Toukan , Yisen Zhuang Subject: Re: [PATCH net-next v2 1/5] devlink: Reduce struct devlink exposure Message-ID: <20211004163808.437ea8f9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 3 Oct 2021 21:12:02 +0300 Leon Romanovsky wrote: > From: Leon Romanovsky > > The declaration of struct devlink in general header provokes the > situation where internal fields can be accidentally used by the driver > authors. In order to reduce such possible situations, let's reduce the > namespace exposure of struct devlink. > > Signed-off-by: Leon Romanovsky 100% subjective but every time I decided to hide a structure definition like this I came to regret it later. The fact there is only one minor infraction in drivers poking at members seems to prove this is not in fact needed.