Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp205735lqp; Wed, 22 May 2024 01:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8h7tkPAb7n1GFxZcEMAgoE2uvlsgjCG+WqgW4GceSE/BDmubRIrHBpLEUP5+iewuRgFuDv0BQ1fKpyQXONgbxuFtSdBp7bKQhFAwMOQ== X-Google-Smtp-Source: AGHT+IGXOQ28qiNx1DkrpcsnUB/hDdevGoIvi/do4oIO/vnkrhN0r2j/mNUxe1Ig3gqoFKMHVoDA X-Received: by 2002:a05:6a20:da9c:b0:1b0:1a02:4128 with SMTP id adf61e73a8af0-1b1f872fa89mr2437560637.6.1716368076001; Wed, 22 May 2024 01:54:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716368075; cv=pass; d=google.com; s=arc-20160816; b=OKybncgB25TSB6NiidpoHLqyqaJfvPKwrfYHD2FXvTwsocpIHVQBj9qpjwp56Fz0dW OXpZTF544MIpJNbP7CQ+amB5dP+Utpp+yPkzdgvtUnbb1kB1pr5V4AV5LfIBmc877Nbp TmSld2Rs6uptlonVukEOzpYy1oSH3q8qcgR2yN/Lc35kdALdwznPoM4yLQkZk19ECCp/ wmhOjB0ie4tKB8QyWJINv2dMrSQR782VpuyN8zrQXUuk/GN2r0Vo6EeXWAIC1+F+Ov7o 0HSANJl10LzgCM5Mx+Hq8PITt9phGpHu5WE0Nqz1BLssq8Hsi5Rlbswyj5S8vkv8vcjL WfIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=HspjnCEvXmbgUttk3s3iC7M1d8a32lNVOBCNd0rIXxc=; fh=zaTUr4YEVXQq4Qsg7iUwAfkhZdA+810K1LGi7GW55nc=; b=YrTh1XeSWMu3lsajf4u23SzZIZJubQZ2xvdLTrLuIlnhkRkl6gAoVmoOtpI1ibvlGt 0Kx/AHFi6Pt2eiIohRAtLduNC8g4gGlICR7jZJxp01RL0E8s4kJlbOtKzJ4yD4ErZJwj a/KY5leBXJCV+5G9eRdbdLJgVdL+KBS0YyhMp3svt93m9VDekiIO1XYEFRC4/GP1emya tZGOXmOAyOZLAbCC5oAMZ63jt9pE7SP6qZ36eEsjVo244stxsY1mI1x98ZNVjtCDv1ki 4FVnlAcRYs8Cm4IwtbTMjep/Q962dYBvxmVHoFHH88xdo19zkG/vzc7r6DJqD9bTFdn9 SpVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-7939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7939-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6340b864646si24910042a12.202.2024.05.22.01.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 01:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-7939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7939-linux.lists.archive=gmail.com@vger.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 71D4228160C for ; Wed, 22 May 2024 08:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AA9C78C9C; Wed, 22 May 2024 08:54:31 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A86546522; Wed, 22 May 2024 08:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716368070; cv=none; b=TQmXw7OsniywA/Kg5PTjDdv2KK0VAeVJ+pkgtV21sW1XAq9HwgY9QbFMiQk+ocK7LUVPf/KQaC7pqg0FC4JEG9K4mWmRryQ/87UNKFFLJN+bJM2z9zQgC6J3olD1UNIIr9OG2DM6CHyY9QYz8AtUOCaYOHAr1P4TgyRy0PaXFnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716368070; c=relaxed/simple; bh=AAGNDmc0GUmss1gbsWKmPZoTiSwI0BqgwhKNiMvxu+U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NbiNSQiMoEF3yjnjrpxkZjKyJMWNZCQVdLG60MSSpJjMXDYJh66nKaOkZSF+JKfkCHTGqdGZAU0yMWCP/paV4bOQpTH8eA1qYuYkW142uL0iOOMx7wfNzvgJhXU9CCEO5oT/5UFKJ4u2QkwfOyqvsTSCMYxc/3RNHN7xXtcsG+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59b81d087aso914551566b.3; Wed, 22 May 2024 01:54:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716368067; x=1716972867; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HspjnCEvXmbgUttk3s3iC7M1d8a32lNVOBCNd0rIXxc=; b=JYH72epPSzjZrFpi/+a2C/SPLK0hjbHpC2ZCdnfiShVQLWOrPTZxqQ3xrWoRXTS6Cn DEl6eJvgAxiMsn3DAb/5skdrG8xlwhnEELD4mhNiH3BMG1MFDmfN7Kc1I+h8JQfYll9u mB1VkbqKcxat1MKreVerPeK3dgLOIYH53IhFJnTEg1L6wCwYV3JDIS1zAsjG4Va9K8Wy FfAg/UOHHFNxp+ED6xf74aTVpUnXU4oZmjYlCdx4D4vijGViyW1PWz8afqbaAD7eAsID 3TaLvFBDD1PkmqEmJ+3oCAzr0RNQo+VMNlTTPq6pr0wXIVM70mAaUZlaTV4GN9LxOsNm XQJQ== X-Forwarded-Encrypted: i=1; AJvYcCXM1ctreQhJLXdg2g3XxKVVWIRqvt+YMtZmcTPv5bFK0h1oBBQDTRP0QGN8qRIVF7ca33HbQ3x7VsYC8TRYrKzWAq2aQKb0QjLXkwW0FwhYBlGzfa3SEmoZw4mZvAmlhHxAV1B8prB13FldfG0= X-Gm-Message-State: AOJu0Yyvv2gK93oAsZ97f1/2TsmbsU0FV481uuciBzxOzLqTSG8XNM8n BPG1FdEkwacQ2YFRCQLUMcNjcAxjpEtc8k7+OKzRvEDbacsLrlvI X-Received: by 2002:a17:906:ad7:b0:a59:c3a5:4df0 with SMTP id a640c23a62f3a-a62280b040dmr119223166b.4.1716368067362; Wed, 22 May 2024 01:54:27 -0700 (PDT) Received: from gmail.com (fwdproxy-lla-009.fbsv.net. [2a03:2880:30ff:9::face:b00c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b17814sm1732868066b.206.2024.05.22.01.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 01:54:27 -0700 (PDT) Date: Wed, 22 May 2024 01:54:24 -0700 From: Breno Leitao To: michael.nemanov@ti.com Cc: Kalle Valo , Johannes Berg , Justin Stitt , Kees Cook , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Sabeeh Khan Subject: Re: [PATCH 07/17] Add boot.c, boot.h Message-ID: References: <20240521171841.884576-1-michael.nemanov@ti.com> <20240521171841.884576-8-michael.nemanov@ti.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240521171841.884576-8-michael.nemanov@ti.com> Hello Michael, On Tue, May 21, 2024 at 08:18:31PM +0300, michael.nemanov@ti.com wrote: > From: Michael Nemanov > +static u8 *fetch_container(struct cc33xx *cc, const char *container_name, > + size_t *container_len) > +{ > + u8 *container_data = NULL; > + const struct firmware *container; > + int ret; > + > + ret = request_firmware(&container, container_name, cc->dev); > + > + if (ret < 0) { > + cc33xx_error("could not get container %s: (%d)", > + container_name, ret); > + return NULL; > + } > + > + if (container->size % 4) { > + cc33xx_error("container size is not word-aligned: %zu", > + container->size); > + goto out; > + } > + > + *container_len = container->size; > + container_data = vmalloc(container->size); I got the following error when compiling it: drivers/net/wireless/ti/cc33xx/boot.c: In function ‘fetch_container’: drivers/net/wireless/ti/cc33xx/boot.c:76:26: error: implicit declaration of function ‘vmalloc’; did you mean ‘kmalloc’? [-Werror=implicit-function-declaration] 76 | container_data = vmalloc(container->size); | ^~~~~~~ | kmalloc drivers/net/wireless/ti/cc33xx/boot.c:76:24: warning: assignment to ‘u8 *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 76 | container_data = vmalloc(container->size);