Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp981372imm; Tue, 3 Jul 2018 03:31:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfcVvWx2+77UaMYTiVgdVyMVi9XaRL8rHHsX+z/gRGVgKgz/dxPUt7wwo35EfSuivQIRdvC X-Received: by 2002:a65:5a8a:: with SMTP id c10-v6mr20566562pgt.389.1530613874964; Tue, 03 Jul 2018 03:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530613874; cv=none; d=google.com; s=arc-20160816; b=BCGSXMkXGARwDVLTN8Q9APLsvRxfSZu+B9UlIh0KXOCVBtuTYmxTpL6DztWs29x0OL YPf4Kku5trv/xvrVOQYUwhEa0ZqSJyO0erYyN+oeX4rL6zueQCeySf6y57TaGtJUg//z USTklqg8KEDa1LFwn6W1KqNC8t1OjcbAxjZoRO5vDglQx80KzaI4yDDBHc0HEHj7wE4I Ty/jI7W8M+JJyq5LP4nuDytX4RKGq5ubtYEwe2wL8daM2kTzZCW4eBTGr7eI2uiXDoCO T11ykE0qQ0Ov79WeR0Q/QceGqeKmNeIH60ORoZ5f5da8z2f88CZkPICjnKchZgOsr4/5 xXtw== 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=vhIXj4/awcRs3xiJUBHaAfda4ZQGzK2L+SRdteI4Meb+soR0YLc0sLWn6Twa5lUv3h Ebp0BYEBp9I6Ho56d/34ZDP2FrLjQYAImjt1H0kdjnkCRQXqtZZ5Fbu29mgrKugvwmlv a0oycpQZgKtGxG9QcfPZQWf3O7wVYvPSLTPGuf+xQHFfPOJbAZVH2jYDarSXkHToOi0M PyshDjCBEslWfHlvm0eVR8Vrn93y/TT9vbNq4fT4YcRVsnYHR+0GQqanguBE3oapCpyO m3qZu9D+tKlhhC6lTkRMazP9n9Vv0sa8XLtdBLhrwchwwCL3lBO3gNHCXGnnuARFdyhd e3yA== 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 m190-v6si819423pfm.315.2018.07.03.03.30.59; Tue, 03 Jul 2018 03:31:14 -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 S1754844AbeGCKaO (ORCPT + 99 others); Tue, 3 Jul 2018 06:30:14 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39976 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754822AbeGCKaL (ORCPT ); Tue, 3 Jul 2018 06:30:11 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63AP3rB049547 for ; Tue, 3 Jul 2018 06:30:11 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k04mwq70e-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 06:30:10 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 11:30:08 +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) Tue, 3 Jul 2018 11:30:05 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63AU4n140632470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 10:30:04 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 00EF24C040; Tue, 3 Jul 2018 13:30:30 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36DAF4C05C; Tue, 3 Jul 2018 13:30:28 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.209]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 3 Jul 2018 13:30:28 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 03 Jul 2018 13:30:01 +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 2/3] m68k/page_no.h: force __va argument to be unsigned long Date: Tue, 3 Jul 2018 13:29:54 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070310-4275-0000-0000-00000294A599 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070310-4276-0000-0000-0000379C238C Message-Id: <1530613795-6956-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_03:,, 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-1807030120 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