Re: [PATCH] perf: Fix function pointer case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 03, 2023 at 01:28:32AM +0000, cixi.geng@xxxxxxxxx wrote:
> 2023年8月2日 19:47, "Greg KH" <gregkh@xxxxxxxxxxxxxxxxxxx> 写到:
> 
> 
> > 
> > On Wed, Aug 02, 2023 at 07:40:53PM +0800, Cixi Geng wrote:
> > 
> > > 
> > > From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> > >  
> > >  commit 1af6239d1d3e61d33fd2f0ba53d3d1a67cc50574 upstream.
> > >  With the advent of CFI it is no longer acceptible to cast function
> > >  pointers.
> > >  
> > >  The robot complains thusly:
> > >  
> > >  kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> > >  
> > >  Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > >  Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> > >  Signed-off-by: Cixi Geng <cixi.geng1@xxxxxxxxxx>
> > >  ---
> > >  kernel/events/core.c | 8 ++++++--
> > >  1 file changed, 6 insertions(+), 2 deletions(-)
> > > 
> > 
> > What stable tree(s) is this for?
> >
> Hi Greg
> I want to apply this patch for linux-5.15-y and linux-6.1-y, 
> the other stable trees not requred for me, thanks!

Now queued up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux