Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102198776
D33784.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33784.diff
View Options
diff --git a/sys/dev/tws/tws.c b/sys/dev/tws/tws.c
--- a/sys/dev/tws/tws.c
+++ b/sys/dev/tws/tws.c
@@ -349,7 +349,7 @@
{
struct tws_softc *sc = device_get_softc(dev);
int i;
- u_int32_t reg __diagused;
+ u_int32_t reg __tws_debug;
TWS_TRACE_DEBUG(sc, "entry", 0, 0);
diff --git a/sys/dev/tws/tws_hdm.c b/sys/dev/tws/tws_hdm.c
--- a/sys/dev/tws/tws_hdm.c
+++ b/sys/dev/tws/tws_hdm.c
@@ -82,7 +82,7 @@
int
tws_init_ctlr(struct tws_softc *sc)
{
- u_int64_t reg __diagused;
+ u_int64_t reg __tws_debug;
u_int32_t regh, regl;
TWS_TRACE_DEBUG(sc, "entry", sc, sc->is64bit);
diff --git a/sys/dev/tws/tws_services.h b/sys/dev/tws/tws_services.h
--- a/sys/dev/tws/tws_services.h
+++ b/sys/dev/tws/tws_services.h
@@ -61,10 +61,12 @@
#endif
#ifdef TWS_TRACE_DEBUG_ON
+ #define __tws_debug
#define TWS_TRACE_DEBUG(sc, desc, val1, val2) \
tws_trace(__FILE__, __func__, __LINE__, sc, desc, \
(u_int64_t)val1, (u_int64_t)val2)
#else
+ #define __tws_debug __unused
#define TWS_TRACE_DEBUG(sc, desc, val1, val2)
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 8:40 PM (18 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14565507
Default Alt Text
D33784.diff (1 KB)
Attached To
Mode
D33784: fix "set but not used" in the tws driver
Attached
Detach File
Event Timeline
Log In to Comment