From patchwork Fri Jul 30 06:56:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12410511 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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 C0829C432BE for ; Fri, 30 Jul 2021 06:57:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A7D5D61090 for ; Fri, 30 Jul 2021 06:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237748AbhG3G5C (ORCPT ); Fri, 30 Jul 2021 02:57:02 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:39394 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237463AbhG3G5C (ORCPT ); Fri, 30 Jul 2021 02:57:02 -0400 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (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 E14B03F09F for ; Fri, 30 Jul 2021 06:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627628216; bh=H0iqXvcx2Sb6gUihpF2rOO1152k8ULgDqjgBbDt6/wQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=WuoCXE7p1ViXZA1n9mL0SYV+xIkaEp7ILvOr00UfwLZjFfYmmjQPnQITUIQUsvJqJ ifNKNkE7OZUUXHnhalqaVoWE2zdmIJvctb7zebqqUrNkaQF93UUL5R9Ug9Rw8LN8ED 3kc9Qy3nuNfEkPK+uEY455wA71DdPBIuCuYndlVG4uHsvMubU4sntDvx+RCnEwXLj3 YS8jYM/m06Fvp5gpz3UT4qleQ8G+JgSvidzLRzeJZwioUEQALjwlNCvVogDpR2t+pR gnPFfNaPAtyW1oYaYDJ0LSErFtMZ4hYZEgPH1RGLugtDMjsGRQZm8CLqZq8RpmSnWJ fPAVOe5iGB16g== Received: by mail-ed1-f72.google.com with SMTP id b88-20020a509f610000b02903ab1f22e1dcso4153470edf.23 for ; Thu, 29 Jul 2021 23:56:56 -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:mime-version :content-transfer-encoding; bh=H0iqXvcx2Sb6gUihpF2rOO1152k8ULgDqjgBbDt6/wQ=; b=aijj2aPsKu9lSjYZR7zsRG5mCPZkCvZhPx3y9z2MKUMt3S1aC6vI+o7tYa6Bb5xJLD zmvlTK9JHCsmHt6dHYP42AabpbkEah5I0cEyS/QafXfeh9asPUmbfyLMt13i5iLv7PcP y+33kh4z1nkPlnEoxl2mKZjxYdwOY0i418IKTrrOMfm9Ez2WMUL6YEjTVUufIU3skMaT ZCj9R1s/WumA4sphahteT75InYtl5WmjQSbuLBKvQt/h/3fPm/Zn4YGrHxEc0mwpMv0a 2CYLcMrjp8eWi+AJj91DWqDboNM+uxkMJegkfDYH6BBOKZLtefIzaMgrbo8mIPbfRIL1 OhZw== X-Gm-Message-State: AOAM533Gyv9/I8YKOsgRRvaIWVWGy6330CYBvvj6U7wZH3upekD6R9S/ qbTFUn9Khm64/zCVomXK0Xga/mPYFs6esVgvZfnqKR5Mxvk2/9F38kqasRSKCMgV1dkOjEsS+0M IzKOydPKZHEhdPHr06nkrij3UIWNH78zP6g== X-Received: by 2002:a17:906:9251:: with SMTP id c17mr1210629ejx.516.1627628216643; Thu, 29 Jul 2021 23:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdiRODyaxS5ozEQ1SGCvSq92XcTRg9NN5AZlQaqiA2V+ZljzQ10rzB6+WfdmPHGFnit/Pcsw== X-Received: by 2002:a17:906:9251:: with SMTP id c17mr1210618ejx.516.1627628216466; Thu, 29 Jul 2021 23:56:56 -0700 (PDT) Received: from localhost.localdomain ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id m9sm238518ejn.91.2021.07.29.23.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 23:56:56 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/8] nfc: constify pointed data - missed part Date: Fri, 30 Jul 2021 08:56:17 +0200 Message-Id: <20210730065625.34010-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This was previously sent [1] but got lost. It was a prerequisite to part two of NFC const [2]. Changes since v1: 1. Add patch 1/8 fixing up nfcmrvl_spi_parse_dt() [1] https://lore.kernel.org/lkml/20210726145224.146006-1-krzysztof.kozlowski@canonical.com/ [2] https://lore.kernel.org/linux-nfc/20210729104022.47761-1-krzysztof.kozlowski@canonical.com/T/#m199fbdde180fa005a10addf28479fcbdc6263eab Best regards, Krzysztof Krzysztof Kozlowski (8): nfc: mrvl: correct nfcmrvl_spi_parse_dt() device_node argument nfc: annotate af_nfc_exit() as __exit nfc: hci: annotate nfc_llc_init() as __init nfc: constify several pointers to u8, char and sk_buff nfc: constify local pointer variables nfc: nci: constify several pointers to u8, sk_buff and other structs nfc: hci: pass callback data param as pointer in nci_request() nfc: hci: cleanup unneeded spaces drivers/nfc/nfcmrvl/spi.c | 2 +- drivers/nfc/pn544/pn544.c | 4 +- include/net/nfc/nci_core.h | 18 ++--- include/net/nfc/nfc.h | 4 +- net/nfc/af_nfc.c | 2 +- net/nfc/core.c | 6 +- net/nfc/hci/core.c | 8 +-- net/nfc/hci/llc.c | 2 +- net/nfc/hci/llc_shdlc.c | 10 +-- net/nfc/llcp.h | 8 +-- net/nfc/llcp_commands.c | 46 +++++++------ net/nfc/llcp_core.c | 44 ++++++------ net/nfc/nci/core.c | 134 ++++++++++++++++++------------------- net/nfc/nci/data.c | 12 ++-- net/nfc/nci/hci.c | 52 +++++++------- net/nfc/nci/ntf.c | 87 +++++++++++++----------- net/nfc/nci/rsp.c | 48 +++++++------ net/nfc/nci/spi.c | 2 +- net/nfc/netlink.c | 2 +- net/nfc/nfc.h | 2 +- 20 files changed, 255 insertions(+), 238 deletions(-)