lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200911232234.41411.ioe-lkml@rameria.de>
Date:	Mon, 23 Nov 2009 22:34:41 +0100
From:	Ingo Oeser <ioe-lkml@...eria.de>
To:	"H Hartley Sweeten" <hartleys@...ionengravers.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: drivers/dma/mv_xor.c: use resource_size()

Hi,

On Monday 23 November 2009, H Hartley Sweeten wrote:
> Use resource_size() for devm_ioremap.

This pattern foo = do_with_res(res->start, resource_size(res)) seem to happen quite often.
What about creating inline functions like

foo = do_with_full_res(res)

?

That would save some code and make it obviously correct.

Best Regards

Ingo Oeser
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ