Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1754702pxb; Mon, 12 Apr 2021 06:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAaFsvbEajzSetDOk014niJAgkmKcVqibC026WVVryR7R+hxzctpgf5XdGCFOPY21/Y+R+ X-Received: by 2002:a63:7d5:: with SMTP id 204mr25983456pgh.259.1618232830614; Mon, 12 Apr 2021 06:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618232830; cv=none; d=google.com; s=arc-20160816; b=K8l+6/NZdsfv0bA0NCLJ0vEOrQgiMVy5Q8RmTgujFyxUfokkiGFWqmzvJ0BQr8JZnO y5I4tOmY8G37RKWAOaCd02j5YWby7cQXYHnBx4CqPKfIIWKFjW0DCdxMBG60RxvMLh4G s5aWz93bhDcaGcVhUhuG5eV2XAsCOCwga8glVq5g7Bf+FejNBxbfN1yRwsyp2v9xTyAs wAyQnNeo8ka6jCMc+k5NaHzHcZzJMqNVFGwqsw/NLrfD9BBDN1DQ9zXAaVrVg0Ya63KI tuKzrzZno4NnNHByMXXLTu9okpu/nKAtkE3O0LIjBsHxnpyFbORtORePeaSm2jgLwKEa YnFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=7HAgDzr6htDQEHatrtTHYH2gPTMBrMF4aS1i+ecMZXU=; b=cn+WTrkpOB6BKweNyH0izLgBvv6syzoF31g7bGmbOr9w1Ees0IsOuR65egnFh502Dc IDjvoz0ecUSrDogKaI7oiqqtSclc7/5Cchmdy/XQ4LMiLxI+yNwnjmTA4SbHvBdvn7aq f4NOrd+UzK5feKgqDf0dHbCYmAFNSugnGIb/o1VdXDrMAbWHL1NYbKI+bgrfE8reC9JE nm+8JfIEDN5lAnN6nzKvZ1HFl+WBOSIXjIAzTa7gk/NsZmbEQDp2EYFvrs2fyA95lk3Y 3eQdBlsF68iyfpPqqqtlKDxd4zza/t9s7yFgS4il15OjhUp2mf6nD9LERYfNVWwS0eL4 aZLA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si14528191pfd.51.2021.04.12.06.06.56; Mon, 12 Apr 2021 06:07:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241631AbhDLNFn (ORCPT + 99 others); Mon, 12 Apr 2021 09:05:43 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:17314 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241518AbhDLNFm (ORCPT ); Mon, 12 Apr 2021 09:05:42 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FJpnQ6z4Zz9yg7; Mon, 12 Apr 2021 21:03:06 +0800 (CST) Received: from [127.0.0.1] (10.40.188.144) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Mon, 12 Apr 2021 21:05:13 +0800 Subject: Re: [PATCH] staging: fieldbus: simplify devm_anybuss_host_common_probe To: Sven Van Asbroeck CC: Tian Tao , Greg KH , , Linux Kernel Mailing List References: <1617957240-53633-1-git-send-email-tiantao6@hisilicon.com> <44f55f42-cb52-f705-c40a-6d5c1844f56b@huawei.com> From: "tiantao (H)" Message-ID: Date: Mon, 12 Apr 2021 21:05:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.40.188.144] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/4/12 20:40, Sven Van Asbroeck 写道: > On Sun, Apr 11, 2021 at 9:14 PM tiantao (H) wrote: >> What about doing it like this? >> >> -static void host_release(struct device *dev, void *res) >> +static void host_release(void *res) >> { >> - struct anybuss_host **dr = res; >> - >> - anybuss_host_common_remove(*dr); >> + anybuss_host_common_remove(res); >> } > That looks like it could work. Can you resend as a "proper" patch, > please? To tell the versions apart, simply specify [PATCH v1] [PATCH > v2] etc in the patch title/subject line. Then below the patch's "--- > line", add the version history. > . sure. thanks for helping review。