Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Alexander_Naumov:SLE12
btrfsprogs
2004-compat-define-DIV_ROUND_UP-if-not-already-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2004-compat-define-DIV_ROUND_UP-if-not-already-defined.patch of Package btrfsprogs
From d841c884d93380621cb379efb736cf4466e4ff81 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney <jeffm@suse.com> Date: Wed, 14 Aug 2013 14:21:54 -0400 Subject: [PATCH 05/10] compat: define DIV_ROUND_UP if not already defined DIV_ROUND_UP may not be defined, so define it if it's not already. Signed-off-by: Jeff Mahoney <jeffm@suse.com> --- bitops.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/bitops.h +++ b/bitops.h @@ -3,6 +3,10 @@ #include <linux/kernel.h> +#ifndef DIV_ROUND_UP +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) +#endif + #define BITS_PER_BYTE 8 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor