Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1004915lqb; Wed, 29 May 2024 18:34:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZ7PWC6gqISKA/kXMyVL+hmta3HvHoJ0O7hwA956y7VQeHezU92o6SpfUuqZtObgC4iSnWLEYaM2lpl/NN9uPCtqV9dnrGQXukeI4dsQ== X-Google-Smtp-Source: AGHT+IHRxgjvX4wAk89mnD2Gk2qkW0LgOmxfU7BnvwMdPYP1g0tH/Mv6CdkLOpk/+7HHvEYISnvI X-Received: by 2002:a05:6358:a59:b0:18f:4ed5:9cc with SMTP id e5c5f4694b2df-199b94d78dbmr50275155d.21.1717032866700; Wed, 29 May 2024 18:34:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717032866; cv=pass; d=google.com; s=arc-20160816; b=XytyopgvgApfXWZ2/klKuKnxTY0YT/brUOCCOle0JYVRHMI2n4RUXmZiTYU6sKlvRB lqWneJCuhuWwx/MQg/Y6NItAJa9Imoqq60ylMPkPsDBxuHfzwPvaFU65XQ0gtzs4Y28G FAgC1+CcubEQ3npzIND2I/dDO+Oue0MyaDXQx8GoTV7P8EvHtw1hF/Fri3Q/gHY5GRvT Sa7A5yymVqG7a1JnakXWLx9YWQ1ajbUGmvWG5iUYMzeXr6074mrCXLSqeyFhPScI1BrG TH9E5+u0aMByhRNdWJJafnjBiAKXTDuv9RT3YwgOO++FtD3sBAxd8oek2IXSn8lZgi6O 8zGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=RaSh+5Qr1Ehe9VBmBTLYUh3T4jmAwQF+YldRp59gM6I=; fh=fOgGamkvbMdZNblY2z1keaXiszcm89X+5AS9LvarYv8=; b=PN1fIJsLZhm0ollXHl+R5XDqHGxS81l4f/kx7eITcgy3olAbgkVqGVNEzHXi3hF9la xD4TApWsdoJIcmzblhW0KzWcDvGlUA7WLZGxTGgR2cnknG6w5rYqzKDgeb7tUV8b6WRi jCS8JHezTLbORdKgEZus4VRZq2axSEzSpbw3JmkUXR9nC+PQlVEzF6grtwgmzW0F0kBc oozsMvmS4J3ZrlZBSqE5sP+ipKwlA504FjKWoNr4wPHgvAFNnwejdmN1m+Q2LB7h02/i bSRiorKnSoXftEP8oppBA+uEXCMNQyB9f+AGp+xrNL+x0CyM79ct9ONqrcVbJOElECK5 Epbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X4Y9AxLy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6bf441e86a4si656311a12.732.2024.05.29.18.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 18:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X4Y9AxLy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6624CB23943 for ; Thu, 30 May 2024 01:34:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 041FE175BE; Thu, 30 May 2024 01:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X4Y9AxLy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 24B1033FD; Thu, 30 May 2024 01:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032851; cv=none; b=MOB9qYUXf6cAl4ynDBNtB2X612QCHE5cIyI8dPmpH2IUp75iiM4xiLAeZgcb89QXksfk+BYA9Xpm22h4tYSL98lxApHSKYF5B9a7EzleAU6kzYcyEphLd0eoSRDHoLY2OnXDo+xIoTLGFU6pWBdOgQiwGiosprZ18S7CgTY3Uhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717032851; c=relaxed/simple; bh=KyrREIinnHGspd2GO6w7tcxvikzFHN7sskNsxhF0axQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KqOsdAtEiewoLUHSOrqYAskfYjNoAlrXXd1iSeLgx8lafMCjCLFw5u2lskYOFvqQ3ySCJ7kvYo+ARZiy7dnnE/Sp/cPPvzYR3yd2K7Gl3/mwJIp5I09Jez1zjPvCUSGP1BymYTdFLl4vDZpxFt6rQjI6EHtjj+7yqgJfOsEsRno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X4Y9AxLy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FAB7C113CC; Thu, 30 May 2024 01:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717032850; bh=KyrREIinnHGspd2GO6w7tcxvikzFHN7sskNsxhF0axQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=X4Y9AxLytN8XEXvwFHoPdyYKFMJsQmhT7n9yvOt0VPfv54o+52u5v+dlViEl5jgkc 69eVnHAIj/0G0eJHDStXhNrRcfpDVqQ9UJCRARg/IPxwl4sPtYnYBg9U/ou/cYQml/ bS7YOX5X8rXOpwMuquxOzrEm2JY2kvlOkxGUrdQsfPQA5Fi50Q0yLqtEUoHf5entl3 m8JL6gX0Z8IV4zOGAboXj1mwVwhQZsz0tlZxu2bQPcrX7AM/9qwAUV6sjH/MjMag3c oCZYaAwndTMgFx18KcwvRaFcZ65kI7IeWJfRpe5zYZ1dZ4CFmYzeUv8Qr0enk9/GzP l/rkRhSikAYOg== Date: Wed, 29 May 2024 18:34:09 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: intel-wired-lan@lists.osuosl.org, Tony Nguyen , "David S. Miller" , Eric Dumazet , Paolo Abeni , Mina Almasry , nex.sw.ncis.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH iwl-next 01/12] libeth: add cacheline / struct alignment helpers Message-ID: <20240529183409.29a914c2@kernel.org> In-Reply-To: <20240528134846.148890-2-aleksander.lobakin@intel.com> References: <20240528134846.148890-1-aleksander.lobakin@intel.com> <20240528134846.148890-2-aleksander.lobakin@intel.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-Transfer-Encoding: 7bit On Tue, 28 May 2024 15:48:35 +0200 Alexander Lobakin wrote: > diff --git a/scripts/kernel-doc b/scripts/kernel-doc > index 95a59ac78f82..d0cf9a2d82de 100755 > --- a/scripts/kernel-doc > +++ b/scripts/kernel-doc > @@ -1155,6 +1155,7 @@ sub dump_struct($$) { > $members =~ s/\bstruct_group_attr\s*\(([^,]*,){2}/STRUCT_GROUP(/gos; > $members =~ s/\bstruct_group_tagged\s*\(([^,]*),([^,]*),/struct $1 $2; STRUCT_GROUP(/gos; > $members =~ s/\b__struct_group\s*\(([^,]*,){3}/STRUCT_GROUP(/gos; > + $members =~ s/\blibeth_cacheline_group\s*\(([^,]*,)/struct { } $1; STRUCT_GROUP(/gos; > $members =~ s/\bSTRUCT_GROUP(\(((?:(?>[^)(]+)|(?1))*)\))[^;]*;/$2/gos; > > my $args = qr{([^,)]+)}; Having per-driver grouping defines is a no-go. Do you need the defines in the first place? Are you sure the assert you're adding are not going to explode on some weird arch? Honestly, patch 5 feels like a little too much for a driver..