Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp312542rdd; Tue, 9 Jan 2024 05:09:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/uIaSEcVtoNTGq9/RSwz2ho7unNpcXRwHMF9zp4I6b/CfPj1uRL7I5IDD0gpQJjx0v5I+ X-Received: by 2002:a05:6e02:20cc:b0:360:77b1:8b53 with SMTP id 12-20020a056e0220cc00b0036077b18b53mr6359705ilq.9.1704805755646; Tue, 09 Jan 2024 05:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704805755; cv=none; d=google.com; s=arc-20160816; b=zKoumFpcAzXtROZgSrizKa8gDtljAhAvJjmswcCnmjaQ8t3AeOvBWJXYCzOS4BAHk+ N5iGq/gn5e+wHCuCkBpvcX1zAS48SJILpvoN2K1trY/orvZdscRh890PDPItjp8Z3es6 sSPw7sjfdkN5lWAAUZGvh5v55IyAAMDDmrEhPx7YAjN7IzVMigoQhfA41XCCnIWTdaSa cj7TNj8iAY8BYFgoTQ8AtcMW+5ME59ze6hxQsKM/DKJDR47bQ045rx24Jd9FYj+B5xMB 7yRfpzn/q/3ffKVLx2qyo2MA9sBhPrM7ngin8ciZmke5dtFfjNOGbWgN0Q43ZC3uM9fW AmxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=w3XhgSd+sSqHEwdU3GUDN+B1OkqPCCBoAoVTRikJnaY=; fh=Kr3IN6esmjNREfkbiMm8bL6RvF40RecC5yDEPfmNSiw=; b=oPa5qWQpFJMP/aSko57BdaCvkTyU1X7ysfYL9ev3gzjTd1HfWXeZaAR10Z3piN5pIl phss3LfnfDjtEs0hbOWKy4MaXJXIVSLGOSQn9la3mklHTt2Xojn2Tkq6bFilnDaVEN8t y2PvzqqEjelXwlYrmyQ8FmP07V+X1xYYvhJ9EpMXIjRO67Qh+lioIJNOCIBdPfw8WR/B Ipz7vC1lHYkuZtVLOdYmOL+n9GGugOBwRWxujg7Jsm/m3DVAyiGyw/hlYfVnnuA0skrA goLJ4wE+xu0faVPz6cG7Ec6BqQEgiFSSAnkxdBF0T8KmWjgyZcCnj6Z0z7CGOwKDIe1K OVWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WfawUl4n; spf=pass (google.com: domain of linux-bluetooth+bounces-990-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m124-20020a633f82000000b005ce035519d0si1363001pga.592.2024.01.09.05.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-990-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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WfawUl4n; spf=pass (google.com: domain of linux-bluetooth+bounces-990-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 8D48B282743 for ; Tue, 9 Jan 2024 13:09:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04C6738DF5; Tue, 9 Jan 2024 13:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WfawUl4n" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 F21E638DD8 for ; Tue, 9 Jan 2024 13:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 409D93J9030298; Tue, 9 Jan 2024 13:09:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version:content-type; s= qcppdkim1; bh=w3XhgSd+sSqHEwdU3GUDN+B1OkqPCCBoAoVTRikJnaY=; b=Wf awUl4nm8nxaVwNW99X3q5N0Efn+g6jJFdXEZX9zmWX+1QZYoQKqeBDw1uSKkqVOP FL9Rvl1DTMQi4aXhMJsva7J0jsVkjTT7jR0TbBeJ2OZ245xlHRLQF5eH8LSM4epI hZdcrJDwkBsxEH23abuTL3tz8/oiIwVg65ciJ6NHZCGz2eNHQBLyCGs4zmOEJXxX QYSQnSztZwbb7ROwTa/SmHCV9klW1IyNfRqAp20BIZtckFQpmRjDhUUSSAnwmsYo rPqlAz0anKRmHt2cmShWEXuHTZbbCyti/KKaPnraRo1MhJx9tamCVKh9BjUX8eDv Q18bnGXFHydifh0ZrS7w== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vgr1shnh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 13:09:03 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 409D93fq000966 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 13:09:03 GMT Received: from zijuhu-gv.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 9 Jan 2024 05:09:01 -0800 From: Zijun Hu To: , , CC: , Subject: [PATCH v1] Bluetooth: Remove 3 repeated macro definitions Date: Tue, 9 Jan 2024 21:08:44 +0800 Message-ID: <1704805724-8050-1-git-send-email-quic_zijuhu@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: F1eE9RbTgbTzAoeAbYnms6sJ6ReEiKOq X-Proofpoint-GUID: F1eE9RbTgbTzAoeAbYnms6sJ6ReEiKOq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 impostorscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=807 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090108 Macros HCI_REQ_DONE, HCI_REQ_PEND and HCI_REQ_CANCELED are repeatedly defined twice with hci_request.h, so remove a copy of definition. Signed-off-by: Zijun Hu --- net/bluetooth/hci_request.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/bluetooth/hci_request.h b/net/bluetooth/hci_request.h index 0be75cf0efed..c91f2838f542 100644 --- a/net/bluetooth/hci_request.h +++ b/net/bluetooth/hci_request.h @@ -29,10 +29,6 @@ #define hci_req_sync_lock(hdev) mutex_lock(&hdev->req_lock) #define hci_req_sync_unlock(hdev) mutex_unlock(&hdev->req_lock) -#define HCI_REQ_DONE 0 -#define HCI_REQ_PEND 1 -#define HCI_REQ_CANCELED 2 - struct hci_request { struct hci_dev *hdev; struct sk_buff_head cmd_q; -- 2.7.4