Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6143128ybn; Sun, 29 Sep 2019 13:18:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh58jmO0GLwDWKIknDbfT2gNMAlfy9ods4ozXHWa8wb/J/GOXxN9gixF5MgbEgkGOaapLf X-Received: by 2002:a17:907:411d:: with SMTP id nw21mr16148500ejb.8.1569788333268; Sun, 29 Sep 2019 13:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569788333; cv=none; d=google.com; s=arc-20160816; b=CRh1wqSx7KG916Vd/HGCiM4H0XbcLkjrlGSui/kPybATZL+HmdxP8Wc42t/KKWChlV FHFHAZzUGMEp1sK65d18qg20INrT4CQoQcwljOD+qG8Rkotz0Co9b8RPPc6MzELWqCq9 8hERfPm/6JTm7+2eNYckSp2BE9VlyznBLaJ58lwfaPOhKeoedISOklenC6uM6a8PEWnH 2ZHo2yXXquFCdgLczBp8KjBQgCYUPeoXYDur01OIBiwin7ciSnx3zFD9TiU2v+ZHxkKq V8uPMfavxXG4wgOMS8W6PYYyI6tWMWQbKTeJYE5JppUVVSY5F+Yp1hqmSkcpL0vzo0BF nuYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CdjXhpEWzehkrtChlilXseinyCwGI4XUymbAPt0EcMo=; b=fxVWbSzA9YFnleKO32PMwK4i5EPLoOakdLzN43Npa2bqeDnNSMPT9J8NoRiHwlArwI AgGv99gcZTub/a0M+P48B71S4Omq2Z5fEulrntGrrvpL/A62nmw7chgRVH0+ZbsvJpwy LkLnx+7AIBS/Cg6VQp8zOYefYaPoCQOI8BJG90uFJx8aZQqIG2QVB5KpCYRhJ8PIcxzR zNOvCYA+iZrgQoTL0ej5BUMBZGk2Dl1MPO8/YLnPdjNG+/k7sRnQnfqPAH8MZLCeB8HC C1RiXMlYNJO6B1wj3LlsOLY0oBa+F7SrMxgIN3jdKxMUP7+ADQY6cslmZmk7J4NzuDdZ yb2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si5659348edx.361.2019.09.29.13.18.28; Sun, 29 Sep 2019 13:18:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbfI2UPl (ORCPT + 99 others); Sun, 29 Sep 2019 16:15:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:35496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728853AbfI2UPl (ORCPT ); Sun, 29 Sep 2019 16:15:41 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D5EB020863; Sun, 29 Sep 2019 20:15:39 +0000 (UTC) Date: Sun, 29 Sep 2019 16:15:31 -0400 From: Steven Rostedt To: Alexey Dobriyan Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, intel-gfx@lists.freedesktop.org, mingo@redhat.com, linux@rasmusvillemoes.dk Subject: Re: [PATCH] Make is_signed_type() simpler Message-ID: <20190929161531.727da348@gandalf.local.home> In-Reply-To: <20190929200619.GA12851@avx2> References: <20190929200619.GA12851@avx2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 29 Sep 2019 23:06:19 +0300 Alexey Dobriyan wrote: > * Simply compare -1 with 0, > * Drop unnecessary parenthesis sets > > New macro leaves pointer as "unsigned type" but gives a warning, > which should be fine because asking whether a pointer is signed is > strange question. > > I'm not sure what's going on in the i915 driver, it is shipping kernel > pointers to userspace. This tells us what the patch does, not why. -- Steve > > Signed-off-by: Alexey Dobriyan