Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2188206rdb; Thu, 21 Sep 2023 10:56:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzYc9UBnseqYqdiud4vSptIppu7g6gN6VruB7lWtpYBjwwNrRmjyO4JB3luh4wlPpfMbYH X-Received: by 2002:a17:90a:8004:b0:274:a021:9383 with SMTP id b4-20020a17090a800400b00274a0219383mr6218129pjn.17.1695318965349; Thu, 21 Sep 2023 10:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695318965; cv=none; d=google.com; s=arc-20160816; b=joR1O1L5uZ1SqulhTGGeXIfI83dWnauy2BJ3S3dilw7HjmNMJC42UryqnkNle9TeTc 8Bvm2rGnKavF/cbjmd2z1Rrd0SijU363jW5WGBhqNqsfc2z8u18Kpgop4SBWzh7lA27v 2w4ATvJtOqff/2C0jCHqKsrV5VQep85UfH1Q3Id2TAq9ok4wvFMi8iS7EyqsJtgTZ6n1 3Ho5bpgAjNcnPb0EAvYGmK5XR43wqyvlHObuFlSNAbxNSeDY71tZQ+3R0ejHLwk0NnOY tho+EHX4qZMT3ehflftlil09yulXjmRYuxaPzAl2bIvyNQnoNCV58KMmgvbf2mFrGZk+ BkQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=AmrQ49pRTjfr3dt5JYxdqO+M7SfDrMGs+tHkSqLMWXc=; fh=a47dEVj7RQvTNqh2JhLfh2hXKBfdHpzL6qaQFMukkuQ=; b=u67x9gQsGzt0671xdTPhbn2XREXooPgPy9ap3/8fCRy6moZjQHdOaBmK/Eg9SFm0iV 0zcfS6v+xBtwKfrcS7YMhtThuExNg/Pbz60DzNW6T1wZ25XGq5QM9K8vz6PmOdFT5tXB P1WZKbS68DD/G0X1GcfLOf393FB4GkfqHP44PglXcQI44Ce9Y0W6FPikqC/nzSEj3o71 g21B7XQTKW7l0ssKyffAU53A/GCj/LdMXxbyYjzKUlxPaOB78QR5yzYuUDHVFIuRGVMD d4f0hAVKzB7iZMqrxw0No4ZwZ+GKXVLtMVx1ZfGjVdaEC3LR9zZRw7E81bIOe0NB5aUE 9yiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p8-20020a17090a2d8800b0026ceee6848asi4163421pjd.180.2023.09.21.10.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8F66080218A2; Thu, 21 Sep 2023 10:12:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjIURMg (ORCPT + 99 others); Thu, 21 Sep 2023 13:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbjIURKz (ORCPT ); Thu, 21 Sep 2023 13:10:55 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CC842681; Thu, 21 Sep 2023 10:06:12 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8BxnuveQAxl+IoqAA--.14247S3; Thu, 21 Sep 2023 21:10:54 +0800 (CST) Received: from [0.0.0.0] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dxnd7MQAxlS0cNAA--.28996S3; Thu, 21 Sep 2023 21:10:45 +0800 (CST) Message-ID: Date: Thu, 21 Sep 2023 21:10:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 5.4 000/367] 5.4.257-rc1 review To: Naresh Kamboju , Greg Kroah-Hartman Cc: stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org, Chun-Kuang Hu , dri-devel@lists.freedesktop.org References: <20230920112858.471730572@linuxfoundation.org> Content-Language: en-US From: Sui Jingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dxnd7MQAxlS0cNAA--.28996S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7CF17WryktFWxtFWfXFy8tFc_yoW8uFW5pF W5t34Yyr4jyr47tan7Zr1Sva4Yyan3J3y7Wr1DWry3uF1UWF4xKw1v9rZIvF9rWFWkKa1U tr4qga4jva109rbCm3ZEXasCq-sJn29KB7ZKAUJUUUUA529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUP2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAaw2AFwI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxkF7I0En4kS14v26r1q6r43MxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r1q6r43MI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVW8ZVWrXwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU0L0ePUUUU U== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:12:50 -0700 (PDT) X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Hi, On 2023/9/21 20:08, Naresh Kamboju wrote: > On Wed, 20 Sept 2023 at 14:25, Greg Kroah-Hartman > wrote: >> This is the start of the stable review cycle for the 5.4.257 release. >> There are 367 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being applied, please >> let me know. >> >> Responses should be made by Fri, 22 Sep 2023 11:28:09 +0000. >> Anything received after that time might be too late. >> >> The whole patch series can be found in one patch at: >> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.257-rc1.gz >> or in the git tree and branch at: >> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y >> and the diffstat can be found below. >> >> thanks, >> >> greg k-h > Following build warnings noticed while building arm64 with allmodconfig > on stable-rc 5.4 with gcc-8 and gcc-12 toolchains. > > Reported-by: Linux Kernel Functional Testing > > drivers/gpu/drm/mediatek/mtk_drm_gem.c: In function 'mtk_drm_gem_prime_vmap': > drivers/gpu/drm/mediatek/mtk_drm_gem.c:273:10: warning: returning > 'int' from a function with return type 'void *' makes pointer from > integer without a cast [-Wint-conversion] > return -ENOMEM; > ^ Well, this is easy to solve. For the Linux-5.4 kernel, we should use "return -ERR_PTR(-ENOMEM)" instead of "return -ENOMEM". Since, newer version kernel prefer to return error code instead of error pointer. See below commit for more information. commit <7e542ff8b463>  ("drm/mediatek: Use struct dma_buf_map in GEM vmap ops") commit <49a3f51dfeee> ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends") > Links: > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2VfG47LmPH9MUEuIcMVftu6NsFy/ > > > Following commit is causing this build warning. > > drm/mediatek: Fix potential memory leak if vmap() fail > [ Upstream commit 379091e0f6d179d1a084c65de90fa44583b14a70 ] > > -- > Linaro LKFT > https://lkft.linaro.org