Received: by 10.192.165.148 with SMTP id m20csp3695131imm; Mon, 23 Apr 2018 10:42:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Zv7lewfgSfrkFBaIeheMlgab3pVmbfE+r5ZV9YaO7bcGwdrnD3sfy8DnZPvKDJagLd2es X-Received: by 10.99.117.93 with SMTP id f29mr17182398pgn.401.1524505351657; Mon, 23 Apr 2018 10:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505351; cv=none; d=google.com; s=arc-20160816; b=YvDFVmzalGi6MV6q6WDUxYVsrVw1i57SM4j56qFAmihstGpKixhn9SRgWcpZigsK1s 8ujusmOCryJFm+e6Jb+hJm64jeXkIet8u2vDiJ0WZLcp2x58H+6FWh5RMOQIc4OEWFFb r/GcoLPiVv1AlsfitHjUEqxkRCdVqGZ4SuKanC6FcGRw4fdqSguFxfQUjiEGFRQ9D+kR j6kdOSiUdzTW2+hLwCv3Dqdij44P2AwaeHQQu5cL/Hls+eTa/kKD1zvijgYZwK2+gY6F RuZsa9zl5bnMc7jtO6n9SovsltKLJidh+pgCmVezQ2lxUBH5ai2xWHZdbhyeI30KByWw +yNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=0f8hq3D17kk2xP0TsQO3PJjCT90JiIqQvQ7lNElFTYQ=; b=Rf6hmLw/PtPW18hR/wvzBMIVegcBlEk3vMSNWP5nG7ly4+modg3fFcFLn4HtYbNolF Sha2hH5v2rIYGws0tv0SnYLy0i3X/JRnII76Oi1FLg3i6BW/qYuwLYs3xduTgpO/9jHh WcpmchTmpxWFpnIYgD3bVipiBGmv1NWH6nSiLJJGQ870oApPhNaglNKOjsbuhhDtHT+n X0KiuBbEMDQHeFjgGHw3oRkxmakzxeIGy9Mixv+9HZD1VlQGKW2uVY0lso/0Xt3+vDoG b3yqV1HGplSKEb43tE0rc4bqEMBYPL41X8RoCNL5p+EFxGmPU2BUplG746+0oCSqK6Oo Gy9A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b129si9819899pgc.387.2018.04.23.10.42.17; Mon, 23 Apr 2018 10:42:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932232AbeDWRlC (ORCPT + 99 others); Mon, 23 Apr 2018 13:41:02 -0400 Received: from mga02.intel.com ([134.134.136.20]:26648 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbeDWRkz (ORCPT ); Mon, 23 Apr 2018 13:40:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2018 10:40:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,319,1520924400"; d="scan'208";a="53015049" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.147]) ([10.7.153.147]) by orsmga002.jf.intel.com with ESMTP; 23 Apr 2018 10:40:54 -0700 Subject: Re: [PATCH v3 03/10] drivers/peci: Add support for PECI bus driver core To: Greg KH Cc: Alan Cox , Andrew Jeffery , Andrew Lunn , Andy Shevchenko , Arnd Bergmann , Benjamin Herrenschmidt , Fengguang Wu , Guenter Roeck , Haiyue Wang , James Feist , Jason M Biils , Jean Delvare , Joel Stanley , Julia Cartwright , Miguel Ojeda , Milton Miller II , Pavel Machek , Randy Dunlap , Stef van Os , Sumeet R Pawnikar , Vernon Mauery , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org References: <20180410183212.16787-1-jae.hyun.yoo@linux.intel.com> <20180410183212.16787-4-jae.hyun.yoo@linux.intel.com> <20180423105224.GA1444@kroah.com> From: Jae Hyun Yoo Message-ID: <09b1a8af-4d47-0714-8f68-d7fe35cc7a72@linux.intel.com> Date: Mon, 23 Apr 2018 10:40:53 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180423105224.GA1444@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/23/2018 3:52 AM, Greg KH wrote: > On Tue, Apr 10, 2018 at 11:32:05AM -0700, Jae Hyun Yoo wrote: >> +static void peci_adapter_dev_release(struct device *dev) >> +{ >> + /* do nothing */ >> +} > > As per the in-kernel documentation, I am now allowed to make fun of you. > > You are trying to "out smart" the kernel by getting rid of a warning > message that was explicitly put there for you to do something. To think > that by just providing an "empty" function you are somehow fulfilling > the API requirement is quite bold, don't you think? > > This has to be fixed. I didn't put that warning in there for no good > reason. Please go read the documentation again... > > greg k-h > Hi Greg, Thanks a lot for your review. I think, it should contain actual device resource release code which is being done by peci_del_adapter(), or a coupling logic should be added between peci_adapter_dev_release() and peci_del_adapter(). As you suggested, I'll check it again after reading documentation and understanding core.c code more deeply. Jae