Received: by 10.213.65.68 with SMTP id h4csp2118599imn; Sun, 8 Apr 2018 20:09:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49HfNBeNC2/C86iu71b5KRI8uGEWHCzGaQPG+t3iK47tCmrlUa/nTV78kh8g6vg17ecxkFt X-Received: by 2002:a17:902:8c8c:: with SMTP id t12-v6mr36914691plo.100.1523243398976; Sun, 08 Apr 2018 20:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243398; cv=none; d=google.com; s=arc-20160816; b=rc7gGusQ67fPXoloPOVaw/hXHcpX16M0mg+QULnp7AfXDMZVcEonXUchwfanFkzAPN O3N8azU7NMuQKeNdTbSY4xRwWF29S5mRTGKeD6e4SUPW/9T1/LeHhwQ4Qp4TV4F46Iej 3vye8klWi95vflu7fA2X1b8twBP2y+AXrTzzZ15g2C3FtxK/DiXvRGTInOQYxQfCx+bf wIyvk6u7V0RXN5kCWmrWgUOtWGJO91LoMYtdjTY33yjJPcmeBhF53QEXcl6jx3Rrs7iR 6wpjXp2qaXmZz0URb3BxbxuDuSoqv4OVVCRiRpQ274YGYFBK+kyXDUIVDpdmsHJRwPKv 8LhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=99z+fxgPMBKZL6u4TzbomHMirrlh7wWYsm/yT2EFtmY=; b=R5vLaNcHhZda+aldvpjdZWrmvUUlci/kQOt4nMChfEh9rQxXI9cE+ORAm1JW8JruXe fVcTgaJWfoCURgNEeHkueOsQJl9zoryUAEZ7Kr2tA7QEiQqJvjea73DWW5wd3tM3McVo 58xAv+JfEvgN8Mc3b2mGWQA2kT8fjFoEAFepeQyVXgcrkpxEQlb3pUwrOgCZOQccP43Z WNWO/sVPDtDfWjlDG7uFhuubBzWOpmoVYE0frOpruARSOt7u4W/QNIF0ZgmIMps1Xm0A k/CAzlnir7fN7HPO700WmqsGmDOcboo9PCvs0kc3vvDeBm8ou2l6POco2hN/veebWZYX uiQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=VxAl+ox2; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si10544269pgc.129.2018.04.08.20.09.22; Sun, 08 Apr 2018 20:09:58 -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=@microsoft.com header.s=selector1 header.b=VxAl+ox2; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932478AbeDICqg (ORCPT + 99 others); Sun, 8 Apr 2018 22:46:36 -0400 Received: from mail-by2nam03on0126.outbound.protection.outlook.com ([104.47.42.126]:2432 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755409AbeDIA0l (ORCPT ); Sun, 8 Apr 2018 20:26:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=99z+fxgPMBKZL6u4TzbomHMirrlh7wWYsm/yT2EFtmY=; b=VxAl+ox2c/f98RXOGv4rEw3O9lovnxnbjY6jGOuFZAtz2h7JVZS7m5VR+oT7HHDQay3Tn/YGNbyEqBBSQnauATVESj3nSP+Ro02g7I8U96nvVqtQae7Pf/YGcYv58PlO77AgFHuTD/fXjsYvZOD0m3oLHYkHJh5+iK6GVpvWCsE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0885.namprd21.prod.outlook.com (52.132.132.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:26:40 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:26:39 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Arnd Bergmann , Ian Abbott , Stefano Stabellini , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 017/293] xen: avoid type warning in xchg_xen_ulong Thread-Topic: [PATCH AUTOSEL for 4.9 017/293] xen: avoid type warning in xchg_xen_ulong Thread-Index: AQHTz5jrjSKo4/+nHkeCZpDJhTwqaQ== Date: Mon, 9 Apr 2018 00:23:02 +0000 Message-ID: <20180409002239.163177-17-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0885;7:4EoMWnL7BUroOxFnqdk3p9sybPWRRtp0KgYBbjP62xcuRPqUJIzlPPwacnJe6vyIwPB2N4sAXdpj07iKZMVkSUZ7WbWourxmnFaWOGdqgtBjqpZr0pnsFKmqzJttA3yyhjGNIFhcS9lA7BnB+5TdG9MR1COZnHC+2SMvr7fkH/46aQNd98672muOycbwbOuSOY5EUvX1eV1fB/OSJb2Dw1DW0oR7/Ae/iwxAYQYm2lMb24Sa43fZoA+XalmftbBs;20:2+FV9I/rM19DRKHvRfOZf+dmvzvcg1GifGEKwuxuiAUirUF07Rg4GF+638auNvYwSYVzrv/BRNaMGU4ZbioOK/N0JHWWnj9UZ2wiL1vAa8vkoDVRvntOfLTeCw5RgNgfT3X7ubu8mqY8JpmDsT3hoeh3KvVV77f2hGRVH+zSOzU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 93eb7150-f20c-462c-dc74-08d59db09014 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0885; x-ms-traffictypediagnostic: DM5PR2101MB0885: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0885;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0885; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(346002)(376002)(396003)(39380400002)(189003)(199004)(2906002)(68736007)(22452003)(316002)(6512007)(5660300001)(6666003)(54906003)(110136005)(486006)(6486002)(102836004)(36756003)(14454004)(99286004)(86612001)(105586002)(72206003)(106356001)(2900100001)(1076002)(97736004)(10090500001)(3280700002)(5250100002)(6436002)(3660700001)(6116002)(3846002)(305945005)(86362001)(59450400001)(66066001)(10290500003)(186003)(81166006)(8936002)(478600001)(476003)(25786009)(81156014)(8676002)(4326008)(7736002)(2501003)(107886003)(6506007)(2616005)(26005)(76176011)(446003)(53936002)(11346002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0885;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: e2sEBElV2/zcZPcCyWlsRDfGWLuDnIyjaay0y0TEw0OXPjFcSsD1tuHnHyiXXiAVAzn+uEUqMTTclMF+p0xEIr3Qtdv7gPKWeyC1UJ2GP9NbgdyO6ak86XuU7gszxPKgv1tL3sdxj2GSDUAl0/aaX5OKPEt/9JT4SwyuGNqjzH+QWEr+WwMKSrl9LBCh/UBsqXEknhi79umC1p12vG29iizITvYBgso7rWEON3UORjWtLfUy31uJfF9RvQoIEc+aqGLIrhfpMd3MrwnMkBK3fXEkVXRWW3fRnIxe7BGE9bGHd2qXncEcqfMxnwSqEKzMwS6qkcJbotS3i2n980xKMj2DBYNvrZUQrcn6o23TthiUF4/wjaGlwpycNpz96yfaHWaZ088PQVusqXUPBxNJvRR1Gjx7wnh19ta/N4iwxKo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93eb7150-f20c-462c-dc74-08d59db09014 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:02.5810 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0885 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 9cc91f212111cdcbefa02dcdb7dd443f224bf52c ] The improved type-checking version of container_of() triggers a warning for xchg_xen_ulong, pointing out that 'xen_ulong_t' is unsigned, but atomic64_t contains a signed value: drivers/xen/events/events_2l.c: In function 'evtchn_2l_handle_events': drivers/xen/events/events_2l.c:187:1020: error: call to '__compiletime_asse= rt_187' declared with attribute error: pointer type mismatch in container_o= f() This adds a cast to work around the warning. Cc: Ian Abbott Fixes: 85323a991d40 ("xen: arm: mandate EABI and use generic atomic operati= ons.") Fixes: daa2ac80834d ("kernel.h: handle pointers to arrays better in contain= er_of()") Signed-off-by: Arnd Bergmann Signed-off-by: Stefano Stabellini Reviewed-by: Stefano Stabellini Acked-by: Ian Abbott Signed-off-by: Sasha Levin --- arch/arm/include/asm/xen/events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/xen/events.h b/arch/arm/include/asm/xen/e= vents.h index 71e473d05fcc..620dc75362e5 100644 --- a/arch/arm/include/asm/xen/events.h +++ b/arch/arm/include/asm/xen/events.h @@ -16,7 +16,7 @@ static inline int xen_irqs_disabled(struct pt_regs *regs) return raw_irqs_disabled_flags(regs->ARM_cpsr); } =20 -#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \ +#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((long long*)(p= tr),\ atomic64_t, \ counter), (val)) =20 --=20 2.15.1