From patchwork Fri Apr 29 10:20:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasan Raju X-Patchwork-Id: 12831743 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80FCAC433EF for ; Fri, 29 Apr 2022 10:22:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239092AbiD2KZq (ORCPT ); Fri, 29 Apr 2022 06:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357558AbiD2KXj (ORCPT ); Fri, 29 Apr 2022 06:23:39 -0400 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-lo2gbr01on2098.outbound.protection.outlook.com [40.107.10.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F28731346; Fri, 29 Apr 2022 03:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b7azKTiSbQoKKb+NLSi1gQGixG0RKrM7drNeCppOyMD49tVELMrAECVIu19WptvavM+XnbGlVh7puieFcEdSbMSgXRzmYzQ9M5Zc7k+lNMCUw+PcOEm9fkiikhuJdLbQx5HVgavEv7SsUE8v5fGDuCS2bJ0oGMwX1XQUZCCDlZVaeej4c/6EaC54hJVm5lNziEAvmboua01jOyFPXFBmxNyEAB0CQnedOv1fs8O0XVkKjA5osvnmIzjRdpCj5r4dVOwGvrKxrfDB8fxCdSL3hgiahQsKo2FJYt5RiuoWwEaWjtAKNMI2yh7vmbSxkOHOr3Q1I8jFFj8jyINMh4eMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QNbXHk7fL+FRZYKIuLot1VIOv3irzkr3eOdE4Z1zpLU=; b=F2Rf1PWjYkwZo8O4l+JK0+KyvQ/X0SKonEFNulf3Lr8JGaM1SwkteSzCW9VS3Ln+tN2j19tQI6CUQUvhPSAW7CRNKxCXyrI5+KQ1Z2XFVh1s+8V9+eNiuWwA1kgnGbgFTRn5y7t5MArcPB5jLHBzBYG+7uoF1D8dEvHWDwKQnTHh1zfw4Kkzi3hv6rSo1e2v6aGsN9klQmEOgAGRJLuiad18IQmFK17IRSWq/VZUUvFJM8yxrlOeKVplNOiw3qKHi4eztlrAOiQrIVdNnMZN3wm5mJiG/0bgaIHldCAJqvOiNadWwt4rx1BlhpJllh6GpJl4CUlWLRXWea31yUh9pQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=purelifi.com; dmarc=pass action=none header.from=purelifi.com; dkim=pass header.d=purelifi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purelifi.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QNbXHk7fL+FRZYKIuLot1VIOv3irzkr3eOdE4Z1zpLU=; b=WMk8NyM8VmmLrX/jr6wjMQoVIa48+ljX8PPtuL1Qnyli51fpQFs03xi7U+n/0poRE6s8PrVQ7dhjqxP5o241/sQQu0GcD0IgrlDuX+dj+9mNnWV7lTF7SviiCl2s1Ym5R5XHQ/TVfalbpETpZBETMdx/JLEKMHWBekZDnfRdiwQ= Received: from CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:bb::9) by LO2P265MB2750.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:143::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 29 Apr 2022 10:20:11 +0000 Received: from CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM ([fe80::9d97:7966:481:5c10]) by CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM ([fe80::9d97:7966:481:5c10%7]) with mapi id 15.20.5186.026; Fri, 29 Apr 2022 10:20:11 +0000 From: Srinivasan Raju CC: Kalle Valo , "David S. Miller" , "edumazet@google.com" , Jakub Kicinski , "pabeni@redhat.com" , "open list:NETWORKING DRIVERS (WIRELESS)" , "open list:NETWORKING DRIVERS" , open list Subject: [PATCH] Fix le16_to_cpu warning for beacon_interval Thread-Topic: [PATCH] Fix le16_to_cpu warning for beacon_interval Thread-Index: AQHYW7HMb3tdzTJrcUa/Lk1mVof2ow== Date: Fri, 29 Apr 2022 10:20:11 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=purelifi.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 456986d8-d3e7-4213-62bc-08da29c9d814 x-ms-traffictypediagnostic: LO2P265MB2750:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: a1Mz/D0AIdB1iZ9mfpL2rmoVbWVsxXQOhvoVrniOJRFYCcy4iMxanATvrG5VTfavc/8ok/1FhEvcpPfpnJ2iRo+3eE2XXC5I8hTQkKm2VjKOB86q+rU52/7+totWUEci0x27yMEOoUAbcE8JalkFIqH7SaNRBprvMHOmrAdhZd9YJF9qKGn9G/biqOw/XgWvMIVxQSMiuDgc+S1yzxBppoaMSsXQtgZ+VPn8aVmd3BdATkM+l6IRXsHhiZ8J0CHey2l2leX7l6IJIEH9MExaMG623PM0iTZrSLNzAQR1F/u7PSSMZ3gt4r8dIpvcFnQllni91Htr5+5omFxWOUbyrG1UeezZDha2KS3a7iqWWa75tLfSM98RO9xlChJPKYG+vFxy9wRr4n5RN+xz7MP7Oz8VqwwwqfjRpJQNOjOlpvca4prEptvIwfl0p9HeU+PAGDHJcs1WjSbSb7ct29gdJn2hqo04UZ0B0sZOJdzyHiTMGBwhktpvEToB1CRYMVENYbrUMMAws96EfDsPvCsexLHYsDLBQpF4q2OtD5WnrrMJ5qxEqkpLOKVG0Oc9/twaxYXiobMHez/3atWER64fi7Ip4o04mJTu38Imh0bKkX1Dn6GzNmopHjja5l/2J1npAsqsRjpP8SVYYni7iG8q1wKZ9uKrqihJPzp2lUPebGXt4Neijn/cZWFFc1gPhTzt21PB/XwP7zmwG17h+YWCSw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230001)(4636009)(136003)(376002)(346002)(366004)(396003)(39830400003)(6506007)(7696005)(9686003)(86362001)(2906002)(26005)(508600001)(52536014)(5660300002)(8936002)(186003)(33656002)(38070700005)(83380400001)(38100700002)(122000001)(109986005)(55016003)(316002)(64756008)(71200400001)(66446008)(66476007)(66556008)(54906003)(66946007)(91956017)(76116006)(4326008)(8676002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?7xtqNdTEhiaamVgtDpSOSwj?= =?iso-8859-1?q?PBZM5nsjyaDWuG1OF6dAUBHzh9me5EhAGJ67ibiMXmZG6tH+sawl2As/VS52?= =?iso-8859-1?q?iM5q/0C2EdO5cGQENUsEaQj9VSL34xkJKgi4au6qnjVCpqKrvPxU29qdAipg?= =?iso-8859-1?q?r8CACO/2YfAcMGiPG9BztqkguArkGsrvyrQ5oUJyjBP/vLyALNcY60y+x+kf?= =?i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I/QTDjfpcYwmVXGZtNtzVHPfFLjivfow6oW0Oynkw2?= =?iso-8859-1?q?R7mfgTbrt+2DNuZeUOLk1yPPeVeE3HKS6+owQt9f/pBPfDOrUAsy3G0kt+Qw?= =?iso-8859-1?q?GR6N6iocOnbufsk13eYPRg9l0vmGyvh82Nsd6VX/N/xb4AqYuZ+1GbQ3rBoj?= =?iso-8859-1?q?ViMEtj6eT1dDYNoUPYuYfPEJkBCCNOQvSQ2As3P9toz9F/DI7XE1fVV1ldie?= =?iso-8859-1?q?DuyRNe0prZXLU//ZqUoPTURcxxAxkk00TrOo7yZtc4XmnLlzWX6dAT6Hlzk+?= =?iso-8859-1?q?mze9nXGUuou8y29ilyy/JH8O8hs5P4V9pdl/PwkJhhhU/9ANnOROKu3NyKfd?= =?iso-8859-1?q?CkfD5fM+X9kPv1Xdm+ca5KNIVDu9qrMqcpajMMgpVIoqzuf8zemydazDH5f3?= =?iso-8859-1?q?vkdZB6HMsJuY4h5M6/xY3jVX8QoakP3GsPeMBIGvtygk7z5lgpagr8eBKnde?= =?iso-8859-1?q?K+c8qxfO9fg7465KN0pALRQ4vnB6LDqiUZmVUSeZm1ENtesS64LUYBBNI7t8?= =?iso-8859-1?q?EOki5Qhpg+CBylrmz0Wamn4oMvzb5++w3HKKqfNGdW0UZBy1kyHrfwbpXHXO?= =?iso-8859-1?q?lfMjzBcK8eg1Q5L/sFFbfHzuYD+ugZqmMaItS9r180OekGjbveVfhvT8HKXw?= =?iso-8859-1?q?ijuSYjP0sjShaSZVUf8hcHlXKfvlS5FAuEGH18KzNOPyFsA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: purelifi.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB3217.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 456986d8-d3e7-4213-62bc-08da29c9d814 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2022 10:20:11.6257 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5cf4eba2-7b8f-4236-bed4-a2ac41f1a6dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TutvYl3MlQnZMykT4SeS8ZK1+fhBsIll9FKUpDzJnRm77gYKIcwe6L1PBg1RmFe7FMcjgy+TkY00Iab221Ehww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB2750 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Fixed the following warning drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: expected unsigned short [usertype] beacon_interval drivers/net/wireless/purelifi/plfxlc/chip.c:36:31: sparse: got restricted __le16 [usertype] Reported-by: kernel test robot Signed-off-by: Srinivasan Raju --- drivers/net/wireless/purelifi/plfxlc/chip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/purelifi/plfxlc/chip.c b/drivers/net/wireless/purelifi/plfxlc/chip.c index a5ec10b66ed5..5d952ca07195 100644 --- a/drivers/net/wireless/purelifi/plfxlc/chip.c +++ b/drivers/net/wireless/purelifi/plfxlc/chip.c @@ -30,10 +30,10 @@ int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u16 interval, { if (!interval || (chip->beacon_set && - le16_to_cpu(chip->beacon_interval) == interval)) + chip->beacon_interval) == interval) return 0; - chip->beacon_interval = cpu_to_le16(interval); + chip->beacon_interval = interval; chip->beacon_set = true; return plfxlc_usb_wreq(chip->usb.ez_usb, &chip->beacon_interval,