Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1113576imm; Wed, 1 Aug 2018 10:24:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfG0BZd7aJ5H5LOy5jDYAo3aYJ6t+0eXmxrXNPAnW1f0Jtus+0BC57oyhQeW6h9g1Usj50y X-Received: by 2002:a63:5c7:: with SMTP id 190-v6mr24877889pgf.385.1533144247860; Wed, 01 Aug 2018 10:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144247; cv=none; d=google.com; s=arc-20160816; b=cFeQyQaFxKXdpimXZOuqCmj75wF+gy3241JA5iVCvFAqnEDyLFshV108RL6ld9v9A3 iSOpkGYV39WiLFPSlX7W8GMHjfddk2SkKScoN4nyErcjuU+3qgTV1vmsPLit6q6cDE6x FXN5tml3w0o4gXMKNVXTdhq0kMnhasRUWNiSrWKr3ICipX9nDs/YUJanE7LEqw7WpdkN l2PejocgleNSToRKmv2b26Bnle1P/06RjHy25is6Q44ELzC20S7S74Xo1fUv/ORb1+PY gi5Ah4m7+U49igpZavs13mufGJCM/v5EK2ylWoaQNyrfzDUZbC05S/VWdjZtlnsBkDxB 9lmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/TA5dNAFSxF9OjFL/PZtCeNYUHaUoZfQtK5UOlh2uKY=; b=iRyQMtipuYkZMzAZjiBpEbvd544FfoG/kirNCwUivu3AMfO983NKn6vjZODmHCQQG8 LhXtgO8g+ZCYPAgi2lFBGCKNIez4ixM/AGQUd5BQNV33MsMIn0bkRwbrPgbrvMqMMp5x Tq51Hv9hfgPft4WQp5eUVixYjkfbvfcbAVtZm8+BYwpPTLpgGopefRlSKaYF+2JS6a0a ZpGgxy/tVW0hX8FkucBU49WbAi3boC8UeztF/LLzvFXaJy2pL9iZuPVdlcaiIck8m03D FpQfoQHxSgcQtwCxA+C4sMDXFQY/RiEZbID21GCZg4A5UU7rJy/qi/AT5MFoeq8zaeaW f5gQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p65-v6si16290139pga.401.2018.08.01.10.23.53; Wed, 01 Aug 2018 10:24:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406220AbeHATJA (ORCPT + 99 others); Wed, 1 Aug 2018 15:09:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50658 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405200AbeHATI7 (ORCPT ); Wed, 1 Aug 2018 15:08:59 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8124CCC3; Wed, 1 Aug 2018 17:22:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 209/246] media: si470x: fix __be16 annotations Date: Wed, 1 Aug 2018 18:51:59 +0200 Message-Id: <20180801165021.714174068@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mauro Carvalho Chehab [ Upstream commit 90db5c829692a0a7845e977e45719b4699216bd4 ] The annotations there are wrong as warned: drivers/media/radio/si470x/radio-si470x-i2c.c:107:35: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:107:35: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:107:35: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:107:35: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:129:24: warning: incorrect type in assignment (different base types) drivers/media/radio/si470x/radio-si470x-i2c.c:129:24: expected unsigned short [unsigned] [short] drivers/media/radio/si470x/radio-si470x-i2c.c:129:24: got restricted __be16 [usertype] drivers/media/radio/si470x/radio-si470x-i2c.c:163:39: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:163:39: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:163:39: warning: cast to restricted __be16 drivers/media/radio/si470x/radio-si470x-i2c.c:163:39: warning: cast to restricted __be16 Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/radio/si470x/radio-si470x-i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/media/radio/si470x/radio-si470x-i2c.c +++ b/drivers/media/radio/si470x/radio-si470x-i2c.c @@ -92,7 +92,7 @@ MODULE_PARM_DESC(max_rds_errors, "RDS ma */ int si470x_get_register(struct si470x_device *radio, int regnr) { - u16 buf[READ_REG_NUM]; + __be16 buf[READ_REG_NUM]; struct i2c_msg msgs[1] = { { .addr = radio->client->addr, @@ -117,7 +117,7 @@ int si470x_get_register(struct si470x_de int si470x_set_register(struct si470x_device *radio, int regnr) { int i; - u16 buf[WRITE_REG_NUM]; + __be16 buf[WRITE_REG_NUM]; struct i2c_msg msgs[1] = { { .addr = radio->client->addr, @@ -147,7 +147,7 @@ int si470x_set_register(struct si470x_de static int si470x_get_all_registers(struct si470x_device *radio) { int i; - u16 buf[READ_REG_NUM]; + __be16 buf[READ_REG_NUM]; struct i2c_msg msgs[1] = { { .addr = radio->client->addr,