Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp479038rwd; Sat, 27 May 2023 00:44:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jn2yScZv9ZTmMPXeaH3voQ77x+y6ymx27HxIcZ+i4Y01X7T1ANZGMGk9emPLCZ/eLgTzN X-Received: by 2002:a05:6a20:7351:b0:105:3e47:7504 with SMTP id v17-20020a056a20735100b001053e477504mr1533418pzc.11.1685173484745; Sat, 27 May 2023 00:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685173484; cv=none; d=google.com; s=arc-20160816; b=ONpP69dTHtoT9g0bu4PhRa8EHS0Lll368PSNOerso99RMrx23ZSYhlu6+lxRTOM0dK h4S6sva2gb15dtnRrH3DBdHrc3BM4gCmjbgPiRilLaYwsC+vzIrMGLgdHJvneGKYk3Ip j3NJk2fYjoPl+db4RPnpuIVbe6Igu+40UrcPN0CTdPkSiFksjlKHVcdxTq2FXfDmM2Sw a5uhAdeYV4tm0ip4KsZG4waeSDY4FqrBJAB3X6eu9djXbt76vohhVEpNw+D/L692jlOP H4OhPz65A6eb7oDNwig7nayTuWYYwYqtmACc8DH3YYuNyFh26CH5wueDtXA/pdD3kxC9 T84g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nwBVUfHFhDbXnx6m5nY7yIVHwTgWOQ3/NQwQtgIZ8x4=; b=RlOt9AJoyJvS3CoZRQWljwTuTfT7FaqQofgnV5DEG3oXNpYTu3VElLuf0I13pZvHTS ua4x3eDEZF/XdYHAKW17SUd39NUXfWqImldg2ClseiCPdW/zubLGl4u9DAtrOvAst12w Y7n6CJyoVzIf/ms9tsLxRxJQ0CWFd8OlJq/Pp3qvZT9Vgpn/MeXW7Tqfxp5WtvS9r3Vf 0NLMI7xM5ADFBjKtOwDN1vKSBGMVeh9eSXDrMZbDV0FWSaAUjf+jTI0lAeoUhZIAUAkW aBsr0DB6IKZyKdNh4fptUebE7NrEiRjKykzM3LsMhJLpe1ycSa9ojArFZ9BzKKrXKFL1 PbsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EXSaBN9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k186-20020a6384c3000000b00503059b8b2fsi5875280pgd.220.2023.05.27.00.44.29; Sat, 27 May 2023 00:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EXSaBN9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbjE0HgF (ORCPT + 99 others); Sat, 27 May 2023 03:36:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbjE0HgE (ORCPT ); Sat, 27 May 2023 03:36:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 478F810A for ; Sat, 27 May 2023 00:36:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ACD3B60AC2 for ; Sat, 27 May 2023 07:36:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 985CAC433EF; Sat, 27 May 2023 07:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685172961; bh=r0jAlv/+Hp7zwRPZj8ECBxitoB+pPQba2YC+LIUW0x4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EXSaBN9JOc9iA1+qcbbOzQXbhabuPcbbgtoY2rhk9izWwigQDB67ya7HLJdDMRIkt ckeUt1mqPy0sgoE+7rLuWkYelLHvtJN2gGNqzMOqwhBTF4Vsii4ywbDHIE8AioJhDv fhcFJ8BhEce9fBn6NZcNZ2pktdJr1gN3zwS9/6Yw= Date: Sat, 27 May 2023 08:35:57 +0100 From: Greg KH To: Prathu Baronia Cc: dan.carpenter@linaro.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, lkp@intel.com, oe-kbuild-all@lists.linux.dev, oe-kbuild@lists.linux.dev, Dan Carpenter Subject: Re: [PATCH v3 1/2] axis-fifo: use devm_kasprintf() for allocating formatted strings Message-ID: <2023052705-modular-unpleased-0e62@gregkh> References: <20230518145154.33377-1-prathubaronia2011@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230518145154.33377-1-prathubaronia2011@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 18, 2023 at 08:21:53PM +0530, Prathu Baronia wrote: > In various places, string buffers of a fixed size are allocated, and > filled using snprintf() with the same fixed size, which is error-prone. Maybe error-prone, but all is fine with the original code, right? > Replace this by calling devm_kasprintf() instead, which always uses the > appropriate size. > > Also fix an old smatch warning reported by lkp introduced by commit > d2d7aa53891e. In the mentioned commit we had used "%pa" format specifier > for a void* type and hence smatch complained about its use instead of > "%p". When you have "also" in a changelog commit, that usually means this needs to be split out into a separate patch. And that's the case here, make the first patch of the series fix the problem. Then do your cleanups on later patches. > Fixes: d2d7aa53891e ("staging: axis-fifo: convert to use miscdevice") changing to a different string function does not fix anything. > Reported-by: kernel test robot It did not report that you need to replace a string function, right? See, things got messy when you mixed in changes into one. Please break these up. thanks, greg k-h