On Thu, 2008-02-21 at 02:05 -0800, David Miller wrote: > From: Harvey Harrison <[EMAIL PROTECTED]> > Date: Thu, 21 Feb 2008 02:01:19 -0800 > > > In this case, it's being passed to a debugfs create function, could it > > instead use sysfs_format_mac? > > Just assigning print_mac() to a local variable then passing that to > debugfs_create_dir() will make the warning go away.
Indeed, either of those will work. > From another perspective adding that __pure attribute to print_mac() > might not have been the best idea. But I can't think of another > way to elimitate the "passing print_mac() args to pr_debug() > still generates calls to print_mac() even when DEBUG is not > defined" problem :-/ Yeah, I saw that discussion. I think it's fine, it's just something we need to be aware of. In fact, I Joe had a patch (that seems to have gotten lost?) to make DECLARE_MAC_BUF() declare a structure with the u8 pointer in it instead to get type checking for the args, which would make our code there not even compile, and imho rightfully so. I'll send in a patch to fix this (via John) and Joe can resend his patch to get typechecking there. johannes
signature.asc
Description: This is a digitally signed message part