Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp243969pxp; Fri, 11 Mar 2022 03:31:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwunpePW78DmzEsoQgTBTHtW7qLBwcafwKfCf965xEvgl9UGQAf8upPZBvXuHHudiI3rdWr X-Received: by 2002:a05:6402:5150:b0:415:de72:5384 with SMTP id n16-20020a056402515000b00415de725384mr8247954edd.273.1646998293954; Fri, 11 Mar 2022 03:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646998293; cv=none; d=google.com; s=arc-20160816; b=sMYNplFNpjWi4SAISyd7la57kwDLgQZ3hlYTWBHibxN5jWS58nwDpsEqsO5jBEHaxu +xkmlj+dpPMO2KGRIgjjWgd56jS/JsMh39wT6j8X8GFKIuAxFza/dgJ/slcJN0kYfqj7 mzAk4HCpTFRmfD0Wv9cm0WJIe0XjJFHHYukQOr8o3aHJcI1exQeJpkaidY4VMKNP/Uz+ +O34HCjF9SYKxcuQpVlZxEqbQ1/Ct6GvJsWvQ1cS5M8rv7Eu2agHHgkjoVQ8SHcdoiaM 1VOFbplUcK+P9rMfKWRXIMjXz4FKOn0F/TApP5TGflQb04G7AnV6yoypEovA7JtPUril lH/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jolJ4cvz1nIIEekBG8Vcy8TNT/P5PqVqbhFldlOrK0k=; b=09RUeC9BJRNzMge+rduHxvVtOibwX+4wbq+M1JHxS6X2VEcg5dikUEUmZBf+C1inWb ImsFsVZO7l8cDk8NyJyy3gYwaO2otLPrVHPzeI5Fzv/Jqb5BNulLMrBP1OprxsRvKKOv vV1Bdi4khPd4nZ9jpFs6J1gtZWniozoLVxTUQa4ZcEn4ud5SME+cyz7DeKy2EZhLvDjG Wm91qt46M50jM+kpGA5FxRgKh3jr7CR8GzLbakR1K36kEC03Xk38/tGBe/bghhjMRy7o WEsJDT/HKCAxSLvjobCbP+5q94f/280qxfvwTcSn0rJagMMUiYYQQw5oUkxtgyLHJPbi Jpxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G+sXxkE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a170906b09600b006cff6489671si4742536ejy.960.2022.03.11.03.30.56; Fri, 11 Mar 2022 03:31:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G+sXxkE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346457AbiCKF0b (ORCPT + 99 others); Fri, 11 Mar 2022 00:26:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232824AbiCKF02 (ORCPT ); Fri, 11 Mar 2022 00:26:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769D11ACA1C; Thu, 10 Mar 2022 21:25:26 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1237D61AEA; Fri, 11 Mar 2022 05:25:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA12BC340EC; Fri, 11 Mar 2022 05:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646976325; bh=nRLq8Za1OvjwHMYV/kaWFi/fkLoSP1yixascqRgAgJo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G+sXxkE0xe4SXpOBYALj55qRoOWUaBKi/qYdqhv73VynBcv8P0jXIjEpTAzRMwN1N TexUMP/UnjFZDa2OmK+sGAGAcBqFExtkN6s6hC/NwfLJ6p9AHOLuomQwekphtU3Wfb OAe11YEY5rZTYvlB0WWDIVNDzoaGXSgTeh9D/kNflh3gcd05R4iDgDcptWwTBZLktY 4CPb2xREk5gQMFx7iCeu+narKP9ZXwg9tcSeEyk/rqxieREv6HEOkVBxDv5G+N6bgw zLqUbyyjBII1qlG3ZcrJxB4UNuci8vgsq7ZvaUvrvUH0HbdEokhHBZvSKodyLhS/8P qOp3IAZc5H4Bw== Date: Thu, 10 Mar 2022 21:25:23 -0800 From: Jakub Kicinski To: Alex Elder Cc: davem@davemloft.net, djakov@kernel.org, bjorn.andersson@linaro.org, mka@chromium.org, evgreen@chromium.org, cpratapa@codeaurora.org, avuyyuru@codeaurora.org, jponduru@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 6/7] net: ipa: embed interconnect array in the power structure Message-ID: <20220310212523.633287d4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220309192037.667879-7-elder@linaro.org> References: <20220309192037.667879-1-elder@linaro.org> <20220309192037.667879-7-elder@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Mar 2022 13:20:36 -0600 Alex Elder wrote: > - power = kzalloc(sizeof(*power), GFP_KERNEL); > + size = data->interconnect_count * sizeof(power->interconnect[0]); > + power = kzalloc(sizeof(*power) + size, GFP_KERNEL); struct_size(), can be a follow up