]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Constify the 'lbr_desc[]' array and make a function static
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Jun 2017 09:14:06 +0000 (10:14 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 30 Jun 2017 07:00:56 +0000 (09:00 +0200)
commit638fe50b43e46d9cdea2bbb216f7f4656d7a0b16
treee921e2a67949a8ecbd3bcc29597356aaffc4e0ac
parent0ecbc9faabdea4dc82a6305a2e2f2ec1cab1ec60
perf/x86/intel: Constify the 'lbr_desc[]' array and make a function static

A few minor clean-ups: constify the lbr_desc[] array and make
local function lbr_from_signext_quirk_rd() static to fix a sparse warning:

  "symbol 'lbr_from_signext_quirk_rd' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Link: http://lkml.kernel.org/r/20170629091406.9870-1-colin.king@canonical.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/lbr.c