Bug 10777 - proc_dir_entry 'rtc' already registered
Summary: proc_dir_entry 'rtc' already registered
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 12:10 UTC by Roland Kletzing
Modified: 2008-05-22 12:24 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.25.4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Roland Kletzing 2008-05-22 12:10:55 UTC
Latest working kernel version: -
Earliest failing kernel version: 2.6.25 , maybe earlier kernels too
Distribution: opensuse 11 beta
Hardware Environment: x86
Software Environment: - 

Problem Description:

not a real problem, but probably not desired behaviour


lsmod |grep rtc

rtc_cmos               14752  0 
rtc_core               24860  1 rtc_cmos
rtc_lib                 7040  1 rtc_core

modprobe genrtc

dmesg:
Generic RTC Driver v1.07
proc_dir_entry 'rtc' already registered
Pid: 2643, comm: modprobe Tainted: G        N 2.6.25.4-HEAD_20080520151401-default #1
 [<c01071d9>] dump_trace+0x63/0x227
 [<c0107c8a>] show_trace+0x15/0x29
 [<c02e7398>] _etext+0x5b/0x65
 [<c01aa764>] proc_register+0xf9/0x128
 [<c01aa89b>] create_proc_entry+0x77/0x8b
 [<e085e030>] rtc_generic_init+0x30/0x59 [genrtc]
 [<c0144281>] sys_init_module+0x198b/0x1ab8
 [<c01059e4>] sysenter_past_esp+0x6d/0xa9
 [<ffffe430>] 0xffffe430
 =======================

lsmod |grep rtc

genrtc                 12904  0 
rtc_cmos               14752  0 
rtc_core               24860  1 rtc_cmos
rtc_lib                 7040  1 rtc_core

as we can see genrtc loads and wants to register in /proc, but there already is  one. 

even more weird:

# ls -la /proc/driver/
insgesamt 0
dr-xr-xr-x   2 root root 0 22. Mai 21:04 .
dr-xr-xr-x 111 root root 0 22. Mai 2008  ..
-r--r--r--   1 root root 0 22. Mai 21:05 rtc
-r--r--r--   1 root root 0 22. Mai 21:05 rtc
-rw-r--r--   1 root root 0 22. Mai 21:05 snd-page-alloc

2 entries "rtc" in /proc/driver

Steps to reproduce: just do modprobe genrtc with other rtc driver already loaded.
Comment 1 Adrian Bunk 2008-05-22 12:24:03 UTC
Already fixed in kernel 2.6.26-rc1.

Note You need to log in before you can comment on or make changes to this bug.