From nobody Thu Dec 18 20:20:11 2025 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F02411990AF for ; Wed, 18 Dec 2024 10:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734518686; cv=none; b=edt7OCyNLOkPcJobVvkkXA7VOxIMELfIuTTiHL3Ep8RsYVBRWvjxoZCkGeX/DDofm/DasaP4RZUFa4d64Nn1Mr94E65AIZuT4OK+rM5+lT+5k9tIUH77ANu00Cxt1NvuKJ5uoUXeX2VN/K1zOOL4QwEV9BOdal99a+gLqCtxR84= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734518686; c=relaxed/simple; bh=iDdXmqmSwjiQoi2qAtJBWElM6KEgsQGi8PQ36S43oeM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iVwnY06LkM0RKrjMPZ0XktI43eShUFNl2FZwzXxoV3w5jBbB7cN7GtDnVq4A4Dzk1Yjm7nBsHfB3hWC5IZKIv1CC9rGHyvcCb4nqP0WS0bsZLmQvDX66k4UWsFrMAh39O6zxBs5UPeEPNXLRhbddN84udr0/6FW52DV44y8uiRw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=DIMGmaFV; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="DIMGmaFV" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4BIAiTt8104011; Wed, 18 Dec 2024 04:44:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1734518669; bh=4wa9FNFNOPxjnPG68Tfb2qd08hOncfWCOKtdxzoiwkU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DIMGmaFVsIlh7hwpf2PCCQJfDIoie4fEOtecGvOSiPswQjQ25FWt3QiDkTCfIiAf6 SL5s09YIc67Gy6Es9GKZnBcyTkABS5TIh+JOkJ49J5/ZnFnoJsNsntyjwQwYAHdVxz t7g2uu/ABUSqce0DGyGKtmKMICSiCcZiX2iCRJeU= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4BIAiTvs111287; Wed, 18 Dec 2024 04:44:29 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 18 Dec 2024 04:44:28 -0600 Received: from fllvsmtp7.itg.ti.com (10.64.40.31) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 18 Dec 2024 04:44:28 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by fllvsmtp7.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4BIAiSi7089723; Wed, 18 Dec 2024 04:44:28 -0600 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 4BIAiR9m026894; Wed, 18 Dec 2024 04:44:28 -0600 From: MD Danish Anwar To: , , , , , CC: , , , Vignesh Raghavendra , Roger Quadros , Subject: [PATCH 1/2] soc: ti: pruss: Fix pruss APIs Date: Wed, 18 Dec 2024 16:14:23 +0530 Message-ID: <20241218104424.1257880-2-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241218104424.1257880-1-danishanwar@ti.com> References: <20241218104424.1257880-1-danishanwar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" PRUSS APIs in pruss_driver.h produce lots of compilation errors when CONFIG_TI_PRUSS is not set. The errors and warnings, warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] error: expected identifier or '(' before '{' token Fix these warnings and errors by fixing the return type of pruss APIs as well as removing the misplaced semicolon from pruss_cfg_xfr_enable() Fixes: 0211cc1e4fbb ("soc: ti: pruss: Add helper functions to set GPI mode,= MII_RT_event and XFR") Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros --- include/linux/pruss_driver.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/pruss_driver.h b/include/linux/pruss_driver.h index c9a31c567e85..2e18fef1a2e1 100644 --- a/include/linux/pruss_driver.h +++ b/include/linux/pruss_driver.h @@ -144,32 +144,32 @@ static inline int pruss_release_mem_region(struct pru= ss *pruss, static inline int pruss_cfg_get_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 *mux) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 static inline int pruss_cfg_set_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 mux) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 static inline int pruss_cfg_gpimode(struct pruss *pruss, enum pruss_pru_id pru_id, enum pruss_gpi_mode mode) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 static inline int pruss_cfg_xfr_enable(struct pruss *pruss, enum pru_type pru_type, - bool enable); + bool enable) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 #endif /* CONFIG_TI_PRUSS */ --=20 2.34.1