From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEEFDC432BE for ; Thu, 29 Jul 2021 10:41:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 993C260C51 for ; Thu, 29 Jul 2021 10:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236676AbhG2KlT (ORCPT ); Thu, 29 Jul 2021 06:41:19 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:47800 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236285AbhG2Kkp (ORCPT ); Thu, 29 Jul 2021 06:40:45 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id 72D4B3F110 for ; Thu, 29 Jul 2021 10:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627555241; bh=Cti8DGqbNI8YPSuGsMvGoiLdXe5FLuXImkkJsU3HkS0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f5A+RajiHfLk8wB2DyLPhBFhc9RkwBvXKx/WWTqFq5DD0TpG5TO/5JATW0U6TrlAs VuJAHlSB/36DAUBtsLmGmCSvilO5mvu/KYBwZRwj5Bw9fCeI5Zlm41niNssE0insmk 9u7akXzfUgCvB7qNSz/sN6BVXpkddyNK13irLfKaA57Moch5+Z9ZflH5b75RM9z3K1 1dFn+t6+ZHVhJ/wVTACcziT/pNXgV2VoJZhOR4KyodfZf/Kiy/snG0SHfpZccc7fsA /i6opkVnifNa8GH/0YjGBlZbndhSczJ0BzxLhvOG4CWGIkFz5aROslMJkFQ3uRGUJR mWH43JvF656xA== Received: by mail-ed1-f69.google.com with SMTP id n24-20020aa7c7980000b02903bb4e1d45aaso2724995eds.15 for ; Thu, 29 Jul 2021 03:40:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cti8DGqbNI8YPSuGsMvGoiLdXe5FLuXImkkJsU3HkS0=; b=lWd8HtthgE4YZxxfFSlSYuk/7Lc8NQ1tWNsKu5P+H692O31GS6dD3Ag7KdxcR4MGay 9BLeOe+XeVP9CFwbTNoP52as1XcqfTSNf/Z0JFCoy6QJLMcRamMnC6S3rVf4Uxotgd0q e/eFjKpO/K8GyYFmZjQEPiNjHgnW1V+tfUNh8p7Fw1cAOE1uTtolW5/Xtmni+d4BL4xM 3xTUPT+J8TdJmmwzo514hwTp7ANHgpEtKknyP8IHEKR9tiLtoLZNYrU2yhjvrSU1DydP Z4S6LLI4tYt2XXA4BdgvsaKewsJacewVoNPPJ1QrPfsdwblrTC3MClGMISt15IWQO9OS ax5g== X-Gm-Message-State: AOAM532IHwgkaBD7kT3KQfEYLr1iaPqTmkgwoqGTRFcocBswOr3bCdGO es8okWPmu3bG5VB3pViL9sq7u/TnG8zEe/dTbR/rDOJtkCfCBQtHxCwQHMC5hg31tgUfXmM4GGe I3I+t1ACAiM/Qe7eJKL3cjnwvL3QJ+u54GqpLTpe+Q4vv X-Received: by 2002:aa7:d342:: with SMTP id m2mr5302488edr.40.1627555241274; Thu, 29 Jul 2021 03:40:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjxgKl6WmnwX+WqFoKb6oCeo3LEsCBOoKuWEW0W2jjhEWMO4WBVPwCw/S6BOn4eM0m2lGmgg== X-Received: by 2002:aa7:d342:: with SMTP id m2mr5302475edr.40.1627555241166; Thu, 29 Jul 2021 03:40:41 -0700 (PDT) Received: from localhost.localdomain ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id c14sm824475ejb.78.2021.07.29.03.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 03:40:40 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Mark Greer , Bongsu Jeon , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 06/12] nfc: nfcsim: constify drvdata (struct nfcsim) Date: Thu, 29 Jul 2021 12:40:16 +0200 Message-Id: <20210729104022.47761-7-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> References: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org nfcsim_abort_cmd() does not modify struct nfcsim, so local variable can be a pointer to const. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/nfcsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index 143dc49b815b..15754671eb4d 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c @@ -240,7 +240,7 @@ static int nfcsim_send(struct nfc_digital_dev *ddev, struct sk_buff *skb, static void nfcsim_abort_cmd(struct nfc_digital_dev *ddev) { - struct nfcsim *dev = nfc_digital_get_drvdata(ddev); + const struct nfcsim *dev = nfc_digital_get_drvdata(ddev); nfcsim_link_recv_cancel(dev->link_in); } -- 2.27.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8927C4320A for ; Thu, 29 Jul 2021 10:40:49 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A406F60C41 for ; Thu, 29 Jul 2021 10:40:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A406F60C41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 98BD4100EB831; Thu, 29 Jul 2021 03:40:46 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.125.188.120; helo=smtp-relay-canonical-0.canonical.com; envelope-from=krzysztof.kozlowski@canonical.com; receiver= Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 74D23100EBB97 for ; Thu, 29 Jul 2021 03:40:44 -0700 (PDT) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPS id 5DA383F22A for ; Thu, 29 Jul 2021 10:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627555242; bh=Cti8DGqbNI8YPSuGsMvGoiLdXe5FLuXImkkJsU3HkS0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QfKl/5/vgZQOC1MHdycPjE1604IA3JTWMoIzYTcgwP5e05j/fMVDgxF9t2Hpz7mAk LIgdnX4v/wGazTZuSQVgx92W2VTpGqKlxXabf7utO5hPfWUgwgyrevR8W0+uDd/QkH MouboZLdzIa0ghrTM63aQKrlTm8JoSqCcPCBiWU4weSp8oBvZBW/qUWZ2DCEuTdU9M BBeXcGOG3rdMktyXdhtBpfb1XVxmj3+yKYRPeVMmtR746JrrmZmN1n0MaL/Gy9/1hc wJ0dzgtQnmNs4qrZP38737BvuSz2vfbl8Y5C98wjmAH/wRWktL+oQE/CWFRlJvWPvg HQmEtURtVLhnw== Received: by mail-ej1-f70.google.com with SMTP id kf3-20020a17090776c3b0290536d9b62eb6so1843757ejc.2 for ; Thu, 29 Jul 2021 03:40:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cti8DGqbNI8YPSuGsMvGoiLdXe5FLuXImkkJsU3HkS0=; b=MX0TNAiToeaGhok2ncPumf6su5plmjMxxu5JV/PLkHtSRGWyu42iGC8lfvo4V+aJE+ 9XH24fdP4JM7KWmd9j6sEdQEGjL3MbxP6yJ79RczgqXm+sC4mssroUtQ1R/iSjWivyt0 8Wk4cXHIaixtNl2npmT+Jr+vsZ+0LTDDRtQALsu7kH2l8M5NA+mC29uCaSfqHA78ECnt IWZm6r1kqptN8g1SxVOAlL1CCZYUcNApKicI3Z9gaVNQRD5a17t6NmjUVUjiJUq0TSQl DexOwh+Vy64cK7tDfdFhSvGqy+hHH1JnO7z161PXroHn1rLtlt0N4MGSGkzMjynuC83K EfrQ== X-Gm-Message-State: AOAM5334oNAsMb3J4hMowFt5jOyQkpASPwIX0/6mtkC6DTzO9QrHZDv8 tgrbGo94x6xbCduD4ip9xy7cpBn6/2EC3JHlc8tflfioOdhVgHmLyZn0t6jtBv2wcOWaFjR/BBj z3+R7yGlPl/mVpULdE5M7b0WxhKyjdMVc0A== X-Received: by 2002:aa7:d342:: with SMTP id m2mr5302485edr.40.1627555241263; Thu, 29 Jul 2021 03:40:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjxgKl6WmnwX+WqFoKb6oCeo3LEsCBOoKuWEW0W2jjhEWMO4WBVPwCw/S6BOn4eM0m2lGmgg== X-Received: by 2002:aa7:d342:: with SMTP id m2mr5302475edr.40.1627555241166; Thu, 29 Jul 2021 03:40:41 -0700 (PDT) Received: from localhost.localdomain ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id c14sm824475ejb.78.2021.07.29.03.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 03:40:40 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Mark Greer , Bongsu Jeon , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Date: Thu, 29 Jul 2021 12:40:16 +0200 Message-Id: <20210729104022.47761-7-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> References: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Message-ID-Hash: 5QKN2ZPY73BYIRUFG5LBQ57DSEPGUZKK X-Message-ID-Hash: 5QKN2ZPY73BYIRUFG5LBQ57DSEPGUZKK X-MailFrom: krzysztof.kozlowski@canonical.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.1.1 Precedence: list Subject: [linux-nfc] [PATCH 06/12] nfc: nfcsim: constify drvdata (struct nfcsim) List-Id: NFC on Linux Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit nfcsim_abort_cmd() does not modify struct nfcsim, so local variable can be a pointer to const. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/nfcsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index 143dc49b815b..15754671eb4d 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c @@ -240,7 +240,7 @@ static int nfcsim_send(struct nfc_digital_dev *ddev, struct sk_buff *skb, static void nfcsim_abort_cmd(struct nfc_digital_dev *ddev) { - struct nfcsim *dev = nfc_digital_get_drvdata(ddev); + const struct nfcsim *dev = nfc_digital_get_drvdata(ddev); nfcsim_link_recv_cancel(dev->link_in); } -- 2.27.0 _______________________________________________ Linux-nfc mailing list -- linux-nfc@lists.01.org To unsubscribe send an email to linux-nfc-leave@lists.01.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2712615186532849240==" MIME-Version: 1.0 From: Krzysztof Kozlowski To: linux-nfc@lists.01.org Subject: [PATCH 06/12] nfc: nfcsim: constify drvdata (struct nfcsim) Date: Thu, 29 Jul 2021 12:40:16 +0200 Message-ID: <20210729104022.47761-7-krzysztof.kozlowski@canonical.com> In-Reply-To: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> List-Id: --===============2712615186532849240== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable nfcsim_abort_cmd() does not modify struct nfcsim, so local variable can be a pointer to const. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/nfcsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index 143dc49b815b..15754671eb4d 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c @@ -240,7 +240,7 @@ static int nfcsim_send(struct nfc_digital_dev *ddev, st= ruct sk_buff *skb, = static void nfcsim_abort_cmd(struct nfc_digital_dev *ddev) { - struct nfcsim *dev =3D nfc_digital_get_drvdata(ddev); + const struct nfcsim *dev =3D nfc_digital_get_drvdata(ddev); = nfcsim_link_recv_cancel(dev->link_in); } -- = 2.27.0 --===============2712615186532849240==--