Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8895921rwd; Tue, 20 Jun 2023 23:43:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LDZtF9FHZasIm68LIDVnZgzbB1xvY8EHKTTwTL4moRbT2WpmO82lMhhuAwhj2J7wkyClE X-Received: by 2002:a05:6a21:7886:b0:10f:1f0:9b43 with SMTP id bf6-20020a056a21788600b0010f01f09b43mr19946866pzc.6.1687329795702; Tue, 20 Jun 2023 23:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687329795; cv=none; d=google.com; s=arc-20160816; b=HvyHvy8EyhqnKkIpjSRs5cZ3HGnj79r1yRqf5b0l3f72K+GNZyhfbV1FsWh1jGCXdj buVPAcWyT3nL4Uthyh9LgYqJgOeVjcc9AYqagaHIrm5ZRkQHJNlvSJb/oEmkcWmxJ7jg 8wPSL8oR+uRcJ0oaZhE+xDPKgFHE6m3N3wK4A9miB8z1pg4sEreI3KR3nbX2l0XL3alO UxIdn3GtlA4e4gO7hkQiV2qPb9AdqoUNQC+MAZ/bjWOgB1v6SpMOzmacLf2qlKxXXCkK EGz9gC7UlpPR4yUFMefR2/iqV7yNcgO+OCMKR56Ta4nAgjxt+UXV4zIchvJTfishObxi sMaw== 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id; bh=/Twzu28FuoT7dgiCFt0OFi/+N0uSbTVhldi0IwxJqQM=; b=tqPQAkMZ3k7DlAaZVjmkV6vQmj0yeQumUrg8kqUq8zok9Dl6cfpKoQeFp+UZic15QX qq+GhDpf+XhO2cBK3tBXjbzYuddgsnKyyV3wgttetEYlOP6a3eB2/FnUoveQlZK92W37 e9w8gUMujMHhZolgO09acLgckirpQk7RGanGWCAZto2lZUKvW3Zv+gbUo7F1ai+co3JG 77QcXvZcmU4gPqshpyV7ihN5ujdzaH9As/v+Ssz070gz+Gzi+CUX3SAYqj8acvr0BAWt JUncS11L9raeUmvpguycbLOZvfPcqJc9b+b+hRz/kMxHu7cStM+ATpRI27HoucNOl3dq omvw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a63b44a000000b005538432902asi3307477pgu.129.2023.06.20.23.43.03; Tue, 20 Jun 2023 23:43:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjFUG3R (ORCPT + 99 others); Wed, 21 Jun 2023 02:29:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjFUG3K (ORCPT ); Wed, 21 Jun 2023 02:29:10 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id DB1A8E60; Tue, 20 Jun 2023 23:29:08 -0700 (PDT) Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id DEA7D602A0301; Wed, 21 Jun 2023 14:28:45 +0800 (CST) Message-ID: Date: Wed, 21 Jun 2023 14:28:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: =?UTF-8?B?UmU6IFtQQVRDSF0gZHJtL2FtZC9hbWRncHU6IFVzZSDigJxfX3BhY2tl?= =?UTF-8?B?ZOKAnCBpbnN0ZWFkIG9mICJwcmFnbWEgcGFjaygpIg==?= Content-Language: en-US To: Dan Carpenter , oe-kbuild@lists.linux.dev, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Jane.Jian@amd.com, David.Francis@amd.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Likun.Gao@amd.com X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui In-Reply-To: <34ae0f86-c32b-4d5a-be56-0654dba0f908@kadam.mountain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 2023/6/21 14:11, Dan Carpenter wrote: > When there was a #pragma then Sparse just turned off. The Sparse > warnings are places where people forgot to put the __user in their casts > or didn't annotate endianness correctly. It's not a "bug" to forget > to annotate endianness or user pointers. That's how we used to do it > prior to 2003. But these days it feels strange and dangerous to see > these sorts of warnings. Got it. And it is really strange when I first saw these warnings. Thanks for your explanation! Su Hui > > Smatch also disabled some uninitialized variable checks. These are > mostly false positives where we have a loop: > > int r; > > while (something) { > r = frob(); > } > > return r; > > Smatch complains that we don't necessarily enter the loop. I think > I'm going to disable this type of "enter the loop" warning when you > don't have the cross function database available. That will silence > these for the kbuild bot. > > regards, > dan carpenter >