From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: Re: [PATCH 18/23] memory: mtk-smi: Add argument to function definition Date: Thu, 23 Jul 2020 10:55:33 +0200 Message-ID: <20200723085533.GA25935@kozik-lap> References: <20200723073744.13400-1-krzk@kernel.org> <20200723073744.13400-19-krzk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org To: Arnd Bergmann Cc: Olof Johansson , arm-soc , SoC Team , Markus Mayer , bcm-kernel-feedback-list , Florian Fainelli , Santosh Shilimkar , Matthias Brugger , Roger Quadros , Tony Lindgren , Vladimir Zapolskiy , Thierry Reding , Jonathan Hunter , "linux-kernel@vger.kernel.org" , Linux ARM , "moderated list:ARM/Mediatek SoC..." , linux-omap "open list:TEGRA ARCHITECTURE SUPPORT"
  • List-Id: linux-tegra@vger.kernel.org On Thu, Jul 23, 2020 at 10:50:08AM +0200, Arnd Bergmann wrote: > On Thu, Jul 23, 2020 at 9:39 AM Krzysztof Kozlowski wrote: > > > > Fix checkpatch warning: > > WARNING: function definition argument 'struct device *' should also have an identifier name > > > > Signed-off-by: Krzysztof Kozlowski > > Is this a bug in checkpatch? I don't see why it should warn about this, > as there is no function definition here. > > Your change is clearly harmless, but I wonder if we should fix > checkpatch instead. Good point. If this were not a warning, I would ignore it. However still the common practice is to add arguments to such type definitions as it helps to describe the type. Best regards, Krzysztof