Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp162705rdb; Thu, 21 Dec 2023 05:59:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjKekpLkpwWoN4OMTqFEN3f0UTlEwXNRMBoYruNBmbkTVqWf5KVHRoZ4s/qMVo6/deX0S1 X-Received: by 2002:a05:6402:2156:b0:548:e0d0:de86 with SMTP id bq22-20020a056402215600b00548e0d0de86mr10331400edb.39.1703167161457; Thu, 21 Dec 2023 05:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703167161; cv=none; d=google.com; s=arc-20160816; b=0CpU1Ss/lspVc1X+3+h4NSuQCuEMUpOrwR/4ClFmPcZbzwR6W86iiK/ki1Zm5aMMU7 bVTC2+qMwcnicdrm8MWOmK+4w7Yv2VWwPCpz57RF3guc52bBS6NHJ0AUPfq/USzkhnm6 Zzx6+GXZTu9lIChbMLRhLd7OpBIGHmUSUlFsx93OD/oLuZ/f4wOdSWuLpSZCa9GbURaB Apui+e3m6yK5WTU2zFhe/ta+lX42BmFkfBBkmiJ0bEcrVSigFaAXzd7Mf8qwY6ej3wmc DiFreVAI9uA5jHpQNNcYPMu5yRjTYTfe1mM3dPunnns/C9FGiPvOFuQyxmWV1hyL/Unz at7w== 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=sdpuvkY7OhIvGSQTOLMO28wL/iRmEC9zrScyYVp3jT084aZQSxKvI8jZrhGQ0QdNFJ 6/Ai4VpMjV5dF+uWCCxXO+Vg+ZNdIOveEdLbZgBeJPjNqlti8uWO4yk2TGuBqz0e3LPU u9XHguJLjxme8q4Fkmd5Io6ESK57njcro2ffIBHkYxYG5Ba0OgN4Ie7O/h7Bfjgi+q2w M/dC0R9oiTYikZzP9Vvs5rjlLz+EIy5bnRi+s5U/FnbgaGK6+h9rw2Iuj2UjHergo8LV BCT17TZ7C/zwtfLEo/1amg3pU8+O4densMkoWjxESVyfH7MIABlid+39jpX61KNw/Y00 73rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=XczRfcSE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="IqRp/tCq"; spf=pass (google.com: domain of linux-kernel+bounces-8526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s26-20020a508d1a000000b005522b0f9815si876620eds.601.2023.12.21.05.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=XczRfcSE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="IqRp/tCq"; spf=pass (google.com: domain of linux-kernel+bounces-8526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8526-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 108FA1F23EAE for ; Thu, 21 Dec 2023 13:59:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B890A6D6DD; Thu, 21 Dec 2023 13:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="XczRfcSE"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="IqRp/tCq" X-Original-To: linux-kernel@vger.kernel.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 367E365197 for ; Thu, 21 Dec 2023 13:48:54 +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 compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3484E5C0114; Thu, 21 Dec 2023 08:48:54 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 21 Dec 2023 08:48:54 -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=1703166534; x= 1703252934; bh=pMmsyjj7nl7WSS15wYh422IW+VbkrnpbXUDIHZjOSwQ=; b=X czRfcSEBVlloJN/YhhcuwM+UlSYI5kpcd/1kDb/B9uf3DwnnTlzSSFAWJTEFTanw J5GY7lkfQQ0lNsdPFt3McVMRqPP7yVAs8w6QXl7x3QxTkS6WttSMSG07mK4eOUnT VfJw35KyE242ByG3KG2lrscv2TBwVdCrjImV8mU5zG4cV+iYlafWSOjddlNV1PIM amkg18/kitraeT6Tvcj9QWnrbomgKbfCmvY2h38w6Z1RmpaQmfNiHBjP62RlL4Oa of0EFVa1H3KYjGnRwU0a1ztg3XEVmxpFH9hPHO9jzADMqMIoeEe/N3vLy9x2zRgo Su0DXnNRLo7TruwLdaiAw== 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=1703166534; x= 1703252934; bh=pMmsyjj7nl7WSS15wYh422IW+VbkrnpbXUDIHZjOSwQ=; b=I qRp/tCqosguPNNDC3p+wLS8QYcc/DWxOEKRO93JCCM5CmpwdBy5vmMUc8iFqYe5i EgjaWj0e8698yCDelUAwjbm7v6NoNQ7+jSr6MdTtRd5yCNGx8QzjpyziPQDd7UOd HC0kQmLKZOr8hZkmHeeH2cKjYxhk3CZ2s7l7L5rHFU91Tu1IiCAgWFnOH7gHZMzp /5rrcu60diGNaa7BhRHwEqlc+S4856CNHD09+LbLYodF3HbPDcZ8NApj8JLB8OuN ebSLy/x3TwXLcFhkaYYnbScmaL0RrMDP8MVWPPuRBkt37E+e5bkZcu75UyYpTWSF cjpr8VC/eZFw9EZ5Jk5WQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdduhedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedvjefgje euvdfguddukeelveetgfdtvefhtdfffeeigfevueetffeivdffkedvtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Dec 2023 08:48:52 -0500 (EST) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: adamg@pobox.com Subject: [PATCH v2 1/8] firewire: core: adds constant qualifier for local helper functions Date: Thu, 21 Dec 2023 22:48:42 +0900 Message-Id: <20231221134849.603857-2-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231221134849.603857-1-o-takashi@sakamocchi.jp> References: <20231221134849.603857-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