Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1091746lqb; Wed, 29 May 2024 23:02:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEsEht5t0AAi1/+SgUS3X2NwgWKKoov5UK+Qf3QYsOrjjxtjeTE76khwTZHM1roy1MqAo96/jXHKQda0Eclh1JTwCguYp9vWYl0IEY3w== X-Google-Smtp-Source: AGHT+IFaQ6XTSjtsozb7Cb78FvfEwLJt2zEVhCeEwa7jNZD3n/zgA4eDwbgsUP+OAZh2S0h8KYIe X-Received: by 2002:a05:6a20:a10d:b0:1af:ad46:cd4a with SMTP id adf61e73a8af0-1b26452d872mr1394998637.12.1717048978173; Wed, 29 May 2024 23:02:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717048978; cv=pass; d=google.com; s=arc-20160816; b=cfa3EJj0TPjpTtuHX0AvQWt7BLyYSVhpZM4ogMNL3DrY/4bD/feEm2w5LaEV2Ok9X0 20WmL+5hy6m1Vy2NCvG4kN3EGh/HoUW828D259ZO12Vxrqrj1Iu8sZiV0FoS1ApsxmqQ dvnd1uhYIQoxG5VIIxW08nnoAJ2rpAiB4B/lLnO/RYIfd6ttYJNH/iY6d7fI5ST9mMBr 3bOtRK7FH1WSrFw5h4QUVIVO1ETaE/rQTcSd1oy1D/CLMjMzHZodf1uBBEfMvPb18QqP iR2f2IVv6eol1/nIvh/QIxIeONJRvAIr7yZZIP37dejWC3bXONv/fpgNFf17DoSAKNbI auzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=oIBMH1m3ZhE+OQ4EQa7OLK0X4q+1xx+6DaOvj7nfR6c=; fh=KgMTdg+z1B+3mO6BZdIbc+u1cumfMTb4msVs32U/AZE=; b=rGwdgNa3gVRZyq3qqbeMHoEB2CNRonsE+t7GsfkyWHq1WlUPfqMSotNYsdTsk25fiq H4AhgkFTD+OjrD4/p4QlKN0vP+zoRuA67JiM2Fjapwjw6Eh4jl14s4H4VrAMgUUKQVAi bQT8XcXDC5rmSmakq1gmOhCCUYlo+80qYr/d+wTPRQ/wsEWqhlol8mwrD9XtFIlMW7u8 U2dj4NYALE3fWP3o/8tAnPD/UyfSkE1z6kyE5DA2ZdOhM3l3Lpxu8MQp0ghyywEYIMex 2Bmn9E8tUgaEOmz7w91ssrSX1sg2qArRD1YEkecrtwZf8Rb7+NIxCHmsCYCiWKrYVGDu nnjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YXUhH0kQ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-194976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-7022dc5b494si1195576b3a.70.2024.05.29.23.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 23:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YXUhH0kQ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-194976-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 C40CC285E1E for ; Thu, 30 May 2024 06:02:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1178143733; Thu, 30 May 2024 06:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YXUhH0kQ" Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 3D0687F for ; Thu, 30 May 2024 06:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048967; cv=none; b=cffEm7ostbS0HaG4QEFlVloLNNM6/4Da6SMKO1NsHZKpc+/iLcUiYI7XpvO36G1FhGZuK3hmNAD2J51GHdPiMnQirJlBRroMZQnFis28fjpmFqzYP5/4/KjwdA6+FFtWj4OW36BT5c/NRe3uILwTFQLN/Nr+/XA6EiY28tru2Rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048967; c=relaxed/simple; bh=/i1m66s0EfCscMPh83u0s2InZy1Wj4FCUw7VnWimfgA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=S6UcuKn4LcYMAEcgl+5kinNSj6uHMNgo+7RG22xqrtisd0wxvFVzsdJIrhDh1rKi5yrpvH+p8s+4IvaTa6/B55AnlBZdvMop4eCAQHjuQ7wkXIUIyBRQ8wn4x+NOhcuogyp/JLQZxGuucULREaM/qDHjv94QOsyJt2eIEYwbfFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YXUhH0kQ; arc=none smtp.client-ip=95.215.58.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: roy.pledge@nxp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717048962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oIBMH1m3ZhE+OQ4EQa7OLK0X4q+1xx+6DaOvj7nfR6c=; b=YXUhH0kQp6h+U2qVsMeMrBTVsfKQBFt0YL6U6891H9252W3fDBdnIVl1C1vvtChqmm2N3z os3xR/vo545lDdkDef6SNKJTjdpNsZmxVK1zB3Qgh9VgF32U+7xKV8n+MWbna7RPcFuuVR qlLH0Av5/7xjDii+zmUgeqVP51nau9s= X-Envelope-To: leoyang.li@nxp.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: lkp@intel.com X-Envelope-To: tangyouling@kylinos.cn X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Youling Tang To: Roy Pledge Cc: Li Yang , linux-kernel@vger.kernel.org, kernel test robot , Youling Tang Subject: [PATCH] soc: fsl: dpio: Add prefetch.h includes fixing potential build errors Date: Thu, 30 May 2024 14:02:09 +0800 Message-Id: <20240530060209.1074031-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Youling Tang If the architecture does not implement prefetch() specifically, the following build error occurs: drivers/soc/fsl/dpio/dpio-service.c: In function 'dpaa2_io_store_next': >> drivers/soc/fsl/dpio/dpio-service.c:745:17: error: implicit declaration of function 'prefetch'; did you mean 'prefetchw'? [-Werror=implicit-function-declaration] 745 | prefetch(&s->vaddr[s->idx]); | ^~~~~~~~ | prefetchw cc1: some warnings being treated as errors -- drivers/soc/fsl/dpio/qbman-portal.c: In function 'qbman_swp_dqrr_next_direct': >> drivers/soc/fsl/dpio/qbman-portal.c:1213:17: error: implicit declaration of function 'prefetch'; did you mean 'prefetchw'? [-Werror=implicit-function-declaration] 1213 | prefetch(qbman_get_cmd(s, | ^~~~~~~~ | prefetchw cc1: some warnings being treated as errors Include the correct header file to fix the problem. Fixes: f1e250bf3659 ("soc: fsl: dpio: Add prefetch instruction") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202405300328.eZmSYZrP-lkp@intel.com/ Signed-off-by: Youling Tang --- drivers/soc/fsl/dpio/dpio-service.c | 1 + drivers/soc/fsl/dpio/qbman-portal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c index b811446e0fa5..a4692b9ad8d7 100644 --- a/drivers/soc/fsl/dpio/dpio-service.c +++ b/drivers/soc/fsl/dpio/dpio-service.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/soc/fsl/dpio/qbman-portal.c b/drivers/soc/fsl/dpio/qbman-portal.c index 0a3fb6c115f4..1c0bf04b101c 100644 --- a/drivers/soc/fsl/dpio/qbman-portal.c +++ b/drivers/soc/fsl/dpio/qbman-portal.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include -- 2.34.1