Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3729633pxv; Mon, 5 Jul 2021 04:25:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaO/F/G9DiYB6s/bCmpFRCY2yWYNM3h5Qen3xN274+3gH4O4izWvUmuJPJZisLudIU5uPY X-Received: by 2002:a5d:9c59:: with SMTP id 25mr11530267iof.15.1625484352112; Mon, 05 Jul 2021 04:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625484352; cv=none; d=google.com; s=arc-20160816; b=m0mM64uq0BBd1cAACmp5AaxKbUyUSCgn+Rtno6i78vsLWymI4j1IJ58XomhgrCFTP+ F3IEkkNlEUdqpgpMYe4xJkJou9pHP4p8uQm6jVJNMFGxAQSSapgRXcHD+Njo8GuEWiSd Dtnc/IYB/J+t0j4NzIw5PsTILvX85wjaccYm6nPg1/LH70ypZZyhGlTIeFCNi0dnuvb4 Vj/5rGGR/aEQ7sLKUWsVP65bZdGxko+A4tZRAmH1VAYJB63f75r3Vf0Zm0IpyqQUEGdS NfMyOoXEjMNcJ+n+qN+XjOZf0bjMvSsJDa3T7/+IdtIDTxF0OAY86JEFjVsBPWRjb+9k ZNBw== 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=7HWSIChMpvUjyne/+iJK2NPPKvcxByEobpjhiLGyCKk=; b=yb0t49Nvu/0a53OfXjkiF79fKoOSUE4AyqAjlxcInLHtQqc5LvN3JqAuKJdd7KIeZQ l3DdkOW9jKa4BaFG5Il9xlVNi42vuR+Q+/RjF5mKkUKbhE0JYsLDbmu35j8Iqk9DBfWq yGqYNPuPxzdxWxGFmGpohrLgtCpeA65quLJbnEyCHqpy0mrekYLuk47nUzuIX+VlaOqp vhtlj/M35k7c4HeeYRuh8r53OBiMh3Es3R0o8bU8fYbwc0rgnV42MXGaMYjT0yfH/ge0 iRu01fe+GaKwXQ2uiMRaRFLTSW4LYtW2A/GDn+v71gj+JM/Z5sMu3gfgOHE8EdX3DB+y H3RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="bPA/eh65"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si14637211ill.10.2021.07.05.04.25.40; Mon, 05 Jul 2021 04:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="bPA/eh65"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231208AbhGEL10 (ORCPT + 99 others); Mon, 5 Jul 2021 07:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhGEL10 (ORCPT ); Mon, 5 Jul 2021 07:27:26 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17CDC061574 for ; Mon, 5 Jul 2021 04:24:48 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id b5so10089318plg.2 for ; Mon, 05 Jul 2021 04:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7HWSIChMpvUjyne/+iJK2NPPKvcxByEobpjhiLGyCKk=; b=bPA/eh65H3IBxzAl/nscoi1CePeGE5JUOHngiDPYOwI161KXtYRyGEqH1FUqqIwLft 97jn4zqxhljeQ78qtpttp9UGw5flJbhVGQU3RHuB1DIQfgCeuBA5wDhvRy89YcchNRIV VQh3kU5ISqOov3FaltGDSNlOIkJg8sFA909+eFzzP9WjJ8ql5LPdT3qqF2AO0JbdClzr M1ao4D4ABua/DyW+EJc/nNskJ7n44JmzxOKSdf/uwkRBnklC54/SqvjQoF3uugmLaRp4 PFXpaN9p6hRAyw5ir03FV4B41Mp2XLgPFUyRxjgrfQJIdB7Hjmc1YIfzEH1Cs0xIlTIJ NWgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7HWSIChMpvUjyne/+iJK2NPPKvcxByEobpjhiLGyCKk=; b=Pr1rtd9ENoEpvnKImgeDp/k0B1rqAtImExIPuqxdEOpYCZzDKX5+5F4AQxhGLBCYQz kBXjCBoD/DGioD5P6ZJ8+04DDLahXEK09204gdF7K1mDRgW7RHdv9hJTT8Zjj9VbxN8x oLEAN1qQpTJ1F1FTDgR6VbYCO/ZAy6iWjsBa9Q5DH1UDmH5YqlvKMaRWA017RAr6KLVp v2PtnrE+i1WLNIXjO8tLiXiOijuww77UkgbSz2DTVSin6kk6XM/qs9VtaO/5gUmW0hUe 4R7bRQZzjdD349qGcygjt5hBEfxepKgzDpZ2v+2NvWSOql3H6k7kBktgOI6Y6D6/MeXg JzAg== X-Gm-Message-State: AOAM530tK7i/M2vwiTNxa7O/eks/5AHh8gTcU28kwTfzYwTAWH8m7t6g iTfkyIboOCDlxiic6C4c9Kw= X-Received: by 2002:a17:90b:2307:: with SMTP id mt7mr14580381pjb.131.1625484288340; Mon, 05 Jul 2021 04:24:48 -0700 (PDT) Received: from ojas ([122.177.226.131]) by smtp.gmail.com with ESMTPSA id c184sm12408849pfa.38.2021.07.05.04.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 04:24:48 -0700 (PDT) Date: Mon, 5 Jul 2021 16:54:34 +0530 From: Ojaswin Mujoo To: Dan Carpenter Cc: kbuild@lists.01.org, nsaenz@kernel.org, lkp@intel.com, kbuild-all@lists.01.org, gregkh@linuxfoundation.org, stefan.wahren@i2se.com, arnd@arndb.de, phil@raspberrypi.com, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/5] staging: vchiq: Move vchiq char driver to its own file Message-ID: <20210705112409.GA42167@ojas> References: <3b7178086322f774772d95141764ed99d0698139.1625401927.git.ojaswin98@gmail.com> <202107051622.6i1l1vdL-lkp@intel.com> <20210705105804.GA41070@ojas> <20210705111944.GH26672@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210705111944.GH26672@kadam> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 05, 2021 at 02:19:44PM +0300, Dan Carpenter wrote: > On Mon, Jul 05, 2021 at 04:28:04PM +0530, Ojaswin Mujoo wrote: > > Hello Dan, > > > > On Mon, Jul 05, 2021 at 12:56:09PM +0300, Dan Carpenter wrote: > > > Hi Ojaswin, > > > > > > url: https://github.com/0day-ci/linux/commits/Ojaswin-Mujoo/vchiq-Patch-to-separate-platform-and-cdev-code/20210705-000124 > > > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 77ad1f0e99bd00af024e650b862cfda3137af660 > > > config: i386-randconfig-m021-20210705 (attached as .config) > > > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > > > > > > If you fix the issue, kindly add following tag as appropriate > > > Reported-by: kernel test robot > > > Reported-by: Dan Carpenter > > > > > > smatch warnings: > > > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c:1235 vchiq_release() warn: argument 3 to %lx specifier is cast from pointer > > > > > > vim +1235 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c > > > > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1227 static int vchiq_release(struct inode *inode, struct file *file) > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1228 { > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1229 struct vchiq_instance *instance = file->private_data; > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1230 struct vchiq_state *state = vchiq_get_state(); > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1231 struct vchiq_service *service; > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1232 int ret = 0; > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1233 int i; > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1234 > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 @1235 vchiq_log_info(vchiq_arm_log_level, "%s: instance=%lx", __func__, > > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1236 (unsigned long)instance); > > > > > > This should eventually be converted to %p so it doesn't defeat KASLR. > > > (Not that we really care on raspberry pi, I think?) > > Yes, that does seem right, however, this patchset only moves the code from > > vchiq_arm.c to vchiq_dev.c and I've not really touched any of the > > existing code itself (Except moving it to a new file which is why it shows up > > in the patch). > > > > Hence, I'm not sure if this fix is in scope of this patchset. (I also > > have a similar warning by kernel test robot here [1] which and I'm not > > sure if I need to act upon). Maybe we can look at this in a separate > > patch? > > Yes. Correct. Don't mix this into the patch, do it "eventually". Or > you don't have to do it at all since it wasn't something you introduced. > Someone will check the driver for Smatch warnings before it can be moved > out of staging. > > (I just forwarded the kbuild bot messages for informational purposes > only). Ahh okay, got it. Thanks, Ojaswin > > regards, > dan carpenter >