Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7860690rwp; Wed, 19 Jul 2023 01:07:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFEuUE1EJmZ3ZXp3L59NuX+fahkQXzxsw34pgr74ZugnL5toS+1vAFAy6Iht/DUyz5GT72S X-Received: by 2002:a17:90b:3449:b0:263:f630:228f with SMTP id lj9-20020a17090b344900b00263f630228fmr16815936pjb.23.1689754059276; Wed, 19 Jul 2023 01:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689754059; cv=none; d=google.com; s=arc-20160816; b=VhsTPi8vE9Z50r7Gq8o7t93uvG3L4+d5aw/7ZJeF7+B24634fQv76bJPTHR75Br7Ds tBRBMFjf55P9RexhR8OYb5fJc6pCMTujwARHPz3meR403MJ7/DfXIXWQpOfVNKn9ssd4 TrKKXgSWCEZNyB6SJRoumZvkVXdPYDKc50xacBo127ICFpKuUmtLevPa15ukH7rGq2XT g4HlnKOh0MiZEs+2NM4ekh68Z73llmflLVZ+pPwpUQZe2VL5q/U3+hwnxhV2SpPCyFCe QHLc44lN8lXnu608UUyA/7PpT7KPX9rWs/kqaVJ/BieWubv2KH5JNqq/psHffjIaS7Re vPbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UX6ZdyM5wEmrpik0psSyRcU5JjoiPAf9kF8mqF500wc=; fh=WDubIweg+YFrKFtzm0A8InPD8IYkewPMr3Vis+Q4g28=; b=cLZ4ocrTjPIM++xjb5rt53Omy0Oq9FfPhd5mmevnoHjDiQ3myThs80NVkL0UoOLU+V iOV+zohn4B+WjPeZBdzXs++vrGWSQCufx/hHrQ928UDDq+HkZrWov8ztVbfm2PyLInCE McCpqTVDJHH+gf5e/FuFbQt48DrKFTtwzo4dvhMMx1/YxaxoUTjxZkbb7QB0DO11RzTC ZjqLDP4bYqUUWm4fNucha8G8CE3I65cl5llDuP+5HPwIfappHdmfRON/BG0509AUooBM PqYa0D1suUCRKo0joZmDeOO62lX4kViJnUqaL5PETb9fm8v5CjuNAKgE8b/j6b53u44A bRZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRTysXfa; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a17090a660a00b0025c0784b6f4si981884pjj.144.2023.07.19.01.07.16; Wed, 19 Jul 2023 01:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@linaro.org header.s=google header.b=fRTysXfa; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjGSICJ (ORCPT + 99 others); Wed, 19 Jul 2023 04:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjGSIB5 (ORCPT ); Wed, 19 Jul 2023 04:01:57 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A8B31FEC for ; Wed, 19 Jul 2023 01:01:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbfcc6daa9so61181265e9.3 for ; Wed, 19 Jul 2023 01:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689753713; x=1692345713; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=UX6ZdyM5wEmrpik0psSyRcU5JjoiPAf9kF8mqF500wc=; b=fRTysXfaetG2sRpxmcXhoCnfUYUJQpX2v9kigO3Ow3Ym7PV4HJgRVZPRxGGipWYNII ij0vahFhRkjOpRklb6VrgUVM2Qn0HAOSMJ+CHdABKKNS6M4Oo7kYsLqVWXHTr20T+AY/ EpTqeAu2TaJPZA6V96kfWCkqauePTuJDojJ2fKwo9KQ0llo+DO71hJnUxh6vx1+bVTdZ fqyZueCd4APPQ2sz0Pvvt2O304SeVOUO4UdPv267KPbOAlP+2UCFgpLOfzTD5Piv5Kly qIIZtzbSQLSLpcGxhq990xYAtkZ62oIu83ZscZ1V+XgEWcKmwNuWJpZ/FMSD2dIP7Nbt zXlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689753713; x=1692345713; 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=UX6ZdyM5wEmrpik0psSyRcU5JjoiPAf9kF8mqF500wc=; b=NkjyT5WFjhjc1Qx6lyHAsjQtdjuOFexZEo9YZI+U7BnDiH8Oj0GjJj4rExysllmEDt AAemJqXjUPS96L2P5nhQXscWRdZLyJnSg1qRA/T6rtggDtBJijKNGPtmCBbHCKmARW34 dX6ZgZgB9OkIRfLyr+QYsMPzpgAHsCDyg7qjJIFr+cqp8CbdJwgd2SrBHnJ3swixD5Qn DyyzRoOFXZsC98ZBmUiRd40y0gq1Lz0LsDR4rBRxZ1F0f4zTLGoL8cAWo9NsN+woHW9h IoHfgmltzjtXDmTJdx+aWElxIadGlCBYzKvBdf6r8kUtxU+4ecnEAUeh7+AnQkfrUSnw sH2A== X-Gm-Message-State: ABy/qLYNvUG9c9xCRlbVzt6Oslmm1bRbPLJxhaw3NNO4xJNz7ZuAdj5p zcXBK3edynAI+M+w9YXS0BAHaQXH2TXJwu2e7oo= X-Received: by 2002:a5d:6212:0:b0:314:1a98:ebc0 with SMTP id y18-20020a5d6212000000b003141a98ebc0mr1378282wru.26.1689753713507; Wed, 19 Jul 2023 01:01:53 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id v12-20020adfedcc000000b00314315071bbsm4583287wro.38.2023.07.19.01.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 01:01:52 -0700 (PDT) Date: Wed, 19 Jul 2023 11:01:49 +0300 From: Dan Carpenter To: Luiz Augusto von Dentz Cc: Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] Bluetooth: hci_conn: clean up some casts Message-ID: <182a5159-3378-4d3b-8d05-bcb931cf450a@kadam.mountain> References: <5cbde2b4-69b5-4b25-a095-251c8347cb09@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-bluetooth@vger.kernel.org On Tue, Jul 18, 2023 at 12:30:57PM -0700, Luiz Augusto von Dentz wrote: > Hi Dan, > > On Mon, Jul 17, 2023 at 3:20 AM Dan Carpenter wrote: > > > > The ERR_PTR/PTR_ERR() functions are only for error pointers. They're > > not a generic way to cast pointers to int. > > > > Signed-off-by: Dan Carpenter > > --- > > We should really create INT_PTR/PTR_INT() functions. But this is a > > cleanup until someone creates those. > > Is there any reason you didn't create such macros? I mean we could > have it local first, or perhaps we just do HANDLE_PTR/PTR_HANDLE to > avoid any confusion. > Yeah. I can do that. regards, dan carpenter