Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp326977pxa; Wed, 5 Aug 2020 02:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjxRyTbrWvzyPebys9miYfpmzSpdgmwV5CzoUdGBk3a47GV+KgSLuu7MNFvsBEOF/Pjadz X-Received: by 2002:a17:906:d102:: with SMTP id b2mr2082798ejz.465.1596618401825; Wed, 05 Aug 2020 02:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596618401; cv=none; d=google.com; s=arc-20160816; b=ppu2yMxwP+3EhXCklyzJ3r12ihipmPeZNA2o0GBWtp7KTEqj5oYY08S/9i3Q2tABcL BNNkBcvsh5pEFAk1fmoFiPGSSXibfqgOtXcpTOXS72To7zIBfduJJ+z2+RjRtD2tQg/n GXgaWIrhIVv9FtB7ASZ8I38LkVwdfDlvnvRD/393kYNJDLV1XdJk0FNJ1vxgFTzmIVcw xk3xUJ1xNXahdQedLcywsGoINj7GsJ7BH9n48bMQI85DFxTGN/H1Rd6gmyFp21yUA82p lbnyqxSKUG1T6SHU0FS1/wNe1TU2CGLYU7rnNyuTtPA5VWbyL2AVJi0ig+FZ3vhrJDEn LmBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=CvOgLRYGNR4qc47qXYPVq1PCHW15ZlQw4ViRaziNhDI=; b=TBnxWte8tea2/pzKuXXuiLPM9KSt7blHTeK6qlInjLrc1jJyTRWyMBXr0iGlfi9K0j z7+a/xwtmKeCJhyMm9ETirDwmPb/mbMT1LrHnDytB5slUWLvPsy/QE38JJqkHjhicBFF xAkTd4qdpbo7rKX7anCCJARrDROsRZy/2EXYhMdMQv6BSLGe3rqGFxGIDF8oTCxiEAPk TUTLdEZovzl0sD0j9XH6YVmBYE/b1gh7pTtjUszBULtKwbFvJU8vVQTYSGt7j1GIVrl9 Ze/zR50jPVOsPcdsRlavDf5pnm17uZ5QzUaJy0zT6nMsqC3PpeXBAomrVt0bjeiq9YS1 g5YA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si962283ejz.318.2020.08.05.02.06.18; Wed, 05 Aug 2020 02:06:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbgHEJF6 (ORCPT + 99 others); Wed, 5 Aug 2020 05:05:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:27892 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgHEJFx (ORCPT ); Wed, 5 Aug 2020 05:05:53 -0400 IronPort-SDR: T57YUoXi+bwBRJf+FzoeMdRHqwwVyZlnp4QA21xi4iejUKShB9Ytrugq/2U5oglGNJFRXS74m0 Y/a5u9EWaIsA== X-IronPort-AV: E=McAfee;i="6000,8403,9703"; a="216863773" X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="216863773" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2020 02:05:45 -0700 IronPort-SDR: Kzwp82pBLdFei3BWT/qCXlnI2d16e8soJ/QDqEDH8PGdUAwjfsKX3fjmNg5UxuFHcEaQeG5Puh ECqM+C4QRzdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="306638133" Received: from lkp-server02.sh.intel.com (HELO 37a337f97289) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 05 Aug 2020 02:05:42 -0700 Received: from kbuild by 37a337f97289 with local (Exim 4.92) (envelope-from ) id 1k3FMk-0000gz-5w; Wed, 05 Aug 2020 09:05:42 +0000 Date: Wed, 5 Aug 2020 17:05:21 +0800 From: kernel test robot To: Arnaud Pouliquen , Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier Cc: kbuild-all@lists.01.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, arnaud.pouliquen@st.com Subject: Re: [PATCH 5/9] rpmsg: introduce reserved rpmsg driver for ns announcement Message-ID: <202008051645.ApSUqqOG%lkp@intel.com> References: <20200731114732.12815-6-arnaud.pouliquen@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200731114732.12815-6-arnaud.pouliquen@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaud, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200730] [also build test WARNING on v5.8] [cannot apply to linux/master linus/master rpmsg/for-next v5.8-rc7 v5.8-rc6 v5.8-rc5] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Arnaud-Pouliquen/introduce-name-service-announcement-rpmsg-driver/20200731-195014 base: 7b287a5c6ac518c415a258f2aa7b1ebb25c263d2 compiler: nds32le-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck warnings: (new ones prefixed by >>) >> drivers/rpmsg/rpmsg_ns.c:68:34: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] msg->flags & RPMSG_NS_DESTROY ? "destroy" : "creat", ^ vim +68 drivers/rpmsg/rpmsg_ns.c 54 55 if (len != sizeof(*msg)) { 56 dev_err(dev, "malformed ns msg (%d)\n", len); 57 return -EINVAL; 58 } 59 60 /* don't trust the remote processor for null terminating the name */ 61 msg->name[RPMSG_NAME_SIZE - 1] = '\0'; 62 63 strncpy(chinfo.name, msg->name, sizeof(chinfo.name)); 64 chinfo.src = RPMSG_ADDR_ANY; 65 chinfo.dst = msg->addr; 66 67 dev_info(dev, "%sing channel %s addr 0x%x\n", > 68 msg->flags & RPMSG_NS_DESTROY ? "destroy" : "creat", 69 msg->name, msg->addr); 70 71 if (msg->flags & RPMSG_NS_DESTROY) { 72 ret = rpmsg_release_channel(rpdev, &chinfo); 73 if (ret) 74 dev_err(dev, "rpmsg_destroy_channel failed: %d\n", ret); 75 } else { 76 newch = rpmsg_create_channel(rpdev, &chinfo); 77 if (!newch) 78 dev_err(dev, "rpmsg_create_channel failed\n"); 79 } 80 81 return 0; 82 } 83 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org