Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1029944lqm; Thu, 2 May 2024 03:12:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxmLa9iguLFx5bFNpPglXyuqyrcsE1ub51L1ZS0k1pl5u5lHsLxWWa+ta8epbEuSB+O0vlohmyDJEX4xkQrDvb22DI5ccnMDMrJaiTiA== X-Google-Smtp-Source: AGHT+IHDeYaohk4xlwIuG2WYCY4p0t/GAenge/d0BwTLtdWeqHqPMsoMvYC0xUAe+t5N8FzrLvgi X-Received: by 2002:a17:906:40c9:b0:a52:42ce:7d9f with SMTP id a9-20020a17090640c900b00a5242ce7d9fmr3200000ejk.21.1714644737398; Thu, 02 May 2024 03:12:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714644737; cv=pass; d=google.com; s=arc-20160816; b=GLAuYExT/F5KgyRkfcQu4cpROCWuoEw8cIIzUq7kcr2ts1/6G4+SbB/2OtkfBBKzJD cTnYAC8poIOAfq3OzbOYhPB2jtad/OYae9Hotg2BxiYyKETfPLKV4Mah7dbgiMJ1ZYyJ hzL3eL4T7P/mf44y+sta2P3wsqFUAWxD6n8rMu1QB4rBxzMyyKkDaX32wcY6EgNvJED+ qUcFCKNlohNYYCMeSLnYTfThub61ZLs+GjlG9pPpq/6kevSEnVhy9zdyDcXcAdpiRwfu 4MjSlZFOP23c4Bi6gsrfGRmsOKauvFYh+0gbcct+jLMS8L1fhKiViUPwHhmPPW/o3aS1 fYdQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=lHI/8u5l9dpSxmqrNG4YwBM9Ls6YbkaF9lDSOsnAKC8=; fh=AVspaKDiaZgvDbcx4w+q0gHjmbGdLzI1NUQtlWDxbYc=; b=GA3H7yGBSwjhcf8tNBerqVBDrHfHgDFYMERcaGx1isRV1BO4Nhsebn8ot9Y04mwoB+ h97g2xFrI5RhkY5G4eDoO846DqQ++SdFSHVID9lKWZuwFG5nbGZIdByc7/REDiERj2rK v5Tp1H5ESZL+jNtq7lTHpKUv+ByPn1zrX1eBnHDEW8Nf74Syyiqd+zQrS3viNOa9xIkq 4U2N4yleJrno2YpEGiRdwSjdvS8p+dKr0gJms+wXeU8sPU5TzXcfjwlaqn0KCcXnMBUZ cCBejC/4FVFCfbaz6GMczvxTmZcoqTQ4AqvBRkJi2ef3L5N4BL3nSVlWQa8kzsU3cmEt np7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o1r9EM3J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc36-20020a1709071c2400b00a59291955ebsi376845ejc.665.2024.05.02.03.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o1r9EM3J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9A1531F21FBE for ; Thu, 2 May 2024 10:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 305D858ABC; Thu, 2 May 2024 10:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o1r9EM3J" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5951C5731F; Thu, 2 May 2024 10:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714644699; cv=none; b=fZotwVxUM14nenC4npaDHbaZpcAfkflRhEMjQBK7IuTzTwkWHEtXckSWNcCRQVtnynpntb/tgnHdVVuvIA9aZjCDObRQe379tWAncBevXuiSnxykrGn5QgxT0B2ifdri3bjfJxxMpzV8SIyN6K2weqneCZ4C3rY6KqbYLT9FWKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714644699; c=relaxed/simple; bh=dAcIeF1zYIZcs4LzSltVRWcQ+tLrYYFfHlx+Gup6U8k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OCU+rOKc0kNK8RVP3uVspFiYk6JzWpZMdGkOwr9lllCzE5q4nK+9aESxFtSqguFUsmLsILwFs1vPR/J2+YZMqP0OdVTHvASlydD7dOeLcMdHztbDPHvH16irIoJZFnmguMdKT5NGTj20dYT52UYtVFmU5LF+7fNgI+nXGz2D0LU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o1r9EM3J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3900C113CC; Thu, 2 May 2024 10:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714644698; bh=dAcIeF1zYIZcs4LzSltVRWcQ+tLrYYFfHlx+Gup6U8k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=o1r9EM3JPsKjyByhcMt6caBtUltI5yojwaPHE60fGGGJlColapnsDivyytTt578jL Gbq+hu/T0O3txaCK1yZh0p9YgnsFLnEpdPq9ynYCUGSR6s0n/gn4ah5JWNkiN3CkFl dFMRrgNkL9IEdBNjLpAW6z17jxi8+Wjl0vk6MU2KySe3Y+s+OIc2MupivjTJ5pSQFG f452+RlewfVoxXQ2diP3N3c8JeI8n6j4fvWCM7kcM68MwKDANeHg3HJeWv9xkCFKmt M8cCyhtT9vn1COElNWP9oc85JRhHUK4/DI1NrQbH/tUQvUrXcbDO9iaA03xwLsLpVx 4+6cpzZF3kV8w== Date: Thu, 2 May 2024 11:11:30 +0100 From: Mauro Carvalho Chehab To: Ricardo Ribalda Cc: Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Sakari Ailus , Bingbu Cao , Tianshu Qiu , linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil Subject: Re: [PATCH v2 1/5] media: bcm2835-unicam: Fix build with !PM Message-ID: <20240502111130.769402fa@sal.lan> In-Reply-To: <20240501-fix-ipu6-v2-1-a5629a37a0fb@chromium.org> References: <20240501-fix-ipu6-v2-0-a5629a37a0fb@chromium.org> <20240501-fix-ipu6-v2-1-a5629a37a0fb@chromium.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable Em Wed, 01 May 2024 13:08:09 +0000 Ricardo Ribalda escreveu: > The driver can only match the device vide the DT table, so the table > should always be used, of_match_ptr does not make sense here. >=20 > Fixes: > drivers/media/platform/broadcom/bcm2835-unicam.c:2724:34: warning: =E2=80= =98unicam_of_match=E2=80=99 defined but not used [-Wunused-const-variable= =3D] Be careful here: Fixes: is a tag used by stable people to identify if a patch needs to be backported. Using a Fixes: may cause such scripts to break. (it caused a problem on my apply patch script, as it does reorder fixes tag). No need to resend it, as I can fix it when applying, but next time please use something like: It fixes this warning: drivers/media/platform/broadcom/bcm2835-unicam.c:2724:34: warning: =E2=80= =98unicam_of_match=E2=80=99 defined but not used [-Wunused-const-variable= =3D] (or some other similar word that won't be using a defined meta tag with a different meaning). Regards, Mauro >=20 > Signed-off-by: Ricardo Ribalda > --- > drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/m= edia/platform/broadcom/bcm2835-unicam.c > index bd2bbb53070e..c590e26fe2cf 100644 > --- a/drivers/media/platform/broadcom/bcm2835-unicam.c > +++ b/drivers/media/platform/broadcom/bcm2835-unicam.c > @@ -2733,7 +2733,7 @@ static struct platform_driver unicam_driver =3D { > .driver =3D { > .name =3D UNICAM_MODULE_NAME, > .pm =3D pm_ptr(&unicam_pm_ops), > - .of_match_table =3D of_match_ptr(unicam_of_match), > + .of_match_table =3D unicam_of_match, > }, > }; > =20 >=20