Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp608044lqc; Fri, 8 Mar 2024 07:00:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU/mfuUIO44FmGV8yfO6vOWTaYF74XjeXxb6JuzaOMF33cySt/U8W5ThXC+/dZV1pehkcqQOW+ri90AgLI9VQWJ6NG5E2vPMdbbWnNRzw== X-Google-Smtp-Source: AGHT+IGyVbTDK4PIP3ZmG3FMWMrET6WKnVGroSQAMaquYZ6FHdgm6RBnQPrnfcy1a2XY4Tjf4Sgv X-Received: by 2002:a17:902:ec81:b0:1db:916e:d77a with SMTP id x1-20020a170902ec8100b001db916ed77amr14260003plg.2.1709910034412; Fri, 08 Mar 2024 07:00:34 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z12-20020a170902834c00b001db71681d44si15623334pln.187.2024.03.08.07.00.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 07:00:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=PARWNaS0; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-97201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97201-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D12E283A59 for ; Fri, 8 Mar 2024 15:00:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A1D0D29E; Fri, 8 Mar 2024 15:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PARWNaS0" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A75E6322A; Fri, 8 Mar 2024 15:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910026; cv=none; b=EuzYJhnxFvm5H/eh2nKk39GlDh3j9Kz+JcfMXgZ2uuhnfM+UKXNHGVkbJJpZtt7g9w+kJm6dGgg2+0+5kJgzIQ0DkkjpKPITuosm8bXJVECgCp5u14f3Y6rQCGQA5leZVmOlru1AcYM4DUNchmLvensF0tU8UBqr3j316Y1w2q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709910026; c=relaxed/simple; bh=BnUs1fzkqy1oP/qNZLXd9NhbFn0nErneJsbGwNTukCI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ogfdq3X/JxeCRkbAV05m/fG4+fGtgvf3j5e8iTIMnVMEWSvn+ZoY6XDmizlFXQ1R7TAdpO/vYUotc3GmAD5wFFUg4VTrn++A1d2jRG995azogMCaYccWDBLpqkWXaSZ7n9JGnkOOl+gY5ccUuRfCb3L27JzBeMGSnJ/3+G6dNoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PARWNaS0; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709910024; x=1741446024; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BnUs1fzkqy1oP/qNZLXd9NhbFn0nErneJsbGwNTukCI=; b=PARWNaS0ialo6joXAIT8uMRm4cJ8CqIVIr9ssJYWp++noIOYOHAL7aUV JuJC/0snW0eo0wZSwABtZHYOk+c5MYcUUp028pZ3PMyCbQFaw0WQb4Tba HM9UwI+sWH4tEx+eQwc7/LdcfLeoSnnOS6u+/TkfY+80u01cX9snXmO7l fGFUfrHTRm/z+zfIzv3OWmoyNeQ//X4jG6WFiJ/YabKHV0xCTQMQC2ZLs APM+sgsnkLpnDbYfb+SUvwo412OHEbNONDw8JgXpTWrqamdOzh/b8yTxc K4YGI/wLxOJCX23Wf5PgqlXQZN7xr5GDAsZPGkHZ1e9hDqSxr2acRlQ5Z Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="4500205" X-IronPort-AV: E=Sophos;i="6.07,109,1708416000"; d="scan'208";a="4500205" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2024 07:00:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="914248405" X-IronPort-AV: E=Sophos;i="6.07,109,1708416000"; d="scan'208";a="914248405" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2024 07:00:22 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1ribhs-0000000Arsw-057J; Fri, 08 Mar 2024 17:00:20 +0200 Date: Fri, 8 Mar 2024 17:00:19 +0200 From: Andy Shevchenko To: Michal Simek Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Re: [PATCH v1 2/3] spi: xilinx: Add necessary inclusion and forward declaration Message-ID: References: <20240307154510.3795380-1-andriy.shevchenko@linux.intel.com> <20240307154510.3795380-3-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Mar 08, 2024 at 03:02:01PM +0100, Michal Simek wrote: > On 3/8/24 14:56, Andy Shevchenko wrote: > > On Fri, Mar 08, 2024 at 09:21:32AM +0100, Michal Simek wrote: > > > On 3/7/24 16:43, Andy Shevchenko wrote: > > > > xilinx_spi.h is mnissing inclusion and forward declaration, add them. .. > > > > diff --git a/include/linux/spi/xilinx_spi.h b/include/linux/spi/xilinx_spi.h > > > > #define __LINUX_SPI_XILINX_SPI_H > > > > +#include > > > > + > > > > +struct spi_board_info; > > > > + > > > > /** > > > > * struct xspi_platform_data - Platform data of the Xilinx SPI driver > > > > * @num_chipselect: Number of chip select by the IP. > > > > > > Likely correct but forget how to check it with tools. > > > > I'm not sure which tools we have to check this. > > > > The types.h is needed for uXX > > The forward declaration for the pointer to the mentioned type. > > > > All this has been derived from reading the file. > > No issue with it. But I am quite sure there was a tool which was able to > find it out and report it. But forgot which one was it. You mean iwyu? If so, it needs a lot of tuning before being able to be used in Linux kernel. -- With Best Regards, Andy Shevchenko