From patchwork Mon Apr 9 00:23:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 132983 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp730644ljb; Sun, 8 Apr 2018 19:46:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/IhSAlLNSpHgteRQK9CYj5quSpWAEaAeAhf9oThfkGkmgEgwVIugyvmE0IOI8TFNBQ1QkD X-Received: by 10.99.133.193 with SMTP id u184mr24114490pgd.141.1523241998130; Sun, 08 Apr 2018 19:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523241998; cv=none; d=google.com; s=arc-20160816; b=P5SNp+UbulXIBYD7FIx9eLshXWb3VsBcmZ7G0AlBRJbFZAVV0S6wvqMQnOwxLOsuuu BHcFPpJSmecu6h6cs6tVmqY4Pf+6SInj/jv6QOZ2b7j1ARwEFXEM/CzSC+G69zSSpMVN QwZeBCzixucYE7b01jBUjbq6ZQIOT/qeKqLCHGj1rA9li/uHjR3ldIi4QUOHZ/oO9jkI WMqGN2R9G3IRpUMz2k1kc8X1MvIAvFKEKDLVrZwGxTLqYlgdvDIHxgZWqmYDYqS+ipyT 7BDvkUcb+Xo3AoNCjZ/Qa65CeKw8BrFfRddYEM83D2BTV6zWxDcbWQV2lm50yW+fL6H/ Nx6A== 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=X8DT/s12woWV0nRryGqnQLtEshvDc9FjHB8eco2hPdYgfUIm2FQVW+3f2qJQqkSzU1 RcgnbyzNyptWn+dLJxHQqUcUbSPyltG95GYC1t1PmaIOa/lUtEaIKorhBOYVZGpKUNkE pHo8FVZ16pXZiZx8EwKqdtziFrZjx6oGtwhPph/5zAEYa3OrarUWnG2a+oE8PGtnUstv jHbNFYgCY6qc2nhnooOvFtSgu5kRmzEUuR6XKPngnQKjGwzsKqShMkeq6WoVHTSX03WL 9rm+MzW7h3hBiYDT5N3GV2qoBFMnB7XjqKQWC0/WD9hWlNJpnaz+Bqfbdqs7pqrkNLRX 1v/g== 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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 g7-v6si4025739plk.388.2018.04.08.19.46.37; Sun, 08 Apr 2018 19:46:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 S1755350AbeDICqe (ORCPT + 11 others); Sun, 8 Apr 2018 22:46:34 -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 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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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_assert_187' declared with attribute error: pointer type mismatch in container_of() This adds a cast to work around the warning. Cc: Ian Abbott Fixes: 85323a991d40 ("xen: arm: mandate EABI and use generic atomic operations.") Fixes: daa2ac80834d ("kernel.h: handle pointers to arrays better in container_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(-) -- 2.15.1 diff --git a/arch/arm/include/asm/xen/events.h b/arch/arm/include/asm/xen/events.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); } -#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \ +#define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((long long*)(ptr),\ atomic64_t, \ counter), (val))