Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6220853rwn; Tue, 13 Sep 2022 00:19:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lPTpwlNLIfp32Uu1mQuI6APxOEdWv8kKqmSZDW3QQ9OEZ8Mmzh1hY+ONJkaxnkOGtxSxI X-Received: by 2002:aa7:9047:0:b0:53d:f915:8bba with SMTP id n7-20020aa79047000000b0053df9158bbamr31936105pfo.63.1663053577246; Tue, 13 Sep 2022 00:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663053577; cv=none; d=google.com; s=arc-20160816; b=NPyr4meRObeMGbO2W+tCtzoMFdTOHPOX5WAiSSY/IapkRwvqifAJuggMQNXudX1rmL d5LrheycmOuxtanRb8FiEdh/omL34DWLh+BoD6GEg3p1yLIPWux8j5ehpD2NkRizs4Ct 2LKuiduLhK+PmaVYJ4fMMcjo+1kDUmRYlvLA6O0APE88I1eAP3938nzLkHW122foO+BW zqJxYw1yW+DtQskzi7soB/ETTsMb1iwIT1n6s7xUB1JfsL2LplWvTmItqRF5K8TNE99E GH5wNutGL85pgaOLLlhI1DVcFmJYcnW+1hhMHBLlYYZszOBskjmUTMo7Mw1NVMpa8z9f m8mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UoQ28Kix9CadreRi69EyX+ldkRLWeLo2Q5k9iACgE4I=; b=pfTjxG1lpBkBpsMVR+TQ/4g3IMGBUAiTW9kYIqnLU8qq9NEUS5KDcgjdY/m2FeTh7P aTSEOl/yRrpZtPnD7LCweMm6Z14y/x5fwBA72iGxB5KXFeG0MiEnrLep4873aARibJOd t61pbX/bV8Z/JxePF+7mlkibBTheKpBmjb1YtKhPQQ+hG6mpyRzh6yHtIMKa0ai7opk9 LtENBtJRl26f+u83l+9asn2dEDhUz0HXH0tJeiu3DZJIXTO3r/Dssm4LX4xKZYf16dUx PPWGIsv9HnIx/NJ37uKYXsmjqCRPiTViZT1zA02IzkjUpGr3r4cGs1Qw20t3Q/Dcan9J XsSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Y1Q89Kwk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a170903110500b00176e16b0c58si1259445plh.21.2022.09.13.00.19.25; Tue, 13 Sep 2022 00:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Y1Q89Kwk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230361AbiIMGcs (ORCPT + 99 others); Tue, 13 Sep 2022 02:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiIMGcp (ORCPT ); Tue, 13 Sep 2022 02:32:45 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCAB13F71 for ; Mon, 12 Sep 2022 23:32:43 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-3450a7358baso127530997b3.13 for ; Mon, 12 Sep 2022 23:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=UoQ28Kix9CadreRi69EyX+ldkRLWeLo2Q5k9iACgE4I=; b=Y1Q89KwkYzAHSigQEYEXus5Ug+5BK8mK25+4i2lyKTage4SbMj2vPVOakyK3XRQqN0 XZBpGa5DBuVgbQDPbkC5p+eJYTETxHEO5atUNthgQxJI+RT9uCb6f/1V/UGSElsu0oy6 tbHdy7UsZtmSe3Af42ehQ186k1aFEEyrfJLfNkbTfMA0NJEkxakM3b8wPyj7wA/lE9Mu ijxt+n/xhxH2Kn4rh5RwiN2t+sR9/KysFNGXcU+DR0wCk+9WJYK05vat0/ouEQQ+rRnT iOfnP+L3T/tW0ctyKyydMPkkZYeSx8BbiLiWo2lIB94I7B0bMqLAzJqVz1GKxBGEnNmg T3SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=UoQ28Kix9CadreRi69EyX+ldkRLWeLo2Q5k9iACgE4I=; b=PIMIfq8mL9/8Z1U+WgEXI6xv1IaFiy2xpk6IBdE1Xs0gGN3vtRFk3XsELjykLnUx+o kh3MDMsqC1uPibY+o1wCVPZgY8OPxwPIFPO3TcS2EmbvPsGkAqeUUKzn8q+mAUVELZKd a89vULlggV62AklX+1awn8YLaXqZcUYYIcEMfB1tZZAH6CVbI5sA5HIzyuY8FHgsCEw1 g5v0fzIi1FBuW4gvvzODxdOxHveRVbtcrvs9/uPKnxhIC1ee/pVgjI2D1Lkb4LJ1CKnH 28R26TG5uaN7yaJP1LT8idQmppJ3hbhMaphibf0Mo6Tk7dkpHjQXAvUWQZR0vwl1/J3T bxCA== X-Gm-Message-State: ACgBeo1zmsCZFKVYjsmdRSwM6tN8rFSnJ8EEI+F+n8o91TWuA7ZA+7S1 mMKmba5kH3Di3rCgow4yZA4aMtpR18Jc7bmUW5I= X-Received: by 2002:a0d:df93:0:b0:348:f7a9:97db with SMTP id i141-20020a0ddf93000000b00348f7a997dbmr12350017ywe.268.1663050763139; Mon, 12 Sep 2022 23:32:43 -0700 (PDT) MIME-Version: 1.0 References: <20220912214535.929116-1-nhuck@google.com> In-Reply-To: <20220912214535.929116-1-nhuck@google.com> From: Nam Cao Date: Tue, 13 Sep 2022 08:32:32 +0200 Message-ID: Subject: Re: [PATCH] staging: r8188eu: Fix return type of rtw_xmit_entry To: Nathan Huckleberry Cc: Dan Carpenter , llvm@lists.linux.dev, Larry Finger , Phillip Potter , Pavel Skripkin , Greg Kroah-Hartman , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ivan Safonov , Saurav Girepunje , Vihas Makwana , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 12, 2022 at 11:45 PM Nathan Huckleberry wrote: > > The ndo_start_xmit field in net_device_ops is expected to be of type > netdev_tx_t (*ndo_start_xmit)(struct sk_buff *skb, struct net_device *dev). > > The mismatched return type breaks forward edge kCFI since the underlying > function definition does not match the function hook definition. > > The return type of rtw_xmit_entry should be changed from int to > netdev_tx_t. > > Reported-by: Dan Carpenter > Link: https://github.com/ClangBuiltLinux/linux/issues/1703 > Cc: llvm@lists.linux.dev > Signed-off-by: Nathan Huckleberry I am unable to apply your patch. I think because of this: 3e0a6c4414ac ("staging: r8188eu: remove os_dep/xmit_linux.c"). Can you update your git repo and resubmit? Best regards, Nam