Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4886565ybh; Tue, 6 Aug 2019 20:16:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKTrFhNbQfMQw8Gkp2oTJMhQrxeXdwE6J8izh8kroq+mGkl+3g5MJNOmIgJeQgKVYsRmKv X-Received: by 2002:aa7:97b7:: with SMTP id d23mr7320325pfq.203.1565147808086; Tue, 06 Aug 2019 20:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565147808; cv=none; d=google.com; s=arc-20160816; b=agO0a7vID5O1IZSI1aLdFHm+kU88x6SDG8POTZHJ6tglS2VF/xa7mQoNVwNUwm1VL1 MyKOzSWRagz511fK9r2JAZyn496d2i4d39NDQeSRGQtC2Niq3sNb8w42/XUcEsxUOjth Z3Ui8dHw69UC3skd1l+GWG3A4GCXtf3NWoli7X4fcrVpWJEDosaUyJFLc1D3eBecBwCs C/G8xAxMoAog0w5Ji2kn4SKJwbZKSqhYMBJduelgiPVoEryEx3ADnAQFoepmGItniMn5 vPiZjxJv3RzHhzDijvP4cDl4DK1FMw6BOnXAIYGzEEamR4AZXfbttVj8PHCG/sZZ0qxP AZiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RYNm3xXkh18oayvUjn4NCreiBxM8+kMAVgWfu3VtfPY=; b=epWGA36hJr0MeuPQxQDN8s6zx9jJFT/oL0BBjOk6ZPiwD2qcFtfR98380ws1dQ4TTU tqZEhhM/yFymWrayuu0+6a5+ZNRhCfHjaqpaM6j4jHT9GRsii8lnFJ1xvi9KCC1ManN2 1WCG9ahHldm/7v8X1aHr16kP3LFE/Qwd2MUAjy/6j2EUFTq1sCS1G3R8/Yy5SPfoVzJj 5XSBOcgA9lq99bhn5E0iGzs8gUqpry5nH4DfBk21bcfsShurfBE0tqcv76nba1wDBXju 0jB5wOecvg2PGBf3Tg7C1A0LtyBVE65ytbabA4NLKGlwraY0wnpzayH4R9jD1V7TEezQ R0nQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z189si46844868pgb.491.2019.08.06.20.16.31; Tue, 06 Aug 2019 20:16:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbfHGDCc (ORCPT + 99 others); Tue, 6 Aug 2019 23:02:32 -0400 Received: from mga14.intel.com ([192.55.52.115]:3663 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbfHGDCc (ORCPT ); Tue, 6 Aug 2019 23:02:32 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 20:02:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,356,1559545200"; d="scan'208";a="374258437" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by fmsmga006.fm.intel.com with ESMTP; 06 Aug 2019 20:02:29 -0700 Date: Wed, 7 Aug 2019 10:45:22 +0800 From: Wu Hao To: Greg KH Cc: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, atull@kernel.org, Luwei Kang , Ananda Ravuri , Xu Yilun Subject: Re: [PATCH v4 11/12] fpga: dfl: fme: add global error reporting support Message-ID: <20190807024521.GD24158@hao-dev> References: <1564914022-3710-1-git-send-email-hao.wu@intel.com> <1564914022-3710-12-git-send-email-hao.wu@intel.com> <20190805155626.GD8107@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190805155626.GD8107@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 05:56:26PM +0200, Greg KH wrote: > On Sun, Aug 04, 2019 at 06:20:21PM +0800, Wu Hao wrote: > > +static int fme_global_err_init(struct platform_device *pdev, > > + struct dfl_feature *feature) > > +{ > > + struct device *dev; > > + int ret = 0; > > + > > + dev = kzalloc(sizeof(*dev), GFP_KERNEL); > > + if (!dev) > > + return -ENOMEM; > > + > > + dev->parent = &pdev->dev; > > + dev->release = err_dev_release; > > + dev_set_name(dev, "errors"); > > + > > + fme_error_enable(feature); > > + > > + ret = device_register(dev); > > + if (ret) { > > + put_device(dev); > > + return ret; > > + } > > + > > + ret = device_add_groups(dev, error_groups); > > cute, but no, you do not create a whole struct device for a subdir. Use > the attribute group name like you did on earlier patches. Sure, let me fix it in the next version. > > And again, you raced userspace and lost :( Same here, could you please give some more hints here? Thanks in advance. Hao > > thanks, > > greg k-h