Re: [PATCH 1/4] DSPBRIDGE: Fix macros that break when inside an if/else

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Carmody Phil.2 (EXT-Ixonos/Helsinki)" <ext-phil.2.carmody@xxxxxxxxx>
Subject: Re: [PATCH 1/4] DSPBRIDGE: Fix macros that break when inside an if/else
Date: Tue, 14 Jul 2009 15:17:25 +0200

[...]
> > I am not sure if these copy_from_user() wrapping are practically
> > useful or not. It may be enough just to use kernel API as is. But if
> > there are some reason to requires strict parameter checkings or
> > debugging feature support for these family here, introducing inline
> > functions for them, instead of macro, may be another option?
> 
> I did mention that possibility to Ameya. In the 21st century, I think we
> should be able to trust the compiler to generate identical code from
> inline functions as functional macros. (Are we allowed to use 'restrict'
> pointers?)

I tried to create the attached patch.

Attachment: 0001-DSPBRIDGE-fix-macros-that-break-when-inside-an-if-e.patch
Description: Binary data


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux