aboutsummaryrefslogtreecommitdiffstats
path: root/lib/idr.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2021-05-25 13:20:12 +0100
committerPetr Mladek <pmladek@suse.com>2021-05-27 15:38:17 +0200
commitd327ea15a305024ef0085252fa3657bbb1ce25f5 (patch)
treef801624d48b5121671faa5850da28b92591c4f8c /lib/idr.c
parent1b932689c77766b68e2ead51ca0fb84ec5bb8965 (diff)
downloadlinux-d327ea15a305024ef0085252fa3657bbb1ce25f5.tar.gz
random32: Fix implicit truncation warning in prandom_seed_state()
sparse generates the following warning: include/linux/prandom.h:114:45: sparse: sparse: cast truncates bits from constant value This is because the 64-bit seed value is manipulated and then placed in a u32, causing an implicit cast and truncation. A forced cast to u32 doesn't prevent this warning, which is reasonable because a typecast doesn't prove that truncation was expected. Logical-AND the value with 0xffffffff to make explicit that truncation to 32-bit is intended. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20210525122012.6336-3-rf@opensource.cirrus.com
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions
elease/core52-81 Intel wireless group's fork of linux.gitIntel wireless group
aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2013-06-17 17:36:47 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-15 23:52:13 +0000
commitd97a3af68650806f04de8f8fe29bb75ef387112c (patch)
tree359f85ecaae90247b7513f9e46063d576f1cc61d /arch
parente436c9107f405fe3e248dd4b1c5ee69e3001dbc9 (diff)
downloadchromeos-d97a3af68650806f04de8f8fe29bb75ef387112c.tar.gz
UPSTREAM: perf/x86/intel: Add Haswell PEBS record support
Add support for the Haswell extended (fmt2) PEBS format. It has a superset of the nhm (fmt1) PEBS fields, but has a longer record so we need to adjust the code paths. The main advantage is the new "EventingRip" support which directly gives the instruction, not off-by-one instruction. So with precise == 2 we use that directly and don't try to use LBRs and walking basic blocks. This lowers the overhead of using precise significantly. Some other features are added in later patches. BUG=chromium:371570 TEST=`emerge-link chromeos-kernel-next` Reviewed-by: Stephane Eranian <eranian@google.com> Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Andi Kleen <ak@linux.jf.intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Link: http://lkml.kernel.org/r/1371515812-9646-2-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar <mingo@kernel.org> (cherry picked from commit 130768b8c93cd8d21390a136ec8cef417153ca14) Signed-off-by: Sonny Rao <sonnyrao@chromium.org> Change-Id: Id4089ab5563cb5bcb319e171db3d2c59ad32ff65 Reviewed-on: https://chromium-review.googlesource.com/199991 Reviewed-by: Simon Que <sque@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org>