{"id":2008484,"url":"http://patchwork.ozlabs.org/api/patches/2008484/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/patch/20241108143600.756224-5-herve.codina@bootlin.com/","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20241108143600.756224-5-herve.codina@bootlin.com>","list_archive_url":null,"date":"2024-11-08T14:35:57","name":"[v2,4/6] PCI: of_property: Constify parameter in of_pci_get_addr_flags()","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ff7abcb5ae8710e86aa4bb9898a87ee8d95e9771","submitter":{"id":81983,"url":"http://patchwork.ozlabs.org/api/people/81983/?format=json","name":"Herve Codina","email":"herve.codina@bootlin.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pci/patch/20241108143600.756224-5-herve.codina@bootlin.com/mbox/","series":[{"id":431925,"url":"http://patchwork.ozlabs.org/api/series/431925/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/list/?series=431925","date":"2024-11-08T14:35:53","name":"Add support for the PCI host bridge device-tree node creation.","version":2,"mbox":"http://patchwork.ozlabs.org/series/431925/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2008484/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2008484/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-pci+bounces-16331-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=gm1 header.b=oGfE/lo0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org;\n envelope-from=linux-pci+bounces-16331-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=\"oGfE/lo0\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.183.200","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bootlin.com"],"Received":["from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4XlM2k4CKpz1xyM\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  9 Nov 2024 01:36:46 +1100 (AEDT)","from smtp.subspace.kernel.org (wormhole.subspace.kernel.org\n [52.25.139.140])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby sy.mirrors.kernel.org (Postfix) with ESMTPS id 57C1AB22DEA\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  8 Nov 2024 14:36:46 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F1ED71F667F;\n\tFri,  8 Nov 2024 14:36:11 +0000 (UTC)","from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n [217.70.183.200])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A0391F4709;\n\tFri,  8 Nov 2024 14:36:08 +0000 (UTC)","by mail.gandi.net (Postfix) with ESMTPA id 8B1A820009;\n\tFri,  8 Nov 2024 14:36:06 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1731076571; cv=none;\n b=YlTgF0hUoziFC5d9UBQ19I1cHKN6ZUYLR14CUzuUP9x3Pf73QlBKakBeBs30+OnjYRXxECljkRB1WYJ7lPFLs8y0vDb8gsnwlvsA1oMU/2F3zvXtGai1h5/GGc5+XJqJY//g1A1TUSdoreBH72BbF/bp5fWZnnYNlBLjw3m0NOU=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1731076571; c=relaxed/simple;\n\tbh=fYwE5EjMh19lhQDnSaq4yYULUe6QFJR/LjTL/pR+GRg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=U3+zVKUBxhT++XPsHBCsS5hjMOnzbejrIY7ofqBMsKfywEFTc1m/x3cBLojlKWw88BrrZ3AdJC3a+PWlh9H8YdjGcR5kQXc4j6VjAIygwN35bLN8yDWDjwVEwysGIkx6Rb5gBRJdzt8I/r0808GSZqg2EvheroAmX577+nEEn9c=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n spf=pass smtp.mailfrom=bootlin.com;\n dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=oGfE/lo0; arc=none smtp.client-ip=217.70.183.200","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1;\n\tt=1731076567;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=GxzxY5tO2wGGtnAYK1ZdH8OX9CY4/fDjyHiH50aTJak=;\n\tb=oGfE/lo0wsEqQ1FNpOVEjJlANoPwJhdtUYaUscQOsX+VfPWa33C8o0n28vyCJnEWJXLXr3\n\taJgHWSPWMXgFRBhV3bCe9tLDIoXxIUtIVxXc8xjt4z6rw4LyqETvvTXZBRMKpyGEoWbsDD\n\tKwh7OB3omL5E0hdtk86yXWn2cKlZLvx4GmIEEJ7EEE1L8fGvUruNvxqyVzTE+g6pyNsg/j\n\tWY9b3LdAWeUksbEk5YWWT5fZl9wft/UR+cPAp5J89/ZKbsOFvIzS1w82Qo8gCvSJeeW7/n\n\tOJoi7P/SvdO5kEJfONJbCULTb48pIjWmSAJvYvc9jwQgw1k7U6H8C6UVZvePDA==","From":"Herve Codina <herve.codina@bootlin.com>","To":"Greg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tSaravana Kannan <saravanak@google.com>,\n\tBjorn Helgaas <bhelgaas@google.com>,\n\tLizhi Hou <lizhi.hou@amd.com>","Cc":"linux-kernel@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-pci@vger.kernel.org,\n\tAllan Nielsen <allan.nielsen@microchip.com>,\n\tHoratiu Vultur <horatiu.vultur@microchip.com>,\n\tSteen Hegelund <steen.hegelund@microchip.com>,\n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>,\n\tHerve Codina <herve.codina@bootlin.com>","Subject":"[PATCH v2 4/6] PCI: of_property: Constify parameter in\n of_pci_get_addr_flags()","Date":"Fri,  8 Nov 2024 15:35:57 +0100","Message-ID":"<20241108143600.756224-5-herve.codina@bootlin.com>","X-Mailer":"git-send-email 2.46.2","In-Reply-To":"<20241108143600.756224-1-herve.codina@bootlin.com>","References":"<20241108143600.756224-1-herve.codina@bootlin.com>","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-GND-Sasl":"herve.codina@bootlin.com"},"content":"The res parameter has no reason to be a pointer to an un-const struct\nresource. Indeed, struct resource is not supposed to be modified by the\nfunction.\n\nConstify the res parameter.\n\nSigned-off-by: Herve Codina <herve.codina@bootlin.com>\n---\n drivers/pci/of_property.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/drivers/pci/of_property.c b/drivers/pci/of_property.c\nindex 59cc5c851fc3..e56159cc48e8 100644\n--- a/drivers/pci/of_property.c\n+++ b/drivers/pci/of_property.c\n@@ -69,7 +69,7 @@ static void of_pci_set_address(struct pci_dev *pdev, u32 *prop, u64 addr,\n \t}\n }\n \n-static int of_pci_get_addr_flags(struct resource *res, u32 *flags)\n+static int of_pci_get_addr_flags(const struct resource *res, u32 *flags)\n {\n \tu32 ss;\n \n","prefixes":["v2","4/6"]}