Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp109154lqm; Tue, 30 Apr 2024 14:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2YmGPcjPL2lKJZ/nQcy0lPOxdknIaP4NVQXmEK46vVhaZN/9rUf6G9SvD3O2kIotdvVAKTkhTmqxOWpe6fA4vRkoaI39n7maX7Pc7TQ== X-Google-Smtp-Source: AGHT+IFWwnrARRaklJ5y24L723Zh8f/nMQBHpneioDo5rw9NrcH8S8kfoQCZEVT/IaDXar9u2JSt X-Received: by 2002:a05:6a00:98a:b0:6ea:914e:a108 with SMTP id u10-20020a056a00098a00b006ea914ea108mr1009843pfg.12.1714513151768; Tue, 30 Apr 2024 14:39:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714513151; cv=pass; d=google.com; s=arc-20160816; b=e/69uq8P/QddMq1TA+hZRRxNbBfT9tqxpYqdRx0+c0FLklymYEslgq7+abDe5S6jMf jQaN83IBNQcfpQlYmEuwQXPmJNqMJ+mn07X18khAyRS7gqKpfTixlwbZmn0710ns85yL ux9RyCTwdjvyWYXsyHkKezeSHtHaHAASyaVUWeXuutUv7KU4txCwDN2mrlDPxAdp7wRr 9Dayc8qf93WM2xgIduEPE9EAVZbm+fIrQCvQhZeJcAuHlobZHo0SH3fXrQ0k79ylQKrA gN8jt9rCARQ3w6QLMtCPid7w0YpZF+jJpU5Egz1VyDobCvVrmupRUv/d1PkrQIRbOHrE Bw5w== 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 :date:subject:cc:to:from:dkim-signature; bh=wIzkjf3hbre4YdMWj9ThQDwqM8vHB0DB3QLjB/+hMR4=; fh=kyk3e/JO88M24ssh1VoZw5GH0RIlXIGa3aVD8XxX8mg=; b=l4Brbh8AqtSu3zmCJi7K8EFwogqfMT5A2kQvIHFY51DTzFVR+FWWK8Y4gYMKzqzEBH mn4H9/IRlqNqJa/apmSGCbWPOTA9+SksijUov+ITIgbocRYXXFi+Szk9dQgFsvzMraR6 KwtKcr9FbJ/6PWrBkO08r5jRvuB4x3ubyALGvD269NglSeTSwVwZ6zotbOE2JA+rN5KW nb/xhyWis6uOmAouegJDR0oQ+SQkfSTP707QJbVldDBvaTJR9aptFcKY/6AT4Lma6EI5 DgZiDVICPfNfKvXCBnEaHptuGVFqrTa+s2qt7aT4AtvFA43WED7qy+gH7VDQi4xrzE9U OFLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="jhwOjB2/"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-164746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164746-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x128-20020a636386000000b0060a092f81c5si10501200pgb.669.2024.04.30.14.39.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 14:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="jhwOjB2/"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-164746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164746-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 58B08B21B90 for ; Tue, 30 Apr 2024 21:36:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA1691BED89; Tue, 30 Apr 2024 21:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="jhwOjB2/" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 A811F50287; Tue, 30 Apr 2024 21:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714513003; cv=none; b=XDGbQo5lzLUVxmWrNJzNX1xAla36+G0s7TD71hOGjGZUG60XKLepqKoxjHSu5IP6aRRtF56mz5tUCqJRwQNQfxZ5GcyA5fmzQs+AxVOMPdp9eDWRm9bq3WJZdxpZarY8NRiZD1BOtoolYk1giy+MILw1A17+qjLCRI0rSROU/R8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714513003; c=relaxed/simple; bh=0Qj+D69jEcpqaHMFgZ7FoyOuv7/ML8F9fuodPYJB9X4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Sq/JYKj89RsiX7Na5kQpwXlxRswsUMFTZMoS9qj/mH4nwUDjGQOlKy9LQ1LWsFsC2eIlcBj3J/QHhordfRW2RWMdPnlxKv2p3jsX5aKku2ssaVmHpunuUNM4DaHZLallkDOjpVVxMKsPvs0D3YwIfcmziHUOIFrzPGGVuL35/gM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=jhwOjB2/; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (unknown [109.130.69.237]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7CA0966F; Tue, 30 Apr 2024 23:35:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1714512943; bh=0Qj+D69jEcpqaHMFgZ7FoyOuv7/ML8F9fuodPYJB9X4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhwOjB2/QdCt3pb/4iqM21+Dd2f4UA25f9N0jpS19nz/XOZqWjsW78VJxUafll4+2 fHaBCkbVwYzmnSNDhTXm6V7x+My4iMitDGRTMG3DG/fi87msmsO0+QiNEsnwkN02XL KkkHVaso2cwBUUW2SjUaY34/CZZyK2w/O3zLUZ6I= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Naushir Patuck , Dave Stevenson , Sakari Ailus , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] media: bcm2835-unicam: Drop usage of of_match_ptr() Date: Wed, 1 May 2024 00:36:32 +0300 Message-ID: <20240430213633.23767-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240430213146.23187-1-laurent.pinchart@ideasonboard.com> References: <20240430213146.23187-1-laurent.pinchart@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Using of_match_ptr() to set the .of_match_table field of the device driver results in the unicam_of_match table being unused on non-OF platforms, causing a compilation warning. Fix it by dropping usage of of_match_ptr(), which can be done because the .of_match_table field is part of the device_driver structure regardless of whether or not CONFIG_OF is selected. Signed-off-by: Laurent Pinchart Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404302324.8aTC84kE-lkp@intel.com/ --- drivers/media/platform/broadcom/bcm2835-unicam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/broadcom/bcm2835-unicam.c b/drivers/media/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 = { .driver = { .name = UNICAM_MODULE_NAME, .pm = pm_ptr(&unicam_pm_ops), - .of_match_table = of_match_ptr(unicam_of_match), + .of_match_table = unicam_of_match, }, }; -- Regards, Laurent Pinchart