Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5726328ybp; Tue, 15 Oct 2019 04:14:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzplG7c+/YNohCY1D7YV1EhZYNfVnFAi152n+yYuifErM+6j7HnvFiyl+6bYJKrJjbweBAn X-Received: by 2002:a05:6402:296:: with SMTP id l22mr33052695edv.86.1571138049097; Tue, 15 Oct 2019 04:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571138049; cv=none; d=google.com; s=arc-20160816; b=N/+kNlbq2D7bX3d67rvoJjRajFyJXpBZOU66s37bsLsj211X24hM6EO+N29H7m1eP4 Bzx83xs81fr5sz7jLBm+qH2hIv9WiB+/QkhQj9Gaf6P+/kdA5pKSTrc0fb+qxhfI96Iq X07ny2FUeiTX3e/gZtcpHMVX0uAwxS1M7Yv4o4m2+s11XpaE7Tg7u7q7eMIq9nodWafI irH9VJx7sGuMFcjA1I7K2S2u8sdHYtUzzWJwbd2fn+7yu3hy+9nHRKZxeDhCLwxkjcfS GIbET9ulEJr5rmpwqFQMwyPJSaDo3PMaogO7UFDSHUplpAGBmpNVNk5M5kJAOUf/AZIQ HYkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=foXBwHD68GqDpUhv12UgOg8h2hieUZu0Au1qNClUQfg=; b=m7gycrWL8nWD4/qKOmkAKTE7Uk57Jjy5HEIAebZ0Xxp20xonLYsMfx4cUQsolKsI7j qDwJViQDwoC3q3MrF5oj2ZKoD8zT197FDb86guSfGLX170bPl+OomUEgINYaswm0vNeO uCndNTbdS2T4DakwcvZtuM+jO0RDXJ5bzvokK0vdNledruHeh020GWPMWOF5+NE3AkEG qL7hVIv1mSWTNsIf7Htv7lMtyx/clzUmNCNpfZgku3WQG82nzShTgN2JNQoKeMwy7r3s 4ttQ5w1hN7iE+O4TWbd54brC/khhCFbws3pnxqip8VHiD5Q4Cj6GKRxSNxOiI4w6w9il Rb4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=itYb0Pr5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si13202214ejw.396.2019.10.15.04.13.45; Tue, 15 Oct 2019 04:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=itYb0Pr5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729084AbfJOIrr (ORCPT + 99 others); Tue, 15 Oct 2019 04:47:47 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33122 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfJOIrr (ORCPT ); Tue, 15 Oct 2019 04:47:47 -0400 Received: by mail-pg1-f194.google.com with SMTP id i76so11720529pgc.0 for ; Tue, 15 Oct 2019 01:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=foXBwHD68GqDpUhv12UgOg8h2hieUZu0Au1qNClUQfg=; b=itYb0Pr55NgMcqQx6PCxeFCUijsujjxt4Xa9C+B6w/WQu/k70+T2xEw6xvOrC77P6c cJSKaWJB7Bbh9MLylt84yJrtMZZttJpAp/oWTMLhILPTTNSuJLP046BDtp+bPUMObFSx B849ISYsz31Ka2/bvu2IBiMmcfKpIoRE3BGz/dL7Mw4Hmd8siEg28dlMjQ6RLolrNk/Q qbX5lI8eBrfWQG+6tXr4jNKZYdVINbF/hAtMiZmwdGQcLUmPeent50/Pr9NSyThz0kSG ny95g9M3SfyDLkoOSnVJACzPCqjK+CU2A95XN3DPF2QipNGU3sDjcqlLZDEb/llCBxKg WUOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=foXBwHD68GqDpUhv12UgOg8h2hieUZu0Au1qNClUQfg=; b=SgbZ7RMgOlgaLe9XPluZEvwYibBTP85LYN+nCb2EontqOsgl2PqYaytmhKnTmvfV07 dAuwrpY9p0+oKn0V6xo73gGeEDP4yScaCQUDu8e7KFVAoCzbElvCxPmrpU/jfd//3FyI SQDwsNk/4ajnxChWGKZLYXQ25eOSNwVYxHyQcskP07i7Z4EL84jq2cNFKJ/9H7XegJgo 2od5ZHs0J35ZYMtz/nN95Q8TwwvGD8ykAF65pyiauJ6vk18sXizw9WEPyn85dTr+h4D1 jnldqdnaxn5OeRSDXAFfDMn2200YGLGMKlN5Vlx54XSiGUfIRM/uhTl3Fp5SvJgV79Y0 toSQ== X-Gm-Message-State: APjAAAU3EwH3d4WhnJDQG+sCISXehYTkMrobw51f8Ao71NZStitZ5WVS U04nmabPla2capmpbhTbQik= X-Received: by 2002:a63:1242:: with SMTP id 2mr14383081pgs.288.1571129266064; Tue, 15 Oct 2019 01:47:46 -0700 (PDT) Received: from wambui.brck.local ([197.254.95.158]) by smtp.googlemail.com with ESMTPSA id h68sm25239210pfb.149.2019.10.15.01.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 01:47:45 -0700 (PDT) From: Wambui Karuga To: outreachy-kernel@googlegroups.com Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: octeon: fix restricted __be16 degrades to integer Date: Tue, 15 Oct 2019 11:47:31 +0300 Message-Id: <20191015084731.8514-1-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add cast to fix the following sparse warning: warning: restricted __be16 degrades to integer Signed-off-by: Wambui Karuga --- drivers/staging/octeon/ethernet-tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c index 5114273826ec..b334cf89794e 100644 --- a/drivers/staging/octeon/ethernet-tx.c +++ b/drivers/staging/octeon/ethernet-tx.c @@ -598,7 +598,7 @@ int cvm_oct_xmit_pow(struct sk_buff *skb, struct net_device *dev) #endif work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || (ip_hdr(skb)->frag_off == - 1 << 14)); + cpu_to_be16(1 << 14))); #if 0 /* Assume Linux is sending a good packet */ work->word2.s.IP_exc = 0; -- 2.23.0