07 Feb, 2019
1 commit
-
In arch/sandbox/include/asm/types.h we have
Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as
CONFIG_PHYS64 is not setThis messes up the current logic of GENMASK macro due to mismatch b/w
size of unsigned long (64 bit) and that of BITS_PER_LONG.
Fix this by using CONFIG_SANDBOX_BITS_PER_LONG which is set to 64/32
based on the host machine on which its being compiled.Without this patch:
GENMASK(14,0) => 0x7fffffffffff
After this patch:
GENMASK(14,0) => 0x7fffSigned-off-by: Vignesh R
Reviewed-by: Simon Glass
28 Nov, 2017
1 commit
-
Same macros are defined in various places. Collect them into
include/linux/bitops.h like Linux.Signed-off-by: Masahiro Yamada
29 Mar, 2017
1 commit
-
The macro GENMASK_ULL needs the BITS_PER_LONG_LONG macro which is
defined in the bitsperlong.h header. Lets include this header as
the upcoming A7k/8k support in the Marvell mvpp2 ethernet driver
uses this macro.Signed-off-by: Stefan Roese
Reviewed-by: Tom Rini
Reviewed-by: Joe Hershberger
05 Nov, 2015
1 commit
-
Add fls_long and __ffs64 support to align with the kernel bitops
implementation.Signed-off-by: Fabio Estevam
21 Oct, 2015
2 commits
-
GENMASK is used to create a contiguous bitmask([hi:lo]).
This patch is a copy from Linux, with below commit details
"bitops: Fix shift overflow in GENMASK macros"
(sha1: 00b4d9a14125f1e51874def2b9de6092e007412d)Cc: Tom Rini
Cc: Masahiro Yamada
Signed-off-by: Jagan Teki -
Since it's a copy from Linux, this patch moved all
BIT definitions to top so-that it looks same as Linux file.Cc: Tom Rini
Cc: Albert ARIBAUD
Signed-off-by: Jagan Teki
12 Sep, 2015
1 commit
-
introduce BIT() definition, used in at91_udc gadget
driver.Signed-off-by: Heiko Schocher
[remove all other occurrences of BIT(x) definition]
Signed-off-by: Andreas Bießmann
Acked-by: Stefan Roese
Acked-by: Anatolij Gustschin
18 Sep, 2009
1 commit
-
Commits
02f99901ed1c9d828e3ea117f94ce2264bf8389e
52d61227b66d4099b39c8309ab37cb67ee09a405introduced a regression where platform-specific ffs/fls implementations
were defined away. This patch corrects that by using PLATFORM_xxx
instead of the name itself.Signed-off-by: Simon Kagstrom
Acked-by: Kumar Gala
Acked-by: Stefan Roese
16 Sep, 2009
2 commits
-
UBIFS requires fls(), which is not defined for arm (and some other
architectures) and this patch adds it. The implementation is taken from
Linux and is generic. ffs() is also defined for those that miss it.Signed-off-by: Simon Kagstrom
-
__set_bit and __clear_bit are defined in ubifs.h as well as in
asm/include/bitops.h for some architectures. This patch moves
the generic implementation to include/linux/bitops.h and uses
that unless it's defined by the architecture.Signed-off-by: Simon Kagstrom
28 Jun, 2003
1 commit
-
- remove trailing white space, trailing empty lines, C++ comments, etc.
- split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)* Patches by Kenneth Johansson, 25 Jun 2003:
- major rework of command structure
(work done mostly by Michal Cendrowski and Joakim Kristiansen)
21 Aug, 2000
1 commit