Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp20320ybj; Wed, 6 May 2020 10:37:30 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4Ab4pxPXBIU2C/Ax8du/sPIgUBcDyFoLTWxTdEe1TQBwH2F5ul6c4UN0TNYzU75msdE04 X-Received: by 2002:a05:6402:154:: with SMTP id s20mr8344689edu.224.1588786650057; Wed, 06 May 2020 10:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588786650; cv=none; d=google.com; s=arc-20160816; b=atu0c5gx7B1lDdmTytiuMiAcHqTWsoqUqvCdL2CQUhKPfIcAMfGXhjZO9zguuL9Qk1 f4TjEZzheprhlkvLsL4nTnAWW37HMuRshsrRNh7JqeXvv7Q27I35xTp8N+j+yqruGkNR xKFsP9urIJGlI5i+FP0VAN2QC107FZ65EEBIMapFXABQFNq99cBZsGNzWYx5/8+FCBPh WxFO3HuWZ1wkVf5L1j5gbSAthbxhGPSPgUfVzcfhN7kjyhmHmv/3p6mP/ib8U6ltv43H mG84JARnYcx8g1OFbMMoEt44FZoPX0uzk/enbVTpVmJCLoyyrkkBmEQkk3vb3k708O7U fe9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:to:from:ironport-sdr:ironport-sdr; bh=zSWz4NFWlI6rxQSTmXsY2SZ97N15eFfkW4zIMOiVap8=; b=uFB/wlki4Lg0WPkU8X+P+bdBLlyKUvs4bRLehMNR9CgmZQukjARSqsvMBnXSu6U0NU h5dSd/3NeZkC2/yCKxdRgDpBHcMGNk+2pD770KnurY9j9Y+4vMdZsFA4wVHsoqR2C/MG QwSAONtJbiAy4FO8ZyevFa2+oJ5/lOlAnPcgAxPp+ckUEYgLJ9MwXbBDMlzk/1hPq+oq GEp+wllcpeX1zWJvG1OZv/sU9C/lB9F2G9b/D1NEy5bDtLgi/AByBEx9FxjrNd8SbnmY kZgYXIAb14gLMDnVpKbhCF+rYKypgQh+hi++v8eJBYhnoMU+cRytNQfo5Pv1SNW4bVWO Z65w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm18si1426780edb.130.2020.05.06.10.37.06; Wed, 06 May 2020 10:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729249AbgEFRdX (ORCPT + 99 others); Wed, 6 May 2020 13:33:23 -0400 Received: from mga04.intel.com ([192.55.52.120]:35328 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728892AbgEFRdX (ORCPT ); Wed, 6 May 2020 13:33:23 -0400 IronPort-SDR: eWBTP632oWShg35La9DNMsoJnQLdV4QTZSlXmdQWJ1KsMvKTsAxlX1emF6i5ajaCKSNU/fXRh/ nIKm2DxJ7B9w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 10:33:22 -0700 IronPort-SDR: hR4VvPQ1s8LInWNivzxzkSMAvnP0apxEVPJ4nIM8UCZrAXzyiX+MVxaq0FmecwSJPcksCvYdhn BHDTRFkDwx1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,360,1583222400"; d="scan'208";a="461835332" Received: from vvoggu-mobl1.amr.corp.intel.com (HELO ellie) ([10.213.175.52]) by fmsmga006.fm.intel.com with ESMTP; 06 May 2020 10:33:22 -0700 From: Vinicius Costa Gomes To: Murali Karicheri , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH] net: hsr: fix incorrect type usage for protocol variable In-Reply-To: <20200506154107.575-1-m-karicheri2@ti.com> References: <20200506154107.575-1-m-karicheri2@ti.com> Date: Wed, 06 May 2020 10:33:22 -0700 Message-ID: <87368dufx9.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Murali, Murali Karicheri writes: > Fix following sparse checker warning:- > > net/hsr/hsr_slave.c:38:18: warning: incorrect type in assignment (different base types) > net/hsr/hsr_slave.c:38:18: expected unsigned short [unsigned] [usertype] protocol > net/hsr/hsr_slave.c:38:18: got restricted __be16 [usertype] h_proto > net/hsr/hsr_slave.c:39:25: warning: restricted __be16 degrades to integer > net/hsr/hsr_slave.c:39:57: warning: restricted __be16 degrades to integer > > Signed-off-by: Murali Karicheri > --- I think this patch should go via the net tree, as it is a warning fix. Anyway... Acked-by: Vinicius Costa Gomes -- Vinicius