Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4024110pxt; Tue, 10 Aug 2021 17:56:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvzFgtcojktPNo2OtacwdFuG+scfGLzCgc30f3N7OCX+i+pDD+9HWeFW4rxVa/+qKiBxNg X-Received: by 2002:a05:6e02:2147:: with SMTP id d7mr317651ilv.179.1628643374608; Tue, 10 Aug 2021 17:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628643374; cv=none; d=google.com; s=arc-20160816; b=C4/MOI/BQS0b3NWIP1vZvFYVBBx4iPs3p7aiU68QNtNg8Tu/EsNEWl3VHf3Nx4yOKE uv5HJs8+ftx14llZhwWV53hV0OGQ7mQniK+Zzaujul0Fwdz0J2TwJxtI03pm5Yc+po3c a9QS5b9ltWz6qveLZCvJZbbDCB9BLCVPaQwNuqniKVCxBF5wc7+t5kjCYtVu1JiJtD9h bC5xPqJuKjnl3IMvWuRPvM08L428kGgNxtB292BBvH176uCBwdc1K11vDzarj7zyUeEX +X6WaTN1fhystFSGWUObA/5h2D/D7PKI//slgh7konVk+t8CnN+5uRPmHcQSLln0lQ+f ftaw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+x0akpu92GDQ2jV/npBoIQb7t4+o47O7nVMfP5GsI4Q=; b=oqMVAaG0ayOE4DK63b7u4wgce+FiiyJy8w/38+MfT8j5vVvDdzkI5nT0a9XHUtNf/w G0iXmDuYxaEwe/r5yBm1zG37Y7CXbMif2YzZbXjtbO9V2smuPLmCvFXBxe4LsSE1dzt8 XduNKtQlaWJOI0Ys1jLV2rVaf4aiF5cjuPFQI3COS+L2RKMhGOs0IoZKA1tVLuDygf1k hiT5J6rQuX0Lr+UuQ9pHW3mPl+aMY66gHxKInE851jyEypnVjYbsRumvNJo9Zow5NHy3 ZM/Hob8DwvhIWdc6GbN1Jjt9X909A67zPQZDh4wcaADskJXGPv4Ftw/iZloGFUDsTMfY 4dCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/on2pMT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si12079432ilj.12.2021.08.10.17.56.02; Tue, 10 Aug 2021 17:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/on2pMT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235757AbhHKAzo (ORCPT + 99 others); Tue, 10 Aug 2021 20:55:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbhHKAzn (ORCPT ); Tue, 10 Aug 2021 20:55:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA8C560EBC; Wed, 11 Aug 2021 00:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628643321; bh=DTAl8Wi9FD9YleLLXVNMvg0hoef/6IRV9MZimfYACKs=; h=From:To:Cc:Subject:Date:From; b=S/on2pMTwZaJSwkcXzWZVlrGebs2GrailsKp9itDSYbLhN3bH7whN4Iu24MX2FEO+ wG7Ks4XZPTTBGeuIbXwD+949oawDjbNMcEtItsLRBsGTiDZaQE30PfF+YfaHcWFbvQ 2WGyWZRYRRw/5+V5vOxC6Dh7kB2cCz/GThFIeJO3eSxviYttpxXux2Z5CisxLUc1JQ /mAqsCdVOe65QDcTV6lwlDO/w3Rr9OYK14IUXWc37IzOLhofTERPlWKF2vZmbEf7+Y mQc1q9bJbb0y8iL6U9dIG0f+ewoQCAMg4CO3YVxCj5uGpoxfMEdzKMErl4bh5OuxkS fvPVsOKVdmPFg== From: Nathan Chancellor To: Larry Finger , Phillip Potter , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] staging: r8188eu: os_dep: Hoist vmalloc.h include into osdep_service.h Date: Tue, 10 Aug 2021 17:55:05 -0700 Message-Id: <20210811005505.3953122-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc1 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 71f09c5ae9d2 ("staging: r8188eu: Remove wrapper around vfree"), the driver fails to build on Hexagon due to an implicit declaration in several different files: drivers/staging/r8188eu/core/rtw_mlme.c:129:3: error: implicit declaration of function 'vfree' [-Werror,-Wimplicit-function-declaration] vfree(pmlmepriv->free_bss_buf); ^ 1 error generated. Previously, vfree() was only called in osdep_service.c, which includes vmalloc.h for vmalloc() and vfree(). Now, the driver relies on vfree() getting implicitly included from another file. Hoist the vmalloc.h include from osdep_service.c to osdep_service.h so that the driver continues to build fine on all architectures. Fixes: 71f09c5ae9d2 ("staging: r8188eu: Remove wrapper around vfree") Signed-off-by: Nathan Chancellor --- drivers/staging/r8188eu/include/osdep_service.h | 1 + drivers/staging/r8188eu/os_dep/osdep_service.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/include/osdep_service.h b/drivers/staging/r8188eu/include/osdep_service.h index 7e002009f9a0..0d1419af8274 100644 --- a/drivers/staging/r8188eu/include/osdep_service.h +++ b/drivers/staging/r8188eu/include/osdep_service.h @@ -39,6 +39,7 @@ #include /* for struct tasklet_struct */ #include #include +#include #include #include diff --git a/drivers/staging/r8188eu/os_dep/osdep_service.c b/drivers/staging/r8188eu/os_dep/osdep_service.c index 910da0f0004a..9ea4e1a7c45f 100644 --- a/drivers/staging/r8188eu/os_dep/osdep_service.c +++ b/drivers/staging/r8188eu/os_dep/osdep_service.c @@ -6,7 +6,6 @@ #include "../include/osdep_service.h" #include "../include/drv_types.h" #include "../include/recv_osdep.h" -#include "../include/linux/vmalloc.h" #include "../include/rtw_ioctl_set.h" /* base-commit: ae7471cae00a432d1c9692452b1b9175a8f3c1b3 -- 2.33.0.rc1