netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Carlos Martín" <carlos@cmartin.tk>
To: Denis Vlasenko <vda@ilport.com.ua>
Cc: netdev@vger.kernel.org, acx100-devel@lists.sourceforge.net,
	"Christoph Hellwig" <hch@infradead.org>
Subject: Re: [PATH][RFC] acxsm: Make acx mdoular again
Date: Mon, 27 Feb 2006 11:44:38 +0100	[thread overview]
Message-ID: <200602271144.39346.carlos@cmartin.tk> (raw)
In-Reply-To: <200602271220.14853.vda@ilport.com.ua>

On Monday 27 February 2006 11:20, Denis Vlasenko wrote:
> > Comments are welcome and I'll split the patch if needed.
> 
> usb.c
> =====
> #define BOGUS_SAFETY_PADDING 0x40
> 
> int
> acxusb_s_issue_cmd_timeo(
>         acx_device_t *adev,
>         unsigned cmd,
>         void *buffer,
>         unsigned buflen,
>         unsigned timeout)
> {
> #if ACX_DEBUG
>         return acx_s_issue_cmd_timeo_debug(adev, cmd, buffer, buflen, 
timeout, __stringify(cmd));
> #else
>         return acx_s_issue_cmd_timeo_debug(adev, cmd, buffer, buflen, 
timeout);
> #endif
> }
> 
> stringify what? We want symbolic command name, not it's numeric value.
> stringifying must occur in .h file.

Missed that. The problem is that right now we need to reference the function. 
There's no real need for it, so I'll change it.

> 
> 
> acx_func.h
> ==========
> #if ACX_DEBUG
> 
> /* We want to log cmd names */
> int acxpci_s_issue_cmd_timeo_debug(acx_device_t *adev, unsigned cmd, void 
*param, unsigned len, unsigned timeout, const char* cmdstr);
> int acxusb_s_issue_cmd_timeo_debug(acx_device_t *adev, unsigned cmd, void 
*param, unsigned len, unsigned timeout, const char* cmdstr);
> static inline int
> acx_s_issue_cmd_timeo_debug(acx_device_t *adev, unsigned cmd, void *param, 
unsigned len, unsigned timeout, const char* cmdstr)
> {
>         if (IS_PCI(adev))
>                 return acxpci_s_issue_cmd_timeo_debug(adev, cmd, param, len, 
timeout, cmdstr);
>         return acxusb_s_issue_cmd_timeo_debug(adev, cmd, param, len, 
timeout, cmdstr);
> }
> int acx_s_issue_cmd(acx_device_t *adev, unsigned cmd, void *param, unsigned 
len);
> 
> It will recurse: acx_s_issue_cmd_timeo_debug -> 
acxusb_s_issue_cmd_timeo_debug -> acx_s_issue_cmd_timeo_debug ->....

I forgot to remove that function. In acxusb_s_issue_timeo, it should call 
acxusb_s_issue_cmd_timeo_{debug,nodebug}, not the generic function.

> Why do you need if (IS_PCI(adev)) at all?
> 
> Please apply the attached style fixes on top of your patches.

Will do.

   cmn
-- 
Carlos Martín Nieto    |   http://www.cmartin.tk
Hobbyist programmer    |


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642

  reply	other threads:[~2006-02-27 10:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200602261710.33923.carlos@cmartin.tk>
2006-02-27 10:20 ` [PATH][RFC] acxsm: Make acx mdoular again Denis Vlasenko
2006-02-27 10:44   ` Carlos Martín [this message]
2006-02-28  1:34     ` John W. Linville
2006-02-28  6:12       ` Denis Vlasenko
2006-03-01 13:58       ` [PATCH] wireless.git: update acxsm to 0.4.7 Denis Vlasenko
2006-03-21 19:10         ` John W. Linville

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602271144.39346.carlos@cmartin.tk \
    --to=carlos@cmartin.tk \
    --cc=acx100-devel@lists.sourceforge.net \
    --cc=hch@infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=vda@ilport.com.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).