Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1171845lqp; Fri, 22 Mar 2024 07:33:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnoQ7Wou6meNVHnxml2j0JBefK+bjfTsc5GnMcWjFhRPWy2CVurp1QyBrDblTrkeDQy3qi+6is2jaevGJ/8lDBjUsmRdgP1KS4T4zvBQ== X-Google-Smtp-Source: AGHT+IEDKD/hbP/epUtv7C+T2DRUBwE/gu/jC4L9PmJaxRZEMJamArus1cO9YgExsZ0QCruH0tb5 X-Received: by 2002:a05:6870:2250:b0:21e:e069:5852 with SMTP id j16-20020a056870225000b0021ee0695852mr2848341oaf.55.1711118026933; Fri, 22 Mar 2024 07:33:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711118026; cv=pass; d=google.com; s=arc-20160816; b=KaVtfHAmqZuuM7QnPxWTW2rQK49I1GEP8/DOVB4WnIIPkjEmedc2364rGd14/XS/tf x0s9ibcNGq/pWgZ0crdDJK3cIuFsJg88wJluVqLFzvUjrLXD6UaJ4W3rUtrJx1fnQzRt AvtOAss5wLu26q9NsZmIhCccuSVg6ugR3EIS7Fmox03u2z/fi5UmOHD+jR08QvD7PTVU 5PrHhEYi/FG0FVgvJFSPr+CazBkCDA/aAqDO7su7IqNnI57h2c4HlZ0b2+8/9ox4Wp6D sysmWda9YNwFu5qz5+jVyOWdY/uBQY62b1wE9/eIuSD/HBd1de8y5HxQ9pfwOZuVtEe2 2N6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RD6bm95akALDRiufIGCnFmOIJdiuNuG1HiYxuRydFig=; fh=Lrv5SBNvFpQAHsHlFMCQKykebN5tK1SsybxDV3wwrkk=; b=QBcBCyvhSLe2xaBvnOl521z4kvlrN8C8bWcAWyvMNPyhpOD0nJ1BmvgGHKKwMHf8Dj Vn2bFq9zdSVPiI3WF/sZNFEhlktgjvjvbfHwgx18/9pSPKp8DkyhPfMX6ssCWQbZBnkx dwAWFV94eiycFjQJa7X4ZLFo233DW1rmKXWbXB8r+1ZvdVBELnRU6vo4igJEUAMoy3aD 2jbdOwoGFl1amAvruhhiFemoSrYWwkEhfY7CcXSwzFx/ef6HZGaHV3nE50CsnOZCosyb OnnzfmRpWAX+7mr3oKdSC3kawhpDcJv/bw4dPWrMzzjHuz20kte5kRYe3iTEHgmsS9Na xkIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cKGBb7CV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111624-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c1-20020a631c01000000b005e2b17cd8a0si2074448pgc.270.2024.03.22.07.33.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111624-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=@kernel.org header.s=k20201202 header.b=cKGBb7CV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111624-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D81A9283188 for ; Fri, 22 Mar 2024 14:33:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 686924AED9; Fri, 22 Mar 2024 14:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cKGBb7CV" 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 88221482F3; Fri, 22 Mar 2024 14:33: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=1711117991; cv=none; b=MtCdfrE7dGVm66msihMKg/OV4QnBqfN8wXfjGgqRqmi8g9ctN5oyhzX4ExHOEB8XEJY9xqQhJabyKOLZTD50eJUbO6Y+Of+nvWqFfc07qIozffi36EMZNWfGRoOPLWTWK+iLTpKpyJR6biSd34yFnQ/KYgtAk0PzSvuEWvttNqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117991; c=relaxed/simple; bh=4YU5WJf3WfMHlYPfI4XCeU2I+hTiZpRkSk8J5jLQ3es=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rSVlg/gMx1Rq5g8pCj/pMVHIxvy5VIjTuHRvpZSwwcg9+0tk9QLKqyhBcssuFOEwaW+oYqp1j8m4ip3RjiMrlZBqmbXd9Pv9rzZXSyv4XV9scTBefPLTQsXG0+/KrhVyvD1jkDvcclu9euzaMbOK6tcuvMDN1sarOQduDdz82Wg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cKGBb7CV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B10EDC433C7; Fri, 22 Mar 2024 14:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711117990; bh=4YU5WJf3WfMHlYPfI4XCeU2I+hTiZpRkSk8J5jLQ3es=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cKGBb7CVwSNfseamU9SLwfCBi1CD8fJAzWGocTw3UXL9kktHcbKcThy5pmURa2GiI odwd+u+Hl4JTOP62AIuwq6GzhX/8nz8tSsklYm+mA9wQjZ7Ocdf8WhSa/pLHW7P68S 0nC8rurOXdVmiqOMcrAPu8Q6jdpB7UyxSrJAKsokzr9ytv2WA8z4elkS1wK3J5LIv3 n69SpoUwx+TqT0gA5kubjfSNZN31zKGVsdor3xECKvKSWMCOuLqsyqZMtsf48GCTsZ OYv94CzFu5tG7ySnSF3bz5LFz7p8CndkkemKf7Ulvh8HGj4aR2WmoYsodkT58fbS55 ZhdDZNleEmIjg== Date: Fri, 22 Mar 2024 14:33:03 +0000 From: Mark Brown To: Barry Song <21cnbao@gmail.com> Cc: corbet@lwn.net, workflows@vger.kernel.org, linux-doc@vger.kernel.org, apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, linux-kernel@vger.kernel.org, Barry Song , Andrew Morton , Chris Zankel , Huacai Chen , Herbert Xu , Guenter Roeck , Stephen Rothwell , Max Filippov Subject: Re: [PATCH v3 1/2] Documentation: coding-style: ask function-like macros to evaluate parameters Message-ID: <7d965b3a-c857-4498-aea9-5a3ad8ad5b76@sirena.org.uk> References: <20240322084937.66018-1-21cnbao@gmail.com> <20240322084937.66018-2-21cnbao@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="F/USLqwBIaw6nYmg" Content-Disposition: inline In-Reply-To: <20240322084937.66018-2-21cnbao@gmail.com> X-Cookie: No passes accepted for this engagement. --F/USLqwBIaw6nYmg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 22, 2024 at 09:49:36PM +1300, Barry Song wrote: > The driver code, for itself, seems be quite innocent and placing > maybe_unused seems pointless, >=20 > struct page *dst_page =3D sg_page(req->dst); >=20 > for (i =3D 0; i < nr_pages; i++) > flush_dcache_page(dst_page + i); >=20 > And it should be independent of architectural implementation > differences. >=20 > Let's provide guidance on coding style for requesting parameter > evaluation or proposing the migration to a static inline > function. Reviewed-by: Mark Brown --F/USLqwBIaw6nYmg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmX9lp4ACgkQJNaLcl1U h9D/3Qf+OAmGX1LtgvGmlxtBTyB3f+RqYVcaN+eDJ5mmGb/PBXtUHrCWMIjdJV1T alW4pNoJlPHSip3U7gjDx/VVEkHpBMD6wl3aoTYn+1iiG+8fwxu5WRYWptGwx3ux NULjEcNjGxzdVH6RBC/9KiOEU3WyWMBRDlNzA78mngM8JDDOephB6Z8OEYbz53A7 PQGn3ogxV5WvhEYmJw402pzierGbewLnmiPTJhhdp81l+kIGFKtuxch8Ucde+tzw qU2EgbM7OVuXj3LVw/aDPjyYJwZhwXUVuV+TB1MVqog4dqkbon6UgPonc2PPwTnO EOFhcKG422l9nhl/Iig/3i1DVCAVZw== =i5nb -----END PGP SIGNATURE----- --F/USLqwBIaw6nYmg--