Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp453741imm; Tue, 3 Jul 2018 23:32:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfOpzOgSZgwZ+cOufzygHMSEqx8tyL35KktiKg4vcaZ+OWe1utit7/SSBlLzKApUGYfDfnb X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr798289pls.321.1530685925893; Tue, 03 Jul 2018 23:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530685925; cv=none; d=google.com; s=arc-20160816; b=wggR0cd3UPkxRnjKEvg2xaCGbl9em01VEOWS9OXV0QAe9PlQqPoccXa/3N2JnGiBAl 13SkF2oXUTJpEPmakO+R3cVkUZ8Pv5jc9JtRLnfPZ9GPBvfCwmzlIyY3eWEBYha2p+h3 /p9G0v+XkuGpw3qnA1LzwjT6c7S50R3tO8Mz6krIwUrKOpTn/F5d54qpYmzUy3Wqe7Ku zekq2p9ZRvRS4ltZmli817k/ga2qv446xVx7sFgSqz/CDCcGoZ5MM49YwR9OsQec1OgF zhED3x+H+NnaDsNt+sM4fB30y1h4U8c/quWklMc5vtbXxO+/tanjOY+OfE7e4m2xRS7N j+Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=Ob543yd8Hg847RxWhjiXuD4n6AxgBaUE2Tm/5Vvk8Zk=; b=reWkJqP1EZHrLyMQ8OwGIQAzRDSa5UhuQ25n5PuP3PP474QbRvCfl00k4OTrhH7414 zGyFsF+ZfOzIzzyPQ/w9/eJqiDktvI6jsEVd0FUI0W+K6w4Gwou4aTdDpzfAKkZd93I3 1isXuTuzpNcszXl28rLT3VRHVVR0R1XCnurWnFAWJyoyv+uRywh0QPAikC58jNwrhStF 8WoKACZsLL6qWrZpGOZ5HKXGMN1HToran5pOopRG/D5W3Yht8rXbagpbSxdDBHZqTDve pO2/BUTZ1LwrxPCXP6k65vKLaWsOP/Lb7VyDrw4Kb3r6gie+8VUacuL4zd6f83Nmu9un nWXA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si3075215pfv.135.2018.07.03.23.31.51; Tue, 03 Jul 2018 23:32:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933748AbeGDG35 (ORCPT + 99 others); Wed, 4 Jul 2018 02:29:57 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48294 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933239AbeGDG2e (ORCPT ); Wed, 4 Jul 2018 02:28:34 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w646O13d051859 for ; Wed, 4 Jul 2018 02:28:34 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k0q9x3jsx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Jul 2018 02:28:33 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jul 2018 07:28:31 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 4 Jul 2018 07:28:28 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w646SSTD28246212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Jul 2018 06:28:28 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3674E11C054; Wed, 4 Jul 2018 09:28:53 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 97A9E11C04A; Wed, 4 Jul 2018 09:28:51 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.160]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 4 Jul 2018 09:28:51 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 04 Jul 2018 09:28:25 +0300 From: Mike Rapoport To: Geert Uytterhoeven , Greg Ungerer , Sam Creasey Cc: Michal Hocko , linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH v2 2/3] m68k/page_no.h: force __va argument to be unsigned long Date: Wed, 4 Jul 2018 09:28:15 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070406-4275-0000-0000-00000294F558 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070406-4276-0000-0000-0000379C7730 Message-Id: <1530685696-14672-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-04_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=917 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807040077 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add explicit casting to unsigned long to the __va() parameter Signed-off-by: Mike Rapoport --- arch/m68k/include/asm/page_no.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index e644c4d..6bbe520 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h @@ -18,7 +18,7 @@ extern unsigned long memory_end; #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE #define __pa(vaddr) ((unsigned long)(vaddr)) -#define __va(paddr) ((void *)(paddr)) +#define __va(paddr) ((void *)((unsigned long)(paddr))) #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) -- 2.7.4