From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73F2FC07E9C for ; Mon, 5 Jul 2021 11:00:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34341613BA for ; Mon, 5 Jul 2021 11:00:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34341613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P7eo0H7Hk1YJYg4mSQGOZlIN/hOJFBqdw6mDJLK64vY=; b=d7NT0rtbos5kR3 BW80C5DBFZxEzwiNVgKAkvZad5C/GfK0reJnkKA50b9L9DQmuuNbpYovtRmJ7TCIt9ZkczqNCYpiL thIsrV90Zx8UbVyaRGIiTc8oNImSwX4aOLyfVdT4FsN+qGT0fl4hNDaIQsbFSSHZ9K7sbePLrY3Ke bx3tmYcLlilmnf2xu4/CJ1ayBMWhb1wbjToHm9dVuYrVspg35CfibMPm2PQEcOnlNuegCSt1VKWIE 0fFyFtQHjPK58qrkYq/AsFcYuQiowfMBwdzsoGmXAudCxfAZe4ikmUcfhpZub89naZEj+M2eZv56S 6G9EgrBqOjk6uUWVfiTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0MIv-008fZk-PA; Mon, 05 Jul 2021 10:58:21 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0MIs-008fYe-1n for linux-arm-kernel@lists.infradead.org; Mon, 05 Jul 2021 10:58:19 +0000 Received: by mail-pj1-x1029.google.com with SMTP id p17-20020a17090b0111b02901723ab8d11fso11574582pjz.1 for ; Mon, 05 Jul 2021 03:58:17 -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=TS5725BMQ0gKTaaRgTF2dpCMOSOYoKyPmGmSv9N+v5s=; b=q6FxVJ0dJy7lazmhe+1rZ3CgvAlLA66cQFTv6qVfww3zQ5mf6UpwZmgA+l6UvMWqyK hNU+O5GKNzofInBtJOneWyrcSRVm+KBB5me0/udCDLq89GtSOBcf8pOFMLuXsl+edomV 0w9YZzfiksxizixHFErivxdXVwLRW4FU9IdsMXwfU0+osN1H+EEQu0NzDFi8oyp9DehN 3hWz38gIByHT06yo3Iwzxbgb5xz5NT+tjsqxhrg+lNipnmDtfXH6DJli3sLaXQAihmVT jFnaOToyKIdLh10DsOn6lvwwY9geYgFVTCTniqrP9G/8RMSOMjN1fP3QyqQhSAy4YasU ssQg== 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=TS5725BMQ0gKTaaRgTF2dpCMOSOYoKyPmGmSv9N+v5s=; b=SZUr0WakcccAAgggaqHch9wvJPfYwXkt0PPOooyukezNRzDytcOuHWoLdMXhmQXrGH 2ie77KwBIlWlnPL2UIgbXLss2Ve1YRP7JnfOMdk1nmqpplODU6+0IqaSpDbHjFo0IL3S mmIiT2dCCifwvkEY95hSeFE+oJBztYBaWwPdBI/B/0kU68/8InZB99fz+QwGvkjuhVkw P3PoFtxzD8j0Rd887JelBUK5xVYZZk/VVEJfTcA+8wGew30b6RLMz597n+Jj5aEyGL7M Ffq4YNmYKVFT368Xt1OBoNE0T1pxavMV1154zZcHLhjBAiGCb9vS0/CxCPLTqZLUenbN ihJA== X-Gm-Message-State: AOAM530wWidievOfT7Tbj3+rJOgByHkgYC6GZ6NkNluPpwkOp5XUlwyT LAwEj7Y1hBmPmRSuYek5+BI= X-Google-Smtp-Source: ABdhPJwo4miumHlV9SzFxEreIAG6c8AlmvbD4WrmSza2hsZ++IT8CQauoy2cJDMiVS489a13jj0S2A== X-Received: by 2002:a17:90a:d598:: with SMTP id v24mr14189644pju.185.1625482697293; Mon, 05 Jul 2021 03:58:17 -0700 (PDT) Received: from ojas ([122.177.226.131]) by smtp.gmail.com with ESMTPSA id c2sm21335050pjc.40.2021.07.05.03.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 03:58:17 -0700 (PDT) Date: Mon, 5 Jul 2021 16:28:04 +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: <20210705105804.GA41070@ojas> References: <3b7178086322f774772d95141764ed99d0698139.1625401927.git.ojaswin98@gmail.com> <202107051622.6i1l1vdL-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202107051622.6i1l1vdL-lkp@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210705_035818_123531_A0E054A5 X-CRM114-Status: GOOD ( 19.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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? [1] https://lkml.org/lkml/2021/7/4/138 > > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1237 > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1238 if (!state) { > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1239 ret = -EPERM; > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1240 goto out; > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1241 } > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1242 > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1243 /* Ensure videocore is awake to allow termination. */ > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1244 vchiq_use_internal(instance->state, NULL, USE_TYPE_VCHIQ); > 62b5eb4fdf3f5f Ojaswin Mujoo 2021-07-04 1245 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > Thank you for looking into this, Ojaswin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel