Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754777AbeAGXCM (ORCPT + 1 other); Sun, 7 Jan 2018 18:02:12 -0500 Received: from mail-qk0-f177.google.com ([209.85.220.177]:42339 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754649AbeAGXCK (ORCPT ); Sun, 7 Jan 2018 18:02:10 -0500 X-Google-Smtp-Source: ACJfBote8613WXB0+vN2hz9+QUALdkMZPddYe3slrIpf3g6vZhOogmEL+Qp7MC93ibLbQyvnCEfTA0MfkooqOcSn8Ms= MIME-Version: 1.0 In-Reply-To: References: <1514082821-24256-1-git-send-email-nick.desaulniers@gmail.com> From: Andy Shevchenko Date: Mon, 8 Jan 2018 01:02:09 +0200 Message-ID: Subject: Re: [PATCH] zsmalloc: use U suffix for negative literals being shifted To: Minchan Kim Cc: Nick Desaulniers , Nitin Gupta , Sergey Senozhatsky , linux-mm , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Jan 7, 2018 at 5:04 PM, Minchan Kim wrote: >> - link->next = -1 << OBJ_TAG_BITS; >> + link->next = -1U << OBJ_TAG_BITS; > > -1UL? Oh, boy, shouldn't be rather GENMASK() / GENMASK_ULL() in a way how it's done, for example, here: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/commit/?h=for-next&id=d2b3c353595a855794f8b9df5b5bdbe8deb0c413 -- With Best Regards, Andy Shevchenko