Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1737935pxb; Mon, 12 Apr 2021 05:43:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB+s8tBDhMP7WGOjYTyrCPDs9wa45Jp7kegg3qxh5KD63nKlogixDc5c+fdSlD0cGi0u9e X-Received: by 2002:a17:906:d8cb:: with SMTP id re11mr6974898ejb.204.1618231409303; Mon, 12 Apr 2021 05:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618231409; cv=none; d=google.com; s=arc-20160816; b=QztNronELRa08jBojNkFSEJ+V0J3xLLiU+ZdrjgsG3m/jRcvU33WlRJuJ2GBoNcHi/ yMyzNWwcQB2zByLN1cclrRSdU2Hb+PUivG4tt/aAUY3lpl5OG1RARvoBj/Mkty0kXT1k +cwR1k4RwD8OlDarIVLRU8nNpuxJ1ki7hdfuPGDRPzW1HuLMn8qqwOiLbpiVNe7Co+wc 2xl4DMKWEq6CfcINjkjZcSSelljC8DjcvIPuU2+NggmSxk0sUDpCn3h9zGFgZ9K4OXMn Wkt+JeOSGZxEknC/Y4UPNtkhwNVNoo1ptAOSo5bnf5Cvti/JmM2TDhq3ev4aGAbMS/MU bOMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mDtDoRs+7JTKmRSNbYm/eoC5RrOrbwKn07hGic3mdK8=; b=OOtAi+8p9EMVDg0DeGtEhZnszPZeL3TKz5Ap8gekxclFE6+71DRpQReog3Z48wU2nr y/HXkBRJtNPNW/DhqHPf0sXsAnhImV1WBc5VUnEN7R5cM1oSz31hDIcusJAP1JQ4cvbn VdMPBPBfc22mhi0bAwqcHk0Vq2AD40R4tNcmdzycEGJauooEMf1mcVY96geVUupjTV+z qX2CbwP4n1P3gXDS6NlRufgxciZmL0F0xMNIFToC1Pet8haaxmLS2WZs+Lz5LN7ojIfu x3oT3WAUqM/26GHk+a3tjQoznbVTmzpLgYboIqOGpRhJ5T4JmYKfv1HHZSC+GFCPwrjo MxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWpSopbf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dy26si7279985edb.174.2021.04.12.05.43.04; Mon, 12 Apr 2021 05:43:29 -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=@gmail.com header.s=20161025 header.b=rWpSopbf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240307AbhDLMlI (ORCPT + 99 others); Mon, 12 Apr 2021 08:41:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238587AbhDLMlH (ORCPT ); Mon, 12 Apr 2021 08:41:07 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9495C061574 for ; Mon, 12 Apr 2021 05:40:49 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id g66-20020a1c39450000b0290125d187ba22so6308507wma.2 for ; Mon, 12 Apr 2021 05:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mDtDoRs+7JTKmRSNbYm/eoC5RrOrbwKn07hGic3mdK8=; b=rWpSopbfXoidRd+rBu8OzHyrQSkM/8rg+DbhCxV40cfP343hyJOaPcMVGstU61R6HS FB2FfC6o7MQv9Scm43yyGbYMY4eDR26hRa7lMtjQLsMj0aVRtGpPFCTMjzSkZPHGqM1C ludoR4jQjsaAzQvje06u04ytzHvzkLSKkLIzF523OkzNQV+Rabg4BSNY0koV6kmI7yNj 9SD/NpA1ohOrGv6jkWGVx/5bXWbyWWLoybs3/aoWgy0fg8yvFSNAWCQGT7Q9AXj8TRdd 7+IcHxNf0ahsCTBp2Q9vjkz9Vp7+xAVUYZpzrHyZxK08kFePpDl8i6RiyFmnFRdlLme2 PUlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mDtDoRs+7JTKmRSNbYm/eoC5RrOrbwKn07hGic3mdK8=; b=Qn4qBB0A5xlF5xKT5OOXEfEJ3OHiI5BmjdEJEkF9XxWfVIFxTu8AS3p6BrYapxNGyT DN0d0mc6tEMyTYWKuczq3ya7DlK0DyU/6s1SroqO3Ey9W3/EVHBMMJKkkbbxZGLVy+dv E5k/CYx0Zps860oDjhhPmZ5RoOOSFHxtjrvAJaxL/B6AHXhWRa/hUOvmbPE48WGCBrzh ME4NVWFGUmf8eEEvo0AbSHSUKaZlHCsHk2YeqUOBvAX80S+8WbMiTJwrm64q6vQYHAVr CODAHywYlWYhWmfGDynHxyERpROXvduVphj3ExD/mJ1b/8e02qBYmafeTPGCp0eJjQuz llUg== X-Gm-Message-State: AOAM533avV4ZIQUYOxqB8nTH5MBFnzffNNq/z24IsYJrBmzMpA4ZCJcW TAVAdINBTepeX0XaXzUunA/PFNMJ/olGnhXuPcM= X-Received: by 2002:a7b:c003:: with SMTP id c3mr26208794wmb.59.1618231248564; Mon, 12 Apr 2021 05:40:48 -0700 (PDT) MIME-Version: 1.0 References: <1617957240-53633-1-git-send-email-tiantao6@hisilicon.com> <44f55f42-cb52-f705-c40a-6d5c1844f56b@huawei.com> In-Reply-To: <44f55f42-cb52-f705-c40a-6d5c1844f56b@huawei.com> From: Sven Van Asbroeck Date: Mon, 12 Apr 2021 08:40:36 -0400 Message-ID: Subject: Re: [PATCH] staging: fieldbus: simplify devm_anybuss_host_common_probe To: "tiantao (H)" Cc: Tian Tao , Greg KH , linux-staging@lists.linux.dev, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.