summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2026-06-04 09:54:23 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2026-06-08 14:50:56 +0200
commit7d4ea0365c8f5d6d685a52ed2ffbfb0c98f002a3 (patch)
tree291fd4afb7207979a15eb214a7df3b7c0308e924 /scripts
parent01793374319cdb685bd487633bbd8bd57f416172 (diff)
m68k: hash: Use lower_16_bits() helper
When building for m68k with CONFIG_M68000=y and C=1: drivers/clk/rockchip/clk-rk3528.c: note: in included file (through include/linux/hash.h, include/linux/slab.h): arch/m68k/include/asm/hash.h:57:24: warning: cast truncates bits from constant value (18720 becomes 8720) arch/m68k/include/asm/hash.h:57:24: warning: cast truncates bits from constant value (1e8e8 becomes e8e8) Sparse does not realize the truncation is intentional. Make this explicit by using the lower_16_bits() helper instead, which also masks the unwanted bits. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202605191434.PQkj2Rki-lkp@intel.com/ Reported-by: Heiko Stuebner <heiko@sntech.de> Closes: https://lore.kernel.org/20260603213726.1025094-1-heiko@sntech.de/ Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Daniel Palmer <daniel@thingy.jp> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Link: https://patch.msgid.link/b55e9bd0532c0cad519809c86e0a8400060d75a1.1780559561.git.geert@linux-m68k.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions