Skip to contentSkip to conversation

Driver core fixes for 5.0-rc2

GIT PULL Merged Greg KH 2 participants 2 messages Jan 13, 2019

lore
Share & tools
lore

Greg KH

author
#0 lore raw

The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c:

Linux 5.0-rc1 (2019-01-06 17:08:20 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-5.0-rc2

for you to fetch changes up to 735df0ff6ece7b8759a744158f5d246fae4739f4:

Documentation: driver core: remove use of BUS_ATTR (2019-01-08 15:17:45 +0100)

----------------------------------------------------------------
Driver core fixes for 5.0-rc2

Here is one small sysfs change, and a documentation update for 5.0-rc2

The sysfs change moves from using BUG_ON to WARN_ON, as discussed in an email thread on lkml while trying to track down another driver bug. sysfs should not be crashing and preventing people from seeing where they went wrong. Now it properly recovers and warns the developer.

The documentation update removes the use of BUS_ATTR() as the kernel is moving away from this to use the specific BUS_ATTR_RW() and friends instead. There are pending patches in all of the different subsystems to remove the last users of this macro, but for now, don't advertise it should be used anymore to keep new ones from being introduced.

Both have been in linux-next with no reported issues.

----------------------------------------------------------------
Greg Kroah-Hartman (2):
sysfs: convert BUG_ON to WARN_ON
Documentation: driver core: remove use of BUS_ATTR

 Documentation/driver-model/bus.txt  | 8 ++++----
 Documentation/filesystems/sysfs.txt | 4 +++-
 fs/sysfs/dir.c                      | 3 ++-
 fs/sysfs/file.c                     | 6 ++++--
 fs/sysfs/group.c                    | 3 ++-
 fs/sysfs/symlink.c                  | 3 ++-
 6 files changed, 17 insertions(+), 10 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 13 Jan 2019 11:24:07 +0100:

The pull request you sent on Sun, 13 Jan 2019 11:24:07 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-5.0-rc2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/72d657dd2115804b93bde4b77e426cc2de70eebf

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker