Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7476715yba; Thu, 2 May 2019 10:29:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCGXrQeZjd1K/Vl6GIEJvY4eHPYraf0W8nDlp9iFXeoh7HXfIQn7ySAvBgbY5u12ljvor4 X-Received: by 2002:a63:5b24:: with SMTP id p36mr5080422pgb.84.1556818194606; Thu, 02 May 2019 10:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556818194; cv=none; d=google.com; s=arc-20160816; b=pGpEgw09SbgBcPgupGBnW1//oeW0MOqwmGYTOAqgMQWmaaZ9B9EFkaXJn2OQLErDiC r4ZUNuhh/LNnSv2bZpmo7JB9y4bxexljcBlhRl96aCf/vWTEXZJDIQ/K9ouc7FekXHjo dNMhfbnhHAiU1h4xSCS7vRlf5VqB+bBZaboLDkSR9+GuoxMapTPzLJWIEufPxSWjHuu+ LQJQp4GqXJ2uS9ZKHvqPhopN8UmpRMi1A2YLKKHzpt036gb5pNWOhMDvoPf8foy6hRVa 9AhQBVSTXi8XHAZ2jd5Ef714iYy5llVYdr6I6AKxZXvcDuIycX660upur3SWADbD7PKe QdXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pgI4vviAVk6rkG8c4toNr9fxXzVpuMU4QUt9po7NIpU=; b=y8US230C4jOoh+NI0XxEWaAvc9XcLMLRadgC/h+rqTTKj9opKp2Ef3LZqqvfiP5dJK ck4nrX6fQQvNyEF5m9FOfov2DdIND55+9s4hFA7bnwdnhekqVhDxRSzRV9vtXETSzAKo ox1yrMkNRh++YzOmDB27Fzv8uTMj1nk9a9QpuIz+AeINju29YUaCt04Otpg5Y1zN78Uz 1nX5LcaZB3vJK2LKa1wXNit33epdLkvwgqeUPXH3Dqrhfo9fqtAA7R0lsCm4PU2DkaTP mt1a2z/VKgwtbJpabGGXIzdTzxPlL+6LQAzkgDgIuFZCRAPD3vWCQzgy2TEL9G1udYzx uogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PF6fFdBz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si18585282plr.216.2019.05.02.10.29.39; Thu, 02 May 2019 10:29:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PF6fFdBz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbfEBR1Q (ORCPT + 99 others); Thu, 2 May 2019 13:27:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:36862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfEBR1Q (ORCPT ); Thu, 2 May 2019 13:27:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BA6420651; Thu, 2 May 2019 17:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556818035; bh=nUrwWPD8ucED90XNkUlUix14ltwwHkXny6E3ImMXWRc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PF6fFdBzx4hNtuFY4X7GBes3yLTc1ZZ6KV5pnxzb/IFPEfTd+SDcDvTJ+la3Xi/2K sssLcj85wn9UVQsfWNgz7/l+VCSNK/tP8uNsL3O4yKSHjNDNRwaccw8K/hISQXfQRc C7gYAiBdPg/hDemPuENunbgsltANLZVctsnAJUX0= Date: Thu, 2 May 2019 19:27:13 +0200 From: Greg KH To: Dragan Cvetic Cc: arnd@arndb.de, michal.simek@xilinx.com, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Derek Kiernan Subject: Re: [PATCH V3 07/12] misc: xilinx_sdfec: Add ability to configure LDPC Message-ID: <20190502172713.GD1874@kroah.com> References: <1556402706-176271-1-git-send-email-dragan.cvetic@xilinx.com> <1556402706-176271-8-git-send-email-dragan.cvetic@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556402706-176271-8-git-send-email-dragan.cvetic@xilinx.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 27, 2019 at 11:05:01PM +0100, Dragan Cvetic wrote: > --- a/include/uapi/misc/xilinx_sdfec.h > +++ b/include/uapi/misc/xilinx_sdfec.h > +/** > + * xsdfec_calculate_shared_ldpc_table_entry_size - Calculates shared code > + * table sizes. > + * @ldpc: Pointer to the LPDC Code Parameters > + * @table_sizes: Pointer to structure containing the calculated table sizes > + * > + * Calculates the size of shared LDPC code tables used for a specified LPDC code > + * parameters. > + */ > +inline void > +xsdfec_calculate_shared_ldpc_table_entry_size(struct xsdfec_ldpc_params *ldpc, > + struct xsdfec_ldpc_param_table_sizes *table_sizes) > +{ > + /* Calculate the sc_size in 32 bit words */ > + table_sizes->sc_size = (ldpc->nlayers + 3) >> 2; > + /* Calculate the la_size in 256 bit words */ > + table_sizes->la_size = ((ldpc->nlayers << 2) + 15) >> 4; > + /* Calculate the qc_size in 256 bit words */ > + table_sizes->qc_size = ((ldpc->nqc << 2) + 15) >> 4; > +} Why do you have an inline function in a user api .h file? That's really not a good idea. thanks, greg k-h