From patchwork Mon May 22 10:12:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Winkler X-Patchwork-Id: 97237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1338306vqo; Mon, 22 May 2023 03:19:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Amlz042GOZMCrnHbOzUmn8IaiFPvXOU//2dOXemLQPDgle82iTvPXC2Rw/hM2wtYj9HXM X-Received: by 2002:a05:6a20:861e:b0:104:1155:10ee with SMTP id l30-20020a056a20861e00b00104115510eemr8442657pze.58.1684750746466; Mon, 22 May 2023 03:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684750746; cv=none; d=google.com; s=arc-20160816; b=ZBQi95ZCnI4Kphv4036YyTai7SY+9Xiia1lvdEbjkYaJGSEnibgNs8DTE2piKcQ7EF LbjwbNs918PSK3ulHGSLhcDGRM/WqIrd57RYCU0Yi9sr2c4gBDfN8wclkM6VzBh04FAB HnW16kZ+qrCINUeROX5n1Si8JpYoJZ/sWHjMJLQ/jeI99vIRkUNrIUK/eLZS/JMnoZaE vQRhvY0GohRkRcuf9IvNBhb3MOKbNU/aCLa+g0m+2elR99HhB1ziwrI2qy2FiBxyWswq Hg7bdDGe7OM+3JZsfqI0Yi6h+Zlzq23y72caxAH5tU750FyHSQzzZyPErS2DMbiImFjc ZlEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+lL/M4kYeHNthYTpgfWlfJQFMZ92osxcgOVgW02ShoA=; b=j1QB/3Gmb1tnWeE704jhtwtXfmolP1iu3lhFXyDhLE3cJwZtH3OeRFG2YhtIBRz2tk tAORsm6V0fEDWMG2MdJYnhX7kaO28gk3I8w8w6xWBlabVKZ9/BVnWHClpfapMaEzv3xQ Kk4FPDz3ZLL09HyfzqC7CW14rf6epATEro7boiUWlnnm7F4TVY79HZ0tHNcstRqbcz1p 9RgG3N7CuP1MECcx36VrRKW+QTWMEmiIDonZCbE4EYrM2f/+B+SCmqMxrCiEBdSEl2T2 qe4OY5NtbNN/nidydhFKm7d36R5E7bI9aTAGIarUNNdjIPix/z+QjqqQGyn8aGLEg+Dv 8ryw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cbgQCGyY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a632c02000000b005288509b88asi811323pgs.681.2023.05.22.03.18.45; Mon, 22 May 2023 03:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cbgQCGyY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbjEVKMf (ORCPT + 99 others); Mon, 22 May 2023 06:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232157AbjEVKMa (ORCPT ); Mon, 22 May 2023 06:12:30 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F56C4 for ; Mon, 22 May 2023 03:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684750349; x=1716286349; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tAF2CzJW9vSbgRJrTBfp96GQg1s66GPivnBYn+KlQdY=; b=cbgQCGyYl6HwGZNrUu30p1JXVToZz8/zd7qt+RpI/0oItqMqFiEf6rA7 94BJHVZUEP3GLsanSdQR/buEay8LF4IWuLZO8wewDdLWT0EZUyFBM7sj4 UeEY39ucN9V7HoEDh2jtj0WFdrKT3vT9AobmFFCVKU/zlSjks9xMQzDol j/inLlk+k2dXTeSU7Tunt8lR5MY5KTEr/VWcLCnJhzXoTwcaPAam8QeCk uyQUQZF6+IAOy4XWtjxD8lizCn9dkRbwQjDUuoMU9k17OT2AgfhW+pBqL mvA3t/O6L5WJ7sCI9VqYAePo86rC8/rZTg+6JTAFuTmH/TnauOnWAh2/l w==; X-IronPort-AV: E=McAfee;i="6600,9927,10717"; a="333245344" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="333245344" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 03:12:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10717"; a="1033575419" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="1033575419" Received: from twinkler-lnx.jer.intel.com ([10.12.230.239]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 03:12:27 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , Vitaly Lubart , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next 2/2] mei: bus-fixup: fix buffer type Date: Mon, 22 May 2023 13:12:10 +0300 Message-Id: <20230522101210.2207395-2-tomas.winkler@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522101210.2207395-1-tomas.winkler@intel.com> References: <20230522101210.2207395-1-tomas.winkler@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766589198575508857?= X-GMAIL-MSGID: =?utf-8?q?1766589198575508857?= From: Alexander Usyskin The __mei_cl_recv and __mei_cl_send accepts u8 buffer. Fix buffer type from char to u8. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus-fixup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mei/bus-fixup.c b/drivers/misc/mei/bus-fixup.c index 31e3c74ca1f1e4a377592fb8..b8b716faf1921914fad9fcc7 100644 --- a/drivers/misc/mei/bus-fixup.c +++ b/drivers/misc/mei/bus-fixup.c @@ -108,7 +108,7 @@ struct mkhi_fw_ver { static int mei_osver(struct mei_cl_device *cldev) { const size_t size = MKHI_OSVER_BUF_LEN; - char buf[MKHI_OSVER_BUF_LEN]; + u8 buf[MKHI_OSVER_BUF_LEN]; struct mkhi_msg *req; struct mkhi_fwcaps *fwcaps; struct mei_os_ver *os_ver; @@ -137,7 +137,7 @@ static int mei_osver(struct mei_cl_device *cldev) sizeof(struct mkhi_fw_ver_block) * (__num)) static int mei_fwver(struct mei_cl_device *cldev) { - char buf[MKHI_FWVER_BUF_LEN]; + u8 buf[MKHI_FWVER_BUF_LEN]; struct mkhi_msg req; struct mkhi_msg *rsp; struct mkhi_fw_ver *fwver;