Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2918774ybh; Mon, 5 Aug 2019 08:58:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFBvGK6MK+QTCUP4FV/P+/PuV1LblwQn70rt+QNixaFEDrzpKq0M3LNP1CLyyK/5Hud5sR X-Received: by 2002:aa7:9146:: with SMTP id 6mr71283303pfi.67.1565020716104; Mon, 05 Aug 2019 08:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565020716; cv=none; d=google.com; s=arc-20160816; b=wEZo/N++5KDtakdcIaEwIWdrOiLrTKaAMjGFmcbOV0omQT7kQAqhYfZars8ZAqa635 WqZZQYpkTywGixgC9do7X9sXoQXFFCxu4nSGp0SsRl2qqt9H1FO4lRDX7ODVtXCQDuLr cF2RiGewtoeyjSvqs2d6TjL2zzrzyMUXqIZks1ITyNr3yWrQn6GUadvKFw9lRI98Saip 1AcnZyqAtGeXJU7IKjEgaJpzZ2KVTTfm7p5GnvmPyEgrJllkwIL+jJummMHnT3kzCLQX 6JNmJejyI3J1Hxdoab+A4dEMWTuuq1YWJXhmjt9HwR7XMPFh0LDdw+683UXziGXovDpf 5P9Q== 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:dkim-signature; bh=bpytq+twF26KHjtXtUnKcJj0YC/AwuUor3CAQPWCMlY=; b=z9GxdOxDBu6lKVu+6/bkcuZ7Si/kez/JaJkXcg7/q6PchTyn4aJIfiLVM7PPvkD96M 6sXFtF7S7tE+qII6sKQjmZbFrmgAbWDgoOCsdWFDyer+vBAFx0jl/d4VQP9JvxRiuh2X YnWP4E4sak93/o3W27uXvh5sj8eyA3K/O4u+ZTKyTfowHfFMRcSwRcwAdh2oXYO9BbyI kBzYWOuKplvINuVR/ZXf1E4f0pCcnaalnzl6dtWPv7kY2VGLLw9gQI5jHMA2Ud9I+pfs ti67aKX5U3HgRO32cgooA1Rf3NLyi7qnWZLE08Fym+GzX2PdDcKBK14pGm2D2LJWKWiv 77TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gx8rSdgX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i18si32685339pfa.23.2019.08.05.08.58.20; Mon, 05 Aug 2019 08:58:36 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gx8rSdgX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728929AbfHEP4a (ORCPT + 99 others); Mon, 5 Aug 2019 11:56:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfHEP43 (ORCPT ); Mon, 5 Aug 2019 11:56:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F17D02064A; Mon, 5 Aug 2019 15:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565020588; bh=b34+7fFFBV6Sl83qHgsbIEEvlBq8yODr8I5dgk506VY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gx8rSdgXwQ4EAIb0kEn2RP7fMh9bOo+Oqpxe2bIz0t3C3LMyeNarGvUFsgaH+j4Ve wT0rueuRVCToa67wHNfN8I/fnu5NcV1lKgxlU7/rCBDVa9I+y6ItB163veRU9/MBuX 05HSSdWufvcjiNmNN534Mr1D/y+LCyK5JDSufkwY= Date: Mon, 5 Aug 2019 17:56:26 +0200 From: Greg KH To: Wu Hao 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: <20190805155626.GD8107@kroah.com> References: <1564914022-3710-1-git-send-email-hao.wu@intel.com> <1564914022-3710-12-git-send-email-hao.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1564914022-3710-12-git-send-email-hao.wu@intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. And again, you raced userspace and lost :( thanks, greg k-h