From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6326C43381 for ; Tue, 19 Mar 2019 11:29:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74F462085A for ; Tue, 19 Mar 2019 11:29:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P3qf8bsQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74F462085A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1+7mzmPhStnMOpWkkhYvIuwH3bR4r1zfOAUCEUQ+zRo=; b=P3qf8bsQ70cjQ3 wiAkU7XHlV3Iud3LJdbzr+icO8rO5qD4K7qPXUjJ+S0AAtjI94JBR14uNLFklocTcD4Ea8Vg739tO bj6a5scosL5tO8/aIK18sL1FsswKhdwtuVkz5sFOllZfHonnH+MiFBRCSYq2DfGN7GxisZ33ncKdb 5zK3hy+cNPRnTtYuUu1QUGTGHsJtqDsIpJ2O36LU2Z86LcXfuPAddpr11PqGq9hFEWmaWNU93+yy2 QKyqFP26kbFTbOv54K5xtwLK7f8LQDAa1IMkkzifpy55lw0vE+Og73MBXW8L2M4/9Hrd4556rrbnK Tx2FiAh/z5N+Za9FOqdA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Cvh-0004pu-Uq; Tue, 19 Mar 2019 11:29:13 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Cve-0004pQ-Tj for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 11:29:12 +0000 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 04:29:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,497,1544515200"; d="scan'208";a="123908207" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 19 Mar 2019 04:29:09 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1h6Cvc-000APd-GV; Tue, 19 Mar 2019 19:29:08 +0800 Date: Tue, 19 Mar 2019 19:28:27 +0800 From: kbuild test robot To: Linus Walleij Subject: [nomadik:ixp4 5/47] drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 Message-ID: <201903191923.dSWwvUam%lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_042910_973759_4DF9561E X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@01.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ixp4 head: 4ad185a5d819c08dcf11f0e0db38a8b0fd5d9081 commit: 1b03afbf7272735af1d6bbd3c7e42d418bed40b4 [5/47] mtd: physmap_of: add a hook for Intel IXP4xx flash probing reproduce: # apt-get install sparse git checkout 1b03afbf7272735af1d6bbd3c7e42d418bed40b4 make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' sparse warnings: (new ones prefixed by >>) >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:42:16: sparse: cast to restricted __be16 >> drivers/mtd/maps/physmap-ixp4xx.c:47:22: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [unsigned] val @@ got resunsigned short [unsigned] val @@ drivers/mtd/maps/physmap-ixp4xx.c:47:22: expected unsigned short [unsigned] val drivers/mtd/maps/physmap-ixp4xx.c:47:22: got restricted __be16 [usertype] vim +42 drivers/mtd/maps/physmap-ixp4xx.c 39 40 static inline u16 flash_read16(void __iomem *addr) 41 { > 42 return be16_to_cpu(__raw_readw((void __iomem *)((unsigned long)addr ^ 0x2))); 43 } 44 45 static inline void flash_write16(u16 d, void __iomem *addr) 46 { > 47 __raw_writew(cpu_to_be16(d), (void __iomem *)((unsigned long)addr ^ 0x2)); 48 } 49 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel