Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7189871rwn; Tue, 13 Sep 2022 15:46:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5hv1WH6yAf4QChW2GQkzLKfmTEe6g5jlcWuQE/yfYl/4DhmH6wAO9nEnPD05+kiwfSPNy3 X-Received: by 2002:a17:906:30c8:b0:73c:81a9:f8e1 with SMTP id b8-20020a17090630c800b0073c81a9f8e1mr23489945ejb.649.1663109160447; Tue, 13 Sep 2022 15:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663109160; cv=none; d=google.com; s=arc-20160816; b=QadSofg5+AerWDZEiWoXn2mXe756ibscvfr0yy9QS5WnEcD+OH2dRq72eRpEqdKESg bwWkzfc9H4EtW5A931GqygvA06KQEDFP0IqcQbEr/6Z+fdBZypGBgu6i+gCboJsHgnuv AUA99z957WKsJ/Dl1NQWUN/2S/kirzxJA7lbGIljDGVEHWHiMNHYUtZmRzuC2qizxsD+ viQHFi7UuqR3qWZf6qIB/yfdFPPyXr2Z5M7AgXMX94lklmQ8IMquW1wYN0iCKuNQwTaH IZr0Gpvm1JfIzqwo5z6OF41DCu8JvJRL9DUS7V/hq5nT6nHtcRaCfAoejKxF1RHQdAUv shww== 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=Mn9WBo5vNNbs0NZJBbiO/Yi28wMF/lgC71dq4ukkoxE=; b=K9/txz+y1X5KLh6+yjvofOQs2dSNC8+qjqHLHo/XrXoHWCRvuY+9Y5vyM/XvvbXJB3 GN4YxEDVqKzi/mSszOYfTGx00YDnLhIysFDwBbQZ4PE7YkqIiwKP2e6rpFB2PXilXdUi ij0fltCkdfyFOlUQfu5KYr0JoeGiYJudiayBNS6jMALnLqqNWBhQEJo3z6xb8q3M2jul Mz4vhXxs+PxieyzGxM+3KU2PE7VAjkSgLTRmwlQFZZomhn0y9LdtzQi1iq3iCbFoqqku OPEvTXUn7hypqW9KL7vPdXXSx1F7TvDXSeS9AIk0sSeaUS/MunEmzoy15F/Q99FwHdH4 0N/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Dubdtf18; 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 i1-20020a05640242c100b0044dbb9afe1fsi12753899edc.467.2022.09.13.15.45.35; Tue, 13 Sep 2022 15:46:00 -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=Dubdtf18; 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 S229520AbiIMWYF (ORCPT + 99 others); Tue, 13 Sep 2022 18:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiIMWYD (ORCPT ); Tue, 13 Sep 2022 18:24:03 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3252D74DEC for ; Tue, 13 Sep 2022 15:24:00 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id q15-20020a17090a304f00b002002ac83485so12685891pjl.0 for ; Tue, 13 Sep 2022 15:24:00 -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=Mn9WBo5vNNbs0NZJBbiO/Yi28wMF/lgC71dq4ukkoxE=; b=Dubdtf184nm84qSfvmgvXOaoKydU193nKrYzRylLXH5pTxCx/EiPSQhBryggNtpSPw 7dhYt/5APvLYyi7HiY1eUJh4GW+Y1P6SbKRN4mFj8umVUMA/XAnIIxvgofSNBuk4Lc9z ejY8Jr+V8zRwa7zRzy5+ZzAMhRmrSW6mGEz0dMIY4SQhGrCvpPVmMHxv1HNChGiOb4b3 F4rHo62tImNd98RCVCSodsXZrLh9NJqrKy1BF6m86EFHBG/LCQsil0p8qZZMPdviHgNQ rXCaImFIuECYoPeovbaFPCBiRi60XvRfm7I/HlUFGTSYcq4KIGNqr5+gq5OL92KZ0zYx xxpg== 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=Mn9WBo5vNNbs0NZJBbiO/Yi28wMF/lgC71dq4ukkoxE=; b=DD6La+gnqgots6ylELaGUbT52vGNCdDN+MaI2wOq05KGHFHAnP6DDTO7dvX0xdqwnc O04oFAAVgkjip8rnL8p2W46yjYrNIuhyg4Nyg4gDUvhGUroovQy30Jn2MsPWLX9pP9l+ +XoY6aH+o4adHRLJ88DsUUVKVCPqf9/4yG6VipuNkkwsMI+K6zF46jP3wPW0lczsrxsv uXEkZyfniLnbKdHr0TNASNkGJMOQmRuX6sYrJ6UU0kqcAI4CBJSvftCV1zM0jHhNIUND OZ5a8uWuCjYHWbvZHmH5NSZwEZlDP2mLuWh5ZbHm9Zkb1Iwf1NRZr1kjBohrvpoVQwLY Ts3Q== X-Gm-Message-State: ACgBeo23VBqIJjX6bal/mnKbktFROpqI6o58LruQMopmuZZEe3HagHUi YlCn3PIJ4mk/sOzx0kqLMmHREQSNOhgJMIB0TjA= X-Received: by 2002:a17:902:f782:b0:173:1206:cee0 with SMTP id q2-20020a170902f78200b001731206cee0mr33234283pln.130.1663107839649; Tue, 13 Sep 2022 15:23:59 -0700 (PDT) MIME-Version: 1.0 References: <20220913205544.155106-1-nhuck@google.com> In-Reply-To: <20220913205544.155106-1-nhuck@google.com> From: Fabio Estevam Date: Tue, 13 Sep 2022 19:23:46 -0300 Message-ID: Subject: Re: [PATCH] drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid To: Nathan Huckleberry Cc: Dan Carpenter , llvm@lists.linux.dev, Philipp Zabel , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Nathan Chancellor , Nick Desaulniers , Tom Rix , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, 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 Hi Nathan, On Tue, Sep 13, 2022 at 5:55 PM Nathan Huckleberry wrote: > > The mode_valid field in drm_connector_helper_funcs is expected to be of > type: > enum drm_mode_status (* mode_valid) (struct drm_connector *connector, > struct drm_display_mode *mode); > > The mismatched return type breaks forward edge kCFI since the underlying > function definition does not match the function hook definition. > > The return type of imx_tve_connector_mode_valid should be changed from > int to enum drm_mode_status. > > Reported-by: Dan Carpenter > Link: https://github.com/ClangBuiltLinux/linux/issues/1703 > Cc: llvm@lists.linux.dev > Signed-off-by: Nathan Huckleberry Reviewed-by: Fabio Estevam