Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966156AbeAOQVw (ORCPT + 1 other); Mon, 15 Jan 2018 11:21:52 -0500 Received: from mout.web.de ([212.227.15.14]:49469 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964786AbeAOQVu (ORCPT ); Mon, 15 Jan 2018 11:21:50 -0500 Subject: Re: [1/3] mfd/omap-usb-tll: Delete two error messages for a failed memory allocation in usbtll_omap_probe() To: Ladislav Michl , linux-omap@vger.kernel.org Cc: Lee Jones , Tony Lindgren , LKML , kernel-janitors@vger.kernel.org References: <7719b4e7-1081-6fa4-6f14-f45cf062482d@users.sourceforge.net> <20180115134101.GA6711@lenoch> <1ebb5ac5-aa4d-7c19-94db-210b518d562f@users.sourceforge.net> <20180115160522.GA2672@lenoch> From: SF Markus Elfring Message-ID: <11eaf92d-3928-531f-35e8-fb5a60ff03e3@users.sourceforge.net> Date: Mon, 15 Jan 2018 17:21:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180115160522.GA2672@lenoch> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:WsxmPTcWjd2FJdEchcCk0aYiVS9L1PVqb6UsOC25ikFwZD/VYaa hW4Q6n71t9v8vUNUt2vunDwQH8meIuQXUsuypclyFIQkrSXmEqRufHq60d59Pd5/OMPGcND dguvc+5iWDzn7Dcpx9VGcU2eGKsp1GjKYsAmZvidmNnSrJlgwnr+yIXyx/2Y4G4fm/TMTAY m18LmvHsJRU84dXfh+F0A== X-UI-Out-Filterresults: notjunk:1;V01:K0:C+NBKEAtSlE=:rm+Yw11Gl7miF55h2LQ4p+ jZ9SUSNDhGhovykzQOXzXEK8NAvUxPd7uEDVBaH6dsZfSL5RfsFqifxsVi9tUkgqGXiuDvYxx ACNxHgSxRaF7cariCTtPsqqhN6Kv8qtslOyovUNaQSkM43G/29YXZ0oF0FRWr//qzXvSn4ivm p8XtMfgpGa1OpxPf1OmUuh0GL+S8zv1Zo7SGhlguN5ZUyT22ld9blfT8Q6QIXUw7nIo87++w2 A8xAvCOAFCcSw3kcUGZJUQMlJkrmSOR1OCANSPcmnv0g9i1bV40xSX33o5CGzGKM+LJ0nb6wc Q4LUf/3nhzhBEKptCaRE5RotIykJ9sFdOUMsmOUVddBnvSiYP2gxyuXtDjJOopQ4A8oZUucFb 3tFzu4gLKAiKI8wlrpoAr8XduHEPDAs/kOC4xTtq37AjWpriPdzDH1pKURPTBFcbEJC/0XTxN FGr0izHDO+h3raId1wy5PQd9/ctYniUMRk0rmLinE9jcmPLa30aeccNM7Zr6TT6x0pauljFj1 Pbjb4OMxMifdrUtUbziVC1if2JGYZsLA00+VC9MuQqij+/A7HIDV0+D8bl2oSqUKf2Zs4t8Mh 0WTIwzi8S7I4TEskuo7j1efhAUCg+6MMSdqmMBIwp6y/KpXIz7v2i0IPt3IFO/n/9iKhqUYun U62ph+Rw73ma9MKnnaJemEa1PrdSQNoRtyyehE9ye/ZEN/rrCD8OpfjLtKC/q0sXcD15BRQHB COEacNTsROYEXW2fmh05+e0TEnNGGYAToQIrGC2zGTy4Y159jfTbrMN3ho11NEdNaCzgmaDKW 07Fe0YdIu06kCtjjPvfPb7rOikkbLpQppnOB/c+OP7e8jefvaM= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: >>>> @@ -258,7 +256,6 @@ static int usbtll_omap_probe(struct platform_device *pdev) >>>> GFP_KERNEL); >>>> if (!tll->ch_clk) { >>>> ret = -ENOMEM; >>>> - dev_err(dev, "Couldn't allocate memory for channel clocks\n"); >>> >>> I'd either leave this one, just to know which allocation failed or better use >>> something like this … >> >> Are you aware on the structure for a Linux allocation failure report? > > Just created one (not OMAP and not this driver, but that does not matter now): Thanks for your example. > ---[ end trace 3c79eadf2363e939 ]--- > max9867: probe of 1-0018 failed with error -12 > > driver was instructed to alloc insane number of bytes using devm_kzalloc in > max9867_i2c_probe. > Now, if probe function calls devm_kzalloc two times and one of them fails, > you cannot easily say which one without looking at assembly listing. Will this situation change with any other implementation for such backtraces? > Or did I misunderstand your question? No. - It seems that we have found a “common wavelength”. Would it become acceptable to move the mentioned memory allocation into an additional function implementation so that you could see a difference from the function call stack dump already? Regards, Markus