From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263Ab1KQUuk (ORCPT ); Thu, 17 Nov 2011 15:50:40 -0500 Received: from re04.intra2net.com ([82.165.46.26]:48257 "EHLO re04.intra2net.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831Ab1KQUuj (ORCPT ); Thu, 17 Nov 2011 15:50:39 -0500 Message-ID: <4EC5739D.9010008@intra2net.com> Date: Thu, 17 Nov 2011 21:50:37 +0100 From: Thomas Jarosch User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: Haavard Skinnemoen CC: linux-kernel@vger.kernel.org Subject: AVR32 code: Mismatching comparison Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Haavard, consider this piece of code from arch/avr32/kernel/module.c: .... case R_AVR32_GOT18SW: if ((relocation & 0xfffe0003) != 0 && (relocation & 0xfffc0003) != 0xffff0000) return reloc_overflow(module, "R_AVR32_GOT18SW", relocation); relocation >>= 2; /* fall through */ ... cppcheck reports for line 267: "Mismatching comparison, the result is always true" This probably needs a fix. Cheers, Thomas