[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 97403ef target: Constify parameter of is_armv7m()
From:       gerrit () openocd ! org (gerrit)
Date:       2017-10-29 15:37:40
Message-ID: 20171029153740.91F082522D52 () mail ! openocd ! org
[Download RAW message or body]

This is an automated email from Gerrit.

Marc Schink (openocd-dev@marcschink.de) just uploaded a new patch set to Gerrit, \
which you can find at http://openocd.zylin.com/4275

-- gerrit

commit 97403ef2200020f91860160323e644809d7cd3c0
Author: Marc Schink <openocd-dev@marcschink.de>
Date:   Sun Oct 29 15:58:41 2017 +0100

    target: Constify parameter of is_armv7m()
    
    Change-Id: Ieea1b0dec88818e9e8d5c8c5d54aa8959556d77b
    Signed-off-by: Marc Schink <openocd-dev@marcschink.de>

diff --git a/src/target/armv7m.h b/src/target/armv7m.h
index 284bb9c..6f5d6f9 100644
--- a/src/target/armv7m.h
+++ b/src/target/armv7m.h
@@ -174,7 +174,7 @@ target_to_armv7m(struct target *target)
 	return container_of(target->arch_info, struct armv7m_common, arm);
 }
 
-static inline bool is_armv7m(struct armv7m_common *armv7m)
+static inline bool is_armv7m(const struct armv7m_common *armv7m)
 {
 	return armv7m->common_magic == ARMV7M_COMMON_MAGIC;
 }

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic