Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp313182rdh; Thu, 23 Nov 2023 04:57:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcOtZqDPnX1YNa4bHUKpR9NW1bftDqKQv9VriSK95Ee1dxmf0j32efbnMCS0owWfE5wwpm X-Received: by 2002:a17:90a:44:b0:285:25ab:258e with SMTP id 4-20020a17090a004400b0028525ab258emr5063022pjb.34.1700744259906; Thu, 23 Nov 2023 04:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700744259; cv=none; d=google.com; s=arc-20160816; b=N5g/wZX2GmN4s8Vr5isT0crqAbU3DlA4Afy4k550XruPB0Ij/R0rgXUFDvFGAfagYf DjhNZ9d4bm/m7A+f6UXhN1qzz5YYpOR/anH9k0xz2OHbn6ZuMmGDLJis+J+zy35AzC/S zpl94uQVwarTf2geU7mcU9hPthqzCuSwpgUwIWl7H8BZQpnZr4CdcOcmlt7GxF2oO7kl nh+RMyDJLBgokrUVBNF2VCOAT42W6VOfBZzxrXnX5gsu2LZvrHT2q3CKzaxQAxq3pQlL ijmNm0NAGfsKNA4u/e5rFmaIt6dXpur4PfGByxpARWIxEetxqVlbNNuqcvXCThTmcqLX dfPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7mcIFVRXM0DxboWT5eQCFgC89Pb4PhMF6jwv8prDDRo=; fh=qtpEnc7kT2c8liDFJIotboiF08KJ4+v7BSpCLxcn4j8=; b=T6Jinx3RGFmV+ooaZ2LBMhJi9nvX3kZbzRDvFLzCfi6AiXcRfVWgdaqZBHEwwRS3lx wcj4J+Ba/hVaPbwJ6c+E1gfWF9L3ecT6pvN/pZbTC4AoDh+VDK1qMaHMWt6jUoSaPymi LXQodmvDpEnVVRxDAIOuc86uEX726sKZZAHh66tmny4/CM0YN5A6Eqgg8lYuOvpJ6iWg ReMjwYnvHV08TyUN67Msjz+j63SgiRjdBlCHvjOux9OUj/ZZnJMSaBPZhZS8ASrIWOTr bGA67ySxoxpkk6xjX3xzNe9YDQhePNRZzmzNcVIfXrxaau/gdC6sCkNwfCr2emYbJbwM wGHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iA+yVV+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k8-20020a17090a514800b002850ee93251si1722662pjm.47.2023.11.23.04.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 04:57:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iA+yVV+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8D48C83212B5; Thu, 23 Nov 2023 04:57:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345371AbjKWM5X (ORCPT + 99 others); Thu, 23 Nov 2023 07:57:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345271AbjKWM5V (ORCPT ); Thu, 23 Nov 2023 07:57:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C0791 for ; Thu, 23 Nov 2023 04:57:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4141C433CA; Thu, 23 Nov 2023 12:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700744248; bh=QwjBh/mDzLfgK//ibCN5gogLgPuteQNEfc+ssHHKUMY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iA+yVV+Tk2ZeYGlwl6FZUiFqmkwUsz/u6Y2NTaNKF+RMvh3i9pTtRx7aM/U5m6R/3 zAhL5FhZu6HkxZ9jaNL30DNvIUlQ1BIu7q1DlPoZDucI5DFxniYOXm/iskDfTwPVvn oToXverh7L3Ax/MawE4ulncpNwb61JrYqEoCMWog0PnqzpvNDF4N+YQpbKHch4ZBKe XderX+dHiINBY/A43KbY82QcPCec1mO9SByMdPZuDePNQqoq5K9kxQLY7H6JN0djkx DSzluwwweljAFoswIN9FfbrZma2962ynGJC0MsnrE1hIP3+bzihaE5VOragCNzvk2K TMXzWJCxVNrtw== Date: Thu, 23 Nov 2023 12:57:25 +0000 From: Mark Brown To: Naresh Solanki Cc: Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] regulator: event: Add regulator netlink event support Message-ID: References: <20231121101331.22837-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hfmqmatwhTT9Ynoi" Content-Disposition: inline In-Reply-To: <20231121101331.22837-1-naresh.solanki@9elements.com> X-Cookie: Slow day. Practice crawling. X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 04:57:37 -0800 (PST) --hfmqmatwhTT9Ynoi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 21, 2023 at 10:13:30AM +0000, Naresh Solanki wrote: > This commit introduces netlink event support to the regulator subsystem. This looks a lot nicer, there's some feedback below but nothing maissively substantial. > +#ifdef CONFIG_NET This is essentially the entire file - it's probably better to just put the stub functions in the header and do the building with Kconfig. > +static unsigned int reg_event_seqnum; > +struct reg_genl_event { > + char reg_name[15]; > + u64 event; > +}; Given that this is going to get sent to userspace shouldn't it be in a uapi header? Some of the other event types don't seem to do this though... that might be an issue with those examples though. We'll also make the event numbers into uapi so they should go in a uapi header as well. I'm also not clear on where the 15 byte limit comes from. > +EXPORT_SYMBOL(reg_generate_netlink_event); Everything else in regulator is EXPORT_SYMBOL_GPL() so this should be too - though given that the only caller is _notifier_call_chain() which is in the core does it need to be exported at all? I can't see a case for anything calling it independently of that. --hfmqmatwhTT9Ynoi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVfTDQACgkQJNaLcl1U h9DE+AgAga4ENL0Saql9gBXIwkH6zvOVuaGmUXjNr3LkVsPIwx/Q+Y1ibLCLedxx AV7Z3sEFpJehQspzg9X6lkbiX+yskuv6ri/PMpSi2MbKAt61H/uvkKG7rGQ7O4LI Wgl49dQgmOsEGWLb5MQP+iw5YBxoHUzehMipRbVcRrm+04UAK6AFyo4sXu5TCoRQ jHnN6UpiNTFn0SNmdJD/BVLuT3tpAFTVIRE42maydS0+Xg5twXR2YnAsoiGrwUoJ 5exsjlFYBhOg6GOcU4iWIm1UlnBQ1A5nnG2p8vPDvjNL5ZXHSYj1sUkpROXDkZXK VdMJNENScxdGePD/EFHYeyV6uZkOgg== =Xef/ -----END PGP SIGNATURE----- --hfmqmatwhTT9Ynoi--