From: chas w. <ch...@cm...> - 2003-09-29 17:54:19
|
In message <200...@ga...>,Mitchell Blank Jr writes: >Really? I haven't seen that problem. try_then_request_module is defined >in such a way that arg #1 is a random pointer (and preserves its type) >What version of gcc are you using (and what is the exact warning) net/atm/common.c:432: warning: pointer/integer type mismatch in conditional expression gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1) try_then_request_module() would expland to: dev = atm_dev_lookup(itf) ?: request_module("atm-device-%d", itf), atm_dev_lookup(itf); the second half of the conditional clause is a compound statement x,y. i would guess this returns an integer value. i see very little use of try_then_request_module() in the kernel i imagine this is for a fairly good reason. |