Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1854575rwl; Thu, 30 Mar 2023 02:22:58 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJESarWMakfwhvUkyxNHRB+viCPhRrVaIgcG3ii562n4uHUydhGErLNEE+SXz8Ag96N/Wg X-Received: by 2002:a17:906:3a41:b0:931:8e8c:2db5 with SMTP id a1-20020a1709063a4100b009318e8c2db5mr23271669ejf.69.1680168178680; Thu, 30 Mar 2023 02:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680168178; cv=none; d=google.com; s=arc-20160816; b=mqFR6YRoWCC/usaXT/ExRJ98VFJueXxNsNR+zVZVtTP4TSduYnMW/Xgy3Khr/XB+ES PZqbVS71ysMoyHYMZMOo1x8j74Ep1E0HEXl7hwGL0sM8v7o6Uy7M8flJcLCNyPCzVPaN zQEvJydF1XF8cQFRVGjumBss/f9glt/+Q0cSL615xQxVWxnUclmLo09CejMMiEM8OPwp yFxgypNTq/kbexW4MzVEVe8+1Zi2iDlkXTuMkLZEKE9JtliEV01247j0RspIotQxywCo BJoUAjuYoZqK+T6EEOSF1xlvwakPvPpHYCIE62bDVuGn7cfYcqh1p1OFHE/K56ZAqvNs I2RQ== 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=KMQsILSfsvYle2OKAV4D4EqDCXTUAs4RbN/3c9hxKoE=; b=TIhrKJhrfmPJz2HYXiZ0jxn4g+iO0KLsTNZXzkRPG/BE3RwRVI9yvuwgQJ9ZSz0N+M hF/bMAZqEzjc8J/26bJ6rwvlcC4DlOKqoyvn2JQ/BY3D48r2AFNyXtrW9Oa6LdaNG6MI W690xzA3erXHmzV7bLl5zc06mvWxxzM33xX1NWTGGyI11MkcsqcL9tyAicrSUM/wsScu Cm+Iry5yPiNFTNzcqKsUFCv9183vgbr1KANGRycy0b+VQH7Aw4tl3R+VFz/jtnThSzmw 060KfBKP8DwsGlztYSAop27oj6KYcsW46nxdWoz2MqF3qakubNYxWU3kQVO8cwi/j+NJ GV2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZgDhQMmo; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vg2-20020a170907d30200b009345ceac84asi27185821ejc.362.2023.03.30.02.22.26; Thu, 30 Mar 2023 02:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@intel.com header.s=Intel header.b=ZgDhQMmo; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjC3JVw (ORCPT + 99 others); Thu, 30 Mar 2023 05:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjC3JVv (ORCPT ); Thu, 30 Mar 2023 05:21:51 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11305AC; Thu, 30 Mar 2023 02:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680168107; x=1711704107; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6mGTlpU1IVuvQh1ixKK/vHqK4uu3Vh62qa1dPLBFytg=; b=ZgDhQMmoQ4299meqMytdAM2Hp0iFcoD8qWdeZ7eoN5fsL5wXs2Ianw15 4GfHA5ZeBJFLvRS28/Z5oI00rEMTGwja2q/hRbBh6Q2fqrG3Yov4/9HQT 2mQGVAO4k6qsUlb+puHutEvrda2JPDd0RNppq4jl0arE3ojiHu/w2dkO+ OlD+zsR2MU19quEdDQUKdTl8iayiLJ81iN/sh4BVh7scgUXPVItfkdBHa t4BQCIUr6NWh1qG6sN53zNVU9u7HxKOk6c/zCL0yICAPRhkW9aEv/Ie9m v8UJqvl5j5NdtGN/WOSDTzhRa5+nKG+vicRZTQnvnmukt3IB9B+BvnbYT g==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="343569205" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="343569205" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 02:21:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="753926770" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="753926770" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 30 Mar 2023 02:21:45 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1phoTY-000KgO-15; Thu, 30 Mar 2023 09:21:44 +0000 Date: Thu, 30 Mar 2023 17:21:08 +0800 From: kernel test robot To: Manish Mandlik , marcel@holtmann.org, luiz.dentz@gmail.com Cc: oe-kbuild-all@lists.linux.dev, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Manish Mandlik , Johan Hedberg , linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 2/4] Bluetooth: Add vhci devcoredump support Message-ID: <202303301732.rPkAOhqw-lkp@intel.com> References: <20230329230447.v12.2.Ief9a81a3643d2291f6db2b3695c3a6e0159467dc@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329230447.v12.2.Ief9a81a3643d2291f6db2b3695c3a6e0159467dc@changeid> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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-bluetooth@vger.kernel.org Hi Manish, Thank you for the patch! Yet something to improve: [auto build test ERROR on bluetooth/master] [also build test ERROR on bluetooth-next/master linus/master v6.3-rc4 next-20230330] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Manish-Mandlik/Bluetooth-Add-vhci-devcoredump-support/20230330-140719 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master patch link: https://lore.kernel.org/r/20230329230447.v12.2.Ief9a81a3643d2291f6db2b3695c3a6e0159467dc%40changeid patch subject: [PATCH v12 2/4] Bluetooth: Add vhci devcoredump support config: csky-randconfig-r034-20230329 (https://download.01.org/0day-ci/archive/20230330/202303301732.rPkAOhqw-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/a96b21e272af3d91f47b77b297f1289c867259b4 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Manish-Mandlik/Bluetooth-Add-vhci-devcoredump-support/20230330-140719 git checkout a96b21e272af3d91f47b77b297f1289c867259b4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash drivers/bluetooth/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303301732.rPkAOhqw-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/bluetooth/hci_vhci.c: In function 'force_devcd_write': >> drivers/bluetooth/hci_vhci.c:334:21: error: 'struct hci_dev' has no member named 'dump' 334 | hdev->dump.timeout = msecs_to_jiffies(dump_data.timeout * 1000); | ^~ vim +334 drivers/bluetooth/hci_vhci.c 310 311 static ssize_t force_devcd_write(struct file *file, const char __user *user_buf, 312 size_t count, loff_t *ppos) 313 { 314 struct vhci_data *data = file->private_data; 315 struct hci_dev *hdev = data->hdev; 316 struct sk_buff *skb = NULL; 317 struct devcoredump_test_data dump_data; 318 int ret; 319 320 ret = simple_write_to_buffer(&dump_data, sizeof(dump_data), ppos, 321 user_buf, count); 322 if (ret < count) 323 return ret; 324 325 skb = alloc_skb(sizeof(dump_data.data), GFP_ATOMIC); 326 if (!skb) 327 return -ENOMEM; 328 skb_put_data(skb, &dump_data.data, sizeof(dump_data.data)); 329 330 hci_devcd_register(hdev, vhci_coredump, vhci_coredump_hdr, NULL); 331 332 /* Force the devcoredump timeout */ 333 if (dump_data.timeout) > 334 hdev->dump.timeout = msecs_to_jiffies(dump_data.timeout * 1000); 335 336 ret = hci_devcd_init(hdev, skb->len); 337 if (ret) { 338 BT_ERR("Failed to generate devcoredump"); 339 kfree_skb(skb); 340 return ret; 341 } 342 343 hci_devcd_append(hdev, skb); 344 345 switch (dump_data.state) { 346 case HCI_DEVCOREDUMP_DONE: 347 hci_devcd_complete(hdev); 348 break; 349 case HCI_DEVCOREDUMP_ABORT: 350 hci_devcd_abort(hdev); 351 break; 352 case HCI_DEVCOREDUMP_TIMEOUT: 353 /* Do nothing */ 354 break; 355 default: 356 return -EINVAL; 357 } 358 359 return count; 360 } 361 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests