* [linux-next:master 8604/9696] drivers/firewire/core-card.c:552:32: warning: overflow in expression; result is -1'179'869'184 with type 'long'
@ 2025-09-16 17:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-16 17:09 UTC (permalink / raw)
To: Takashi Sakamoto; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 05af764719214d6568adb55c8749dec295228da8
commit: 379b870c28c6a615a101df7986eba70fea99eff7 [8604/9696] firewire: core: use helper macros instead of direct access to HZ
config: hexagon-randconfig-001-20250916 (https://download.01.org/0day-ci/archive/20250917/202509170136.b5ZHaNAV-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 65ad21d730d25789454d18e811f8ff5db79cb5d4)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/202509170136.b5ZHaNAV-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/202509170136.b5ZHaNAV-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/firewire/core-card.c:552:32: warning: overflow in expression; result is -1'179'869'184 with type 'long' [-Winteger-overflow]
552 | card->split_timeout_jiffies = isoc_cycles_to_jiffies(DEFAULT_SPLIT_TIMEOUT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firewire/core.h:33:64: note: expanded from macro 'isoc_cycles_to_jiffies'
33 | #define isoc_cycles_to_jiffies(cycles) usecs_to_jiffies(cycles * USEC_PER_SEC / 8000)
| ~~~~~~~^~~~~~~~~~~~~~
1 warning generated.
vim +552 drivers/firewire/core-card.c
537
538 void fw_card_initialize(struct fw_card *card,
539 const struct fw_card_driver *driver,
540 struct device *device)
541 {
542 static atomic_t index = ATOMIC_INIT(-1);
543
544 card->index = atomic_inc_return(&index);
545 card->driver = driver;
546 card->device = device;
547 card->current_tlabel = 0;
548 card->tlabel_mask = 0;
549 card->split_timeout_hi = DEFAULT_SPLIT_TIMEOUT / 8000;
550 card->split_timeout_lo = (DEFAULT_SPLIT_TIMEOUT % 8000) << 19;
551 card->split_timeout_cycles = DEFAULT_SPLIT_TIMEOUT;
> 552 card->split_timeout_jiffies = isoc_cycles_to_jiffies(DEFAULT_SPLIT_TIMEOUT);
553 card->color = 0;
554 card->broadcast_channel = BROADCAST_CHANNEL_INITIAL;
555
556 kref_init(&card->kref);
557 init_completion(&card->done);
558 INIT_LIST_HEAD(&card->transaction_list);
559 INIT_LIST_HEAD(&card->phy_receiver_list);
560 spin_lock_init(&card->lock);
561
562 card->local_node = NULL;
563
564 INIT_DELAYED_WORK(&card->br_work, br_work);
565 INIT_DELAYED_WORK(&card->bm_work, bm_work);
566 }
567 EXPORT_SYMBOL(fw_card_initialize);
568
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-16 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-16 17:09 [linux-next:master 8604/9696] drivers/firewire/core-card.c:552:32: warning: overflow in expression; result is -1'179'869'184 with type 'long' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox