From: kernel test robot <lkp@intel.com>
To: Tao Zhang <quic_taozha@quicinc.com>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Konrad Dybcio <konradybcio@gmail.com>,
Mike Leach <mike.leach@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
Tao Zhang <quic_taozha@quicinc.com>,
Jinlong Mao <quic_jinlmao@quicinc.com>,
Leo Yan <leo.yan@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Tingwei Zhang <quic_tingweiz@quicinc.com>,
Yuanfang Zhang <quic_yuanfang@quicinc.com>,
Trilok Soni <quic_tsoni@quicinc.com>,
Hao Zhang <quic_hazha@quicinc.com>,
linux-arm-msm@vger.kernel.org, andersson@kernel.org
Subject: Re: [PATCH v7 09/13] coresight-tpdm: Add nodes for dsb edge control
Date: Tue, 25 Jul 2023 20:27:22 +0800 [thread overview]
Message-ID: <202307252010.fbqRILwZ-lkp@intel.com> (raw)
In-Reply-To: <1690269353-10829-10-git-send-email-quic_taozha@quicinc.com>
Hi Tao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.5-rc3 next-20230725]
[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/Tao-Zhang/coresight-tpdm-Remove-the-unnecessary-lock/20230725-152235
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/1690269353-10829-10-git-send-email-quic_taozha%40quicinc.com
patch subject: [PATCH v7 09/13] coresight-tpdm: Add nodes for dsb edge control
config: arm-randconfig-r003-20230725 (https://download.01.org/0day-ci/archive/20230725/202307252010.fbqRILwZ-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230725/202307252010.fbqRILwZ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307252010.fbqRILwZ-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/hwtracing/coresight/coresight-tpdm.c: In function 'dsb_edge_ctrl_val_store':
>> drivers/hwtracing/coresight/coresight-tpdm.c:383:28: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
383 | unsigned long val, mask, edge_ctrl;
| ^~~~
drivers/hwtracing/coresight/coresight-tpdm.c: In function 'dsb_edge_ctrl_mask_store':
>> drivers/hwtracing/coresight/coresight-tpdm.c:449:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
449 | else
| ^~~~
drivers/hwtracing/coresight/coresight-tpdm.c:451:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
451 | drvdata->dsb->edge_ctrl_mask[reg] = set;
| ^~~~~~~
vim +/mask +383 drivers/hwtracing/coresight/coresight-tpdm.c
368
369 /*
370 * This function is used to control the edge detection according
371 * to the index number that has been set.
372 * "edge_ctrl" should be one of the following values.
373 * 0 - Rising edge detection
374 * 1 - Falling edge detection
375 * 2 - Rising and falling edge detection (toggle detection)
376 */
377 static ssize_t dsb_edge_ctrl_val_store(struct device *dev,
378 struct device_attribute *attr,
379 const char *buf,
380 size_t size)
381 {
382 struct tpdm_drvdata *drvdata = dev_get_drvdata(dev->parent);
> 383 unsigned long val, mask, edge_ctrl;
384 int reg;
385
386 if ((kstrtoul(buf, 0, &edge_ctrl)) || (edge_ctrl > 0x2))
387 return -EINVAL;
388
389 spin_lock(&drvdata->spinlock);
390 /*
391 * There are 2 bit per DSB Edge Control line.
392 * Thus we have 16 lines in a 32bit word.
393 */
394 reg = EDCR_TO_WORD_IDX(drvdata->dsb->edge_ctrl_idx);
395 mask = EDCR_TO_WORD_MASK(drvdata->dsb->edge_ctrl_idx);
396 val = drvdata->dsb->edge_ctrl[reg];
397 val &= ~EDCR_TO_WORD_MASK(drvdata->dsb->edge_ctrl_idx);
398 val |= EDCR_TO_WORD_VAL(edge_ctrl, drvdata->dsb->edge_ctrl_idx);
399 drvdata->dsb->edge_ctrl[reg] = val;
400 spin_unlock(&drvdata->spinlock);
401
402 return size;
403 }
404 static DEVICE_ATTR_RW(dsb_edge_ctrl_val);
405
406 static ssize_t dsb_edge_ctrl_mask_show(struct device *dev,
407 struct device_attribute *attr,
408 char *buf)
409 {
410 struct tpdm_drvdata *drvdata = dev_get_drvdata(dev->parent);
411 ssize_t size = 0;
412 unsigned long bytes;
413 int i;
414
415 spin_lock(&drvdata->spinlock);
416 for (i = 0; i < TPDM_DSB_MAX_EDCMR; i++) {
417 bytes = sysfs_emit_at(buf, size,
418 "Val:0x%x\n", drvdata->dsb->edge_ctrl_mask[i]);
419 if (bytes <= 0)
420 break;
421 size += bytes;
422 }
423 spin_unlock(&drvdata->spinlock);
424 return size;
425 }
426
427 static ssize_t dsb_edge_ctrl_mask_store(struct device *dev,
428 struct device_attribute *attr,
429 const char *buf,
430 size_t size)
431 {
432 struct tpdm_drvdata *drvdata = dev_get_drvdata(dev->parent);
433 unsigned long val;
434 u32 set;
435 int reg;
436
437 if ((kstrtoul(buf, 0, &val)) || (val & ~1UL))
438 return -EINVAL;
439
440 spin_lock(&drvdata->spinlock);
441 /*
442 * There is 1 bit per DSB Edge Control Mark line.
443 * Thus we have 32 lines in a 32bit word.
444 */
445 reg = EDCMR_TO_WORD_IDX(drvdata->dsb->edge_ctrl_idx);
446 set = drvdata->dsb->edge_ctrl_mask[reg];
447 if (val)
448 set |= BIT(EDCMR_TO_WORD_SHIFT(drvdata->dsb->edge_ctrl_idx));
> 449 else
450 set &= ~BIT(EDCMR_TO_WORD_SHIFT(drvdata->dsb->edge_ctrl_idx));
451 drvdata->dsb->edge_ctrl_mask[reg] = set;
452 spin_unlock(&drvdata->spinlock);
453
454 return size;
455 }
456 static DEVICE_ATTR_RW(dsb_edge_ctrl_mask);
457
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-07-25 12:28 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 7:15 [PATCH v7 00/13] Add support to configure TPDM DSB subunit Tao Zhang
2023-07-25 7:15 ` [PATCH v7 01/13] coresight-tpdm: Remove the unnecessary lock Tao Zhang
2023-07-25 7:15 ` [PATCH v7 02/13] dt-bindings: arm: Add support for DSB element size Tao Zhang
2023-07-25 7:15 ` [PATCH v7 03/13] coresight-tpdm: Introduce TPDM subtype to TPDM driver Tao Zhang
2023-07-25 7:15 ` [PATCH v7 04/13] coresight-tpda: Add DSB dataset support Tao Zhang
2023-08-04 15:02 ` Suzuki K Poulose
2023-08-04 15:02 ` Suzuki K Poulose
2023-08-07 9:12 ` Suzuki K Poulose
2023-08-07 9:12 ` Suzuki K Poulose
2023-08-09 6:14 ` Tao Zhang
2023-08-09 6:14 ` Tao Zhang
2023-08-09 6:13 ` Tao Zhang
2023-08-09 6:13 ` Tao Zhang
2023-07-25 7:15 ` [PATCH v7 05/13] coresight-tpdm: Initialize DSB subunit configuration Tao Zhang
2023-08-07 9:28 ` Suzuki K Poulose
2023-08-07 9:28 ` Suzuki K Poulose
2023-08-09 6:29 ` Tao Zhang
2023-08-09 6:29 ` Tao Zhang
2023-07-25 7:15 ` [PATCH v7 06/13] coresight-tpdm: Add reset node to TPDM node Tao Zhang
2023-08-07 9:36 ` Suzuki K Poulose
2023-08-07 9:36 ` Suzuki K Poulose
2023-08-09 6:35 ` Tao Zhang
2023-08-09 6:35 ` Tao Zhang
2023-08-13 15:38 ` Tao Zhang
2023-08-13 15:38 ` Tao Zhang
[not found] ` <ce14e453-50da-02c2-9147-f094ed8aa10f@quicinc.com>
2023-08-14 9:45 ` Suzuki K Poulose
2023-08-14 9:45 ` Suzuki K Poulose
2023-07-25 7:15 ` [PATCH v7 07/13] coresight-tpdm: Add nodes to set trigger timestamp and type Tao Zhang
2023-08-07 9:42 ` Suzuki K Poulose
2023-08-07 9:42 ` Suzuki K Poulose
2023-08-09 6:55 ` Tao Zhang
2023-08-09 6:55 ` Tao Zhang
2023-07-25 7:15 ` [PATCH v7 08/13] coresight-tpdm: Add node to set dsb programming mode Tao Zhang
2023-07-25 19:46 ` kernel test robot
2023-08-07 10:00 ` Suzuki K Poulose
2023-08-07 10:00 ` Suzuki K Poulose
2023-08-14 7:03 ` Tao Zhang
2023-08-14 7:03 ` Tao Zhang
2023-07-25 7:15 ` [PATCH v7 09/13] coresight-tpdm: Add nodes for dsb edge control Tao Zhang
2023-07-25 12:27 ` kernel test robot [this message]
2023-07-25 22:00 ` kernel test robot
2023-08-07 9:24 ` Suzuki K Poulose
2023-08-07 9:24 ` Suzuki K Poulose
2023-08-09 6:57 ` Tao Zhang
2023-08-09 6:57 ` Tao Zhang
2023-08-07 10:58 ` Suzuki K Poulose
2023-08-07 10:58 ` Suzuki K Poulose
2023-08-09 6:59 ` Tao Zhang
2023-08-09 6:59 ` Tao Zhang
2023-07-25 7:15 ` [PATCH v7 10/13] coresight-tpdm: Add nodes to configure pattern match output Tao Zhang
2023-08-07 11:15 ` Suzuki K Poulose
2023-08-07 11:15 ` Suzuki K Poulose
2023-07-25 7:15 ` [PATCH v7 11/13] coresight-tpdm: Add nodes for timestamp request Tao Zhang
2023-08-07 11:27 ` Suzuki K Poulose
2023-08-07 11:27 ` Suzuki K Poulose
2023-07-25 7:15 ` [PATCH v7 12/13] dt-bindings: arm: Add support for DSB MSR register Tao Zhang
2023-07-26 15:16 ` Rob Herring
2023-07-25 7:15 ` [PATCH v7 13/13] coresight-tpdm: Add nodes for dsb msr support Tao Zhang
2023-08-07 11:35 ` Suzuki K Poulose
2023-08-07 11:35 ` Suzuki K Poulose
2023-08-18 15:44 ` Tao Zhang
2023-08-18 15:44 ` Tao Zhang
2023-08-18 16:25 ` Suzuki K Poulose
2023-08-18 16:25 ` Suzuki K Poulose
2023-08-19 12:37 ` Tao Zhang
2023-08-19 12:37 ` Tao Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202307252010.fbqRILwZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=andersson@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=konradybcio@gmail.com \
--cc=krzk@kernel.org \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_hazha@quicinc.com \
--cc=quic_jinlmao@quicinc.com \
--cc=quic_taozha@quicinc.com \
--cc=quic_tingweiz@quicinc.com \
--cc=quic_tsoni@quicinc.com \
--cc=quic_yuanfang@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=suzuki.poulose@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.