Received: by 2002:ac8:7144:0:b0:40f:fb00:664b with SMTP id h4csp1897958qtp; Mon, 18 Sep 2023 07:18:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKJ24uu4xhy8hB20lg14UiWYnTJqS/AgYheL7zis00hBURvWIhtok/c+iOw+mIB0TKH9ae X-Received: by 2002:a05:6a00:15c5:b0:68f:f38d:f758 with SMTP id o5-20020a056a0015c500b0068ff38df758mr12607027pfu.34.1695046690596; Mon, 18 Sep 2023 07:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695046690; cv=none; d=google.com; s=arc-20160816; b=EmAD5G53jawu1zZYX4ZT5HKyhY/s84skq2EiRr4NTtYv7ERAUucOxVNV3/RXfvG6nA mOfmq6xMM/gQxQRKUH+p60k404JhRvPop0AcQe26hfNT+MqzVxEt5KwOtvfe/wpipTgl D/+j0agYPPPCqHMsL52Q27lbfgZWQSf6hODD47eKOiEnuNUMeZ7/RfxXZFjrtm96BIhO LpSRhU4vq7BubC2d/mo0PfpFuXq3lAoaoFK4tMDNyi0VToC2F7Oo6lGQzuHAq2f4RLQW jhSzMSh7gxD1QOXqr9oUzWizQs8nk3H7iKivIKme8n70bFyR7zSYYaCrbEA+wBvGYs5v 0mnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nzyoJsGjcLuYzpKEN3rShd15fzmWokjVljsMaViy0zM=; fh=hVHpN4Dtc21a8dRoC9I6loW5Hwd2xg0BUq+dIbukc+I=; b=DDzaXZIXbjW5wTUVStgTtgUWSclw9X64ro57vv7ZVERkTx4hN/h7ksvVCAcuLF2NEP HAOq/caHMXdwlhyNua3ubJQ26JFn70QTQF37TWQyH9oU4oPFY4hkjhRP8Aicj1yLK+zj 4KDjB7n3d/iOuqZvEj0BoNeCb73fOwx0p3c1c0Wh/1F0lubjVXEZ2codFn7QSuJMKESv dr2Me61Mqu+KJso9UQXaZiXlJPSVGjIinB5JSKdkDop+SpcHmH5Co7J09+h079dLIpTq 7CRT3Qwgfz3q22wx9zBOkDvmHKKsBMcoDs2zKZbyP9qphRxqBDauvhylp6K9UbhRTf4Y UQiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VH1wxZgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b15-20020a63e70f000000b00578889362a2si1747581pgi.663.2023.09.18.07.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 07:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VH1wxZgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7F5638220126; Sun, 17 Sep 2023 23:51:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238411AbjIRGuW (ORCPT + 99 others); Mon, 18 Sep 2023 02:50:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbjIRGuH (ORCPT ); Mon, 18 Sep 2023 02:50:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1970EE6 for ; Sun, 17 Sep 2023 23:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695019795; x=1726555795; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=s13Nvbs3mBAq9NYXqy3wsR4au6DsVgO9kA2QvCPDpFQ=; b=VH1wxZgjhn0tReHqGYCT33u7r8ZfIRWmFvJPq4+m/dIe8UgfA52UzJ4t +p5bHyrZNxmnZv6txyLCjlWOrchjEKidv69myaRKJdLPyVyYKKB6NVfCD CPEBV+Hbz5B3ZAyB7fta2FNeki0GG8NQ2vhjBpxRaKIKQQOGOXdTJvVHQ 49tUBPHq6pRCF7/OUkaNoE0A03a6FPf+255EzqM6nMtwS8cYiiuhdhryP mF72WN9Ihq+f2Qwp+fOQJjlHtt7c51j1gAqGfpsRzc24d36ELlVGq+NU9 JJvyog8NcVtwazswY835JmSJz32grbTZ3MYTiv/ASH2/w/cnKD6+79V5L g==; X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="382322551" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="382322551" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2023 23:49:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="815900624" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="815900624" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2023 23:49:52 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qi84s-0000000DKWC-0L9V; Mon, 18 Sep 2023 09:49:50 +0300 Date: Mon, 18 Sep 2023 09:49:49 +0300 From: Andy Shevchenko To: Huacai Chen Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui Subject: Re: [PATCH v1 1/2] LoongArch: Add missing headers Message-ID: References: <20230914103445.511285-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 17 Sep 2023 23:51:38 -0700 (PDT) On Sat, Sep 16, 2023 at 08:05:52PM +0800, Huacai Chen wrote: > On Sat, Sep 16, 2023 at 6:27 PM Andy Shevchenko > wrote: > > On Fri, Sep 15, 2023 at 08:36:24AM +0800, Huacai Chen wrote: > > > On Fri, Sep 15, 2023 at 2:53 AM Andy Shevchenko > > > wrote: > > > > On Thu, Sep 14, 2023 at 11:25:22PM +0800, Huacai Chen wrote: > > > > > > > Thank you for your patch, can this patch solve the problem below? > > > > > https://lore.kernel.org/oe-kbuild-all/202309072237.9zxMv4MZ-lkp@intel.com/T/#u > > > > > > > > Nope, this just adds missing includes. > > > > No functional change, so warnings will still be there. > > > But I think a patch should solve a problem. > > > > No, that problem is static analyser concern, not the compiler nor linker. > > > > > If we don't get a build > > > error or warning without this patch, does that mean the 'missing' > > > headers are actually included indirectly? > > > > I might be missing something, but I do not see any build error in the above message. > Hmm, then I think I will take the second patch only. Thanks, but can you shed a light why? The rule of thumb is to include the headers we are direct users of, we have not to imply any other inclusions done by others, unless it's kinda same family of headers (like types.h always includes compiler_types.h). Since in your case the const.h is included the other two are missing and it's even worse, as I understand you rely on the specific headers to be included _before_ using this one in the users. -- With Best Regards, Andy Shevchenko