kernel: (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info()

Bug #1760273 reported by dino99 on 2018-03-31
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned

Bug Description

That error is logged since a while with all the supported kernels.
Please apply the patch on them:

https://github.com/torvalds/linux/blob/master/drivers/hwmon/hwmon.c

To get a maintained version of lm-sensors:
https://github.com/groeck/lm-sensors

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: libsensors4 1:3.4.0-4
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Mar 31 10:42:25 2018
Dependencies:
 gcc-7-base 7.2.0-8ubuntu3.2
 libc6 2.26-0ubuntu2.1
 libgcc1 1:7.2.0-8ubuntu3.2
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lm-sensors
UpgradeStatus: No upgrade log present (probably fresh install)

dino99 (9d9) wrote :
tags: added: bionic bot-stop-nagging
description: updated

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1760273

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
dino99 (9d9) on 2018-03-31
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Joseph Salisbury (jsalisbury) wrote :

Do you happen to know if this bug also exists in Bionic?

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
dino99 (9d9) wrote :

Still exist in Bionic

dino99 (9d9) wrote :

Have tested the 4.16 vanilla kernel; and the hwmon warning is gone now.

tags: added: kernel-bug-fixed-upstream
dino99 (9d9) on 2018-04-03
no longer affects: lm-sensors (Ubuntu)
dino99 (9d9) wrote :

Test with 4.15.0-14-generic kernel

oem@ubuntu:~$ journalctl -b | grep hwmon_device_register
Apr 03 16:22:25 ubuntu kernel: (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().

dino99 (9d9) wrote :

oem@ubuntu:/boot$ sudo grep hwmon_device_register abi-4.15.0-14-generic
EXPORT_SYMBOL_GPL vmlinux 0x00000000 devm_hwmon_device_register_with_groups
EXPORT_SYMBOL_GPL vmlinux 0x00000000 devm_hwmon_device_register_with_info
EXPORT_SYMBOL_GPL vmlinux 0x00000000 hwmon_device_register # <<<<<<<<<<<<<<<<<<<<<
EXPORT_SYMBOL_GPL vmlinux 0x00000000 hwmon_device_register_with_groups
EXPORT_SYMBOL_GPL vmlinux 0x00000000 hwmon_device_register_with_info

dino99 (9d9) wrote :

#5 comment addon

Greping like in #7 the vanilla 4.16 kernel also expose:

EXPORT_SYMBOL_GPL vmlinux 0x00000000 hwmon_device_register

but greping journalctl does not show that warning; maybe it is simply silenced.

dino99 (9d9) wrote :

kernel 4.15.0-15

kernel: (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info()

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers