From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9509EE49AF for ; Wed, 23 Aug 2023 02:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Azv+bdJdQ9iMJa2ZiQoQUKMZtKSw6QicnVwO6BegnQc=; b=Bwp+X0Jlj/PN7V DpZzXvCrbvGehhxKyWa1NdJP7aa+SpYB1D1IczwWHo6nEdyTUVv2KWBE1rsB7FEAgV/E0biIe1DyQ oUi3y2aT2r56xL2P60wkJvfMpJejxbkOQQ+mWzhEuofEaLd4TecECTG2oI1rKuzd18lVNIOYV/UK/ K71xSTYKDOlxNiq3YWECM1TZypyXCXu9GzuGL97PNXOYRFHggHFtyVytrJYMaBjejNZfnZjluJBns W9Mb3Z3mx2BP6hAxosSqULtCyEwwYoXREChQs67ekXX+V1lELYOCU2Z9n5abt/MdwWKYM4heyqODr wUavovZR4tkLjKzztjlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYdLc-00H4Cm-0S; Wed, 23 Aug 2023 02:11:52 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYdLV-00H4Bt-3B for linux-arm-kernel@lists.infradead.org; Wed, 23 Aug 2023 02:11:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7FDCA60B38; Wed, 23 Aug 2023 02:11:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48F2FC433C8; Wed, 23 Aug 2023 02:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692756704; bh=bOWWtdMrF6LJFfQBK2OyDOfqMh/CaDEbXH4MQR6WIx8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G/strxObU3F+RipWOvkJ6xnnffkARZQjH0Z3vyUGjNETnFW6R07oUa7NDJSn1yNXK ZmscwhsPWeU/cwMl8VWfAHOsnRWnf+IKuw5RhHg5vCBzfL0IrA2p9Y9xy/WfGM+WXm k+qtph6ry3KA87EExFLcNihAo1uKmOBnsY9rkeO3M/EHt4DhG/ScQZeK7GC2NOUbqN Bi7CWDmv567jULq25ZYlNnHPLqG981FISRLvN5BGNM/2FpBZXRD7PONfr8bkmBcyXQ gJyOiRLOptSsD6C4yBtttIrsw1dHaBzyVTtzBHVMGe3q0qEu1W+rUcuW6WxpSoabfA 9nnHUqipQXyEw== Date: Tue, 22 Aug 2023 19:11:43 -0700 From: Jakub Kicinski To: Vadim Fedorenko Cc: Jiri Pirko , Arkadiusz Kubalewski , Jonathan Lemon , Paolo Abeni , Jiri Pirko , Milena Olech , Michal Michalik , linux-arm-kernel@lists.infradead.org, poros@redhat.com, mschmidt@redhat.com, netdev@vger.kernel.org, linux-clk@vger.kernel.org, Bart Van Assche , intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net-next v5 5/9] netdev: expose DPLL pin handle for netdevice Message-ID: <20230822191143.119c3d72@kernel.org> In-Reply-To: <20230822230037.809114-6-vadim.fedorenko@linux.dev> References: <20230822230037.809114-1-vadim.fedorenko@linux.dev> <20230822230037.809114-6-vadim.fedorenko@linux.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_191146_108249_A1E968CC X-CRM114-Status: GOOD ( 15.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 23 Aug 2023 00:00:33 +0100 Vadim Fedorenko wrote: > static int > dpll_msg_add_mode(struct sk_buff *msg, struct dpll_device *dpll, > @@ -340,6 +352,7 @@ dpll_cmd_pin_get_one(struct sk_buff *msg, struct dpll_pin *pin, > > ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); > ASSERT_NOT_NULL(ref); > + > ret = dpll_msg_add_pin_handle(msg, pin); > if (ret) > return ret; Chunk out of place > diff --git a/include/linux/dpll.h b/include/linux/dpll.h > index 2202310c10cd..9b612038b538 100644 > --- a/include/linux/dpll.h > +++ b/include/linux/dpll.h > @@ -101,6 +101,26 @@ struct dpll_pin_properties { > struct dpll_pin_frequency *freq_supported; > }; > > +#if IS_ENABLED(CONFIG_DPLL) > + > +size_t dpll_msg_pin_handle_size(struct dpll_pin *pin); > + > +int dpll_msg_add_pin_handle(struct sk_buff *msg, struct dpll_pin *pin); > + > +#else > + > +static inline size_t dpll_msg_pin_handle_size(struct dpll_pin *pin) > +{ > + return 0; > +} > + > +static inline int dpll_msg_add_pin_handle(struct sk_buff *msg, struct dpll_pin *pin) > +{ > + return 0; > +} > + > +#endif The only empty line between #if and #endif that's needed is the one between the two static inline helpers > struct dpll_device * > dpll_device_get(u64 clock_id, u32 dev_driver_id, struct module *module); > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index 0896aaa91dd7..36a872774173 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include Please no includes in netdevice.h, it's included in way too many places. All you need is a forward declaration of struct dpll_pin, AFAICT. > diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h > index ce3117df9cec..2e7df321f345 100644 > --- a/include/uapi/linux/if_link.h > +++ b/include/uapi/linux/if_link.h > @@ -377,6 +377,8 @@ enum { > IFLA_GSO_IPV4_MAX_SIZE, > IFLA_GRO_IPV4_MAX_SIZE, > > + IFLA_DPLL_PIN, > + No empty lines, no idea who started this trend but let's stop it. > __IFLA_MAX > }; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel