Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp338152rdb; Tue, 19 Dec 2023 20:18:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHuLrtd/ikENmKb+Kvddxvo1P7279BvdpKCfg03/JI/Al6PX9nQD/NKtXcF+DArq+nx8kj X-Received: by 2002:a05:6a20:6311:b0:18f:354f:58c2 with SMTP id h17-20020a056a20631100b0018f354f58c2mr1711317pzf.44.1703045910690; Tue, 19 Dec 2023 20:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703045910; cv=none; d=google.com; s=arc-20160816; b=vBHGu85f93q0gA1soXRAt8la+X2iRM/fu7QVfbyVM8laWs6Ph2MpviOTRHr9RbQfya V4l8ax1tW5HbmAJcjH9u7IeNInT4cPoI2j+TFYbw8MV/IV85h3SLNx5qQX/HrG/GQBDx nPqFSIoiOybnfPzYnB/F+QidR+NEhVDXiGvULaKcnPSHhANaUFLvzgOGUUyIK00ouMK8 NIY9quwv+bmGOlIJy0LgnI62Y+tVY3iQ/KW+4E+DruPQRcCQHKa0dymYcBDvHXaH5QAx VAoWkAbwNaNRSi3Le/BT/qJlkT0yTXvuL8VWnmYR65SctVIeyipxp/RYWVA3sEeHulMp OPkg== ARC-Message-Signature: i=1; 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:feedback-id:dkim-signature:dkim-signature; bh=pMmsyjj7nl7WSS15wYh422IW+VbkrnpbXUDIHZjOSwQ=; fh=29+NP+Avo3KW5WAFiPrv+jdOjQZBDMQJMXZlHI+I9m4=; b=NpuEzPNN60sY/6k9Vv2xG5+0zETDWVWvXITRVvG5po1RretuqrrW1aiWME8LFAcXVt Z4/PVRxICAA8+3AWw+4DrW+6BAk2igGDNo4nbs4q6bmXWkZfwBAUaReaeKVm9BaooWeX 36rZtmPu19vzlPZTIEmhGxn+0/Sa+OrXjwZMNxAp5UiGeRDg1i5j6S4CQ959oO7Pe6nD vr65SgfN1Kcgk2Zpju8d4WgPzQRFFWY4DYlUCB+6Fb8ittqGkOT7CBqYJxri0oS7Ajxj HueZc25MrpVfk1Z/UEkisUGn+pR/Z+wF8dMNF3ZFvUzH7tyNuCt9AgkKv3lpvZTpHREq yHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=GYjGfUJI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ZGQp/efh"; spf=pass (google.com: domain of linux-kernel+bounces-6353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc12-20020a056a002e0c00b006d287b61384si8189079pfb.175.2023.12.19.20.18.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 20:18:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6353-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=@sakamocchi.jp header.s=fm2 header.b=GYjGfUJI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ZGQp/efh"; spf=pass (google.com: domain of linux-kernel+bounces-6353-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp 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 9731D28247D for ; Wed, 20 Dec 2023 04:18:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EECDBC2C3; Wed, 20 Dec 2023 04:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="GYjGfUJI"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZGQp/efh" X-Original-To: linux-kernel@vger.kernel.org Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (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 571581D696 for ; Wed, 20 Dec 2023 04:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 589803200A34; Tue, 19 Dec 2023 23:18:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 19 Dec 2023 23:18:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1703045894; x= 1703132294; bh=pMmsyjj7nl7WSS15wYh422IW+VbkrnpbXUDIHZjOSwQ=; b=G YjGfUJIhOJwkHSqDxieXHzEPhT+uOTQscQGYgEka7MhjZppnj5HTzRFUOEtxHHVe be6F3CP0puIHkQJL7AxFJ7k3tIiIrCuNpz2nXkcgYFdWnDGNTlc99zDL8WDW0R3Y zLzfzudvUwIhKXolc2SdhFTo9pOlviU3C9wY1pjM017YBCdfosCqv1/y2OTQ73ex GQuCz7+cmyKT8/3v0KaH5BPifs15G+nvCbR+IGMTLzMd2XKSDa4krTqD4CzuX+Oy fQtmQUfnlSZsrfsBgxGtrPNDOu59gaax6rqlT4ROjYCVE7+O1IHgoL5LbZg2NKOt IazKAUfpulyKJC11yNBMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1703045894; x= 1703132294; bh=pMmsyjj7nl7WSS15wYh422IW+VbkrnpbXUDIHZjOSwQ=; b=Z GQp/efhkgdyUbPGQOWeMq/CEghPDvKbrA5QSoFY4y8psrSDskmRRkrmO1Sx7o5Vs rtVwgYP6XB45uqk9P8lF00uBonBewbb3weHmmYwHcx3DNj3d80FU8WiOMPHuqnMM 18PMtwCZ4L+cXqdwZGiostS3JNTWyWB08u+Tds6kuIMpjeyCwO2Gw0epAdaLDHjh hZyAKG2gTHSkF5wi1G7cfqILuaR2qztr532y4oIfiUh8FKNHUpz3RY7Xu2hQjiOt YCRMcwIxaG7AyGXgbtYHm6zXjNS8ULErNWrf4OcR+K98AP3FY+veRc/JE8b5K3L3 +0rAQgpjitcwQakQIzGoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdduuddgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Dec 2023 23:18:13 -0500 (EST) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: adamg@pobox.com Subject: [PATCH 1/8] firewire: core: adds constant qualifier for local helper functions Date: Wed, 20 Dec 2023 13:17:59 +0900 Message-Id: <20231220041806.39816-2-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231220041806.39816-1-o-takashi@sakamocchi.jp> References: <20231220041806.39816-1-o-takashi@sakamocchi.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some local functions just handles given argument as mutable, thus it is preferable to add constant qualifier to them. Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index eeda7cc59e27..96b0b43da863 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -171,7 +171,7 @@ static const struct ieee1394_device_id *unit_match(struct device *dev, return NULL; } -static bool is_fw_unit(struct device *dev); +static bool is_fw_unit(const struct device *dev); static int fw_unit_match(struct device *dev, struct device_driver *drv) { @@ -679,7 +679,7 @@ static struct device_type fw_unit_type = { .release = fw_unit_release, }; -static bool is_fw_unit(struct device *dev) +static bool is_fw_unit(const struct device *dev) { return dev->type == &fw_unit_type; } @@ -838,7 +838,7 @@ static struct device_type fw_device_type = { .release = fw_device_release, }; -static bool is_fw_device(struct device *dev) +static bool is_fw_device(const struct device *dev) { return dev->type == &fw_device_type; } -- 2.39.2