Subject: linux-next: build failure after merge of the bluetooth tree

From: Stephen Rothwell <[email-masked]>
Date: Thu, 18 Dec 2025 21:59:12 +1100

Hi all,

After merging the bluetooth tree, today's linux-next build (powerpc
allyesconfig) failed like this:

In file included from include/linux/byteorder/big_endian.h:5,
                 from arch/powerpc/include/uapi/asm/byteorder.h:14,
                 from arch/powerpc/include/asm/qspinlock_types.h:6,
                 from arch/powerpc/include/asm/spinlock_types.h:10,
                 from include/linux/spinlock_types_raw.h:7,
                 from include/linux/ratelimit_types.h:7,
                 from include/linux/printk.h:9,
                 from include/asm-generic/bug.h:31,
                 from arch/powerpc/include/asm/bug.h:116,
                 from include/linux/ktime.h:24,
                 from include/linux/poll.h:7,
                 from include/net/bluetooth/bluetooth.h:29,
                 from net/bluetooth/mgmt_config.c:7:
net/bluetooth/mgmt_config.c: In function 'read_def_system_config':
include/uapi/linux/byteorder/big_endian.h:34:26: error: conversion from 'unsigned int' to 'short unsigned int' changes value from '536870912' to '0' [-Werror=overflow]
   34 | #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
      |                          ^
include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__cpu_to_le32'
   88 | #define cpu_to_le32 __cpu_to_le32
      |                     ^~~~~~~~~~~~~
net/bluetooth/mgmt_config.c:40:19: note: in expansion of macro 'cpu_to_le32'
   40 |                 { cpu_to_le32(_param_code_), sizeof(__u32) }, \
      |                   ^~~~~~~~~~~
net/bluetooth/mgmt_config.c:127:17: note: in expansion of macro 'TLV_SET_U32'
  127 |                 TLV_SET_U32(0x0020, idle_timeout),
      |                 ^~~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

  afa20d8099dd ("Bluetooth: mgmt: Add idle_timeout to configurable system parameters")

I have reverted that commit for today.

-- 
Cheers,
Stephen Rothwell