From: kernel test robot <lkp@intel.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Wed, 17 Sep 2025 01:09:26 +0800 [thread overview]
Message-ID: <202509170136.b5ZHaNAV-lkp@intel.com> (raw)
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
reply other threads:[~2025-09-16 17:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202509170136.b5ZHaNAV-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=o-takashi@sakamocchi.jp \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox