From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2886DC001DF for ; Fri, 4 Aug 2023 10:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbjHDKm7 (ORCPT ); Fri, 4 Aug 2023 06:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbjHDKmy (ORCPT ); Fri, 4 Aug 2023 06:42:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E341B46B2 for ; Fri, 4 Aug 2023 03:42:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8150161F71 for ; Fri, 4 Aug 2023 10:42:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90A68C433C8; Fri, 4 Aug 2023 10:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691145772; bh=M3GwSTsf1pXl/olcYLRzMx/u2C5eqkwW/T641rvxhKM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DvmoW9pSZ4JrDg0o7jfI/aS32e65Xo6cZY7PLCiyT1nVVBIdLuDLDcaE7Vqq+YB1V HiASngX4KBTT3wtMm2Q639LQu9yL8RJ7DK8awgyO0rndgm8UTKy6wE4MIRv/6mXvg1 zzXF8ntFR51ILHP2B/+PUZ21kd2SV4h9cT9/GY8U= Date: Fri, 4 Aug 2023 12:42:50 +0200 From: Greg KH To: cixi.geng@linux.dev Cc: peterz@infradead.org, stable@vger.kernel.org, enlin.mu@unisoc.com Subject: Re: [PATCH] perf: Fix function pointer case Message-ID: <2023080443-lance-bolt-0e7b@gregkh> References: <2023080214-unneeded-wireless-3508@gregkh> <20230802114053.3613-1-cixi.geng@linux.dev> <840c9ebf1d741de735b3a1d882364ff0f3904bdd@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <840c9ebf1d741de735b3a1d882364ff0f3904bdd@linux.dev> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Aug 03, 2023 at 01:28:32AM +0000, cixi.geng@linux.dev wrote: > 2023年8月2日 19:47, "Greg KH" 写到: > > > > > > On Wed, Aug 02, 2023 at 07:40:53PM +0800, Cixi Geng wrote: > > > > > > > > From: Peter Zijlstra > > > > > > 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 > > > Signed-off-by: Peter Zijlstra (Intel) > > > Signed-off-by: Cixi Geng > > > --- > > > 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